Fixed broken FOV.

This commit is contained in:
richard 2009-12-11 15:16:28 +01:00
parent 56d542603f
commit 7bad6761d3
3 changed files with 22 additions and 22 deletions

View File

@ -4338,7 +4338,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for accessing players' money value <p><strong>Description:</strong> The required offset for accessing players' money value
wasn't found.</p> wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4574,7 +4574,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' water level <p><strong>Description:</strong> The required offset for getting players' water level
wasn't found.</p> wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4588,7 +4588,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' velocity <p><strong>Description:</strong> The required offset for getting players' velocity
wasn't found.</p> wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4602,7 +4602,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' speed/movement <p><strong>Description:</strong> The required offset for getting players' speed/movement
wasn't found.</p> wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4616,7 +4616,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' night vision <p><strong>Description:</strong> The required offset for getting players' night vision
settings wasn't found.</p> settings wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4630,21 +4630,21 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' night vision <p><strong>Description:</strong> The required offset for getting players' night vision
setttings wasn't found.</p> setttings wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="commandheader">offsets</td> <td class="commandheader">offsets</td>
<td class="commandheader">fatal</td> <td class="commandheader">fatal</td>
<td class="commandheader">Offset "CBasePlayer::m_iDefaultFOV" was not found.</td> <td class="commandheader">Offset "CBasePlayer::m_iFOV" was not found.</td>
</tr> </tr>
<tr> <tr>
<td class="indent" colspan="3"> <td class="indent" colspan="3">
<p><strong>Description:</strong> The required offset for getting players' field of <p><strong>Description:</strong> The required offset for getting players' field of
view setting wasn't found.</p> view setting wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4672,7 +4672,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required function signature for terminating the <p><strong>Description:</strong> The required function signature for terminating the
round wasn't found</p> round wasn't found</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4686,7 +4686,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required function signature for dropping players' <p><strong>Description:</strong> The required function signature for dropping players'
weapons wasn't found</p> weapons wasn't found</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4856,7 +4856,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' ragdoll <p><strong>Description:</strong> The required offset for getting players' ragdoll
wasn't found.</p> wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4920,7 +4920,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' primary <p><strong>Description:</strong> The required offset for getting players' primary
ammo value wasn't found.</p> ammo value wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4934,7 +4934,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' secondary <p><strong>Description:</strong> The required offset for getting players' secondary
ammo value wasn't found.</p> ammo value wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4948,7 +4948,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' reserve <p><strong>Description:</strong> The required offset for getting players' reserve
ammo value wasn't found.</p> ammo value wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -4962,7 +4962,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' active <p><strong>Description:</strong> The required offset for getting players' active
weapon index wasn't found.</p> weapon index wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>
@ -5013,7 +5013,7 @@ back to a default action.</p>
<p><strong>Description:</strong> The required offset for getting players' buy zone <p><strong>Description:</strong> The required offset for getting players' buy zone
state wasn't found.</p> state wasn't found.</p>
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded <p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
developer, or the SourceMod team.</p> developer.</p>
</td> </td>
</tr> </tr>

View File

@ -32,7 +32,7 @@ new g_iToolsVelocity;
new g_iToolsLMV; new g_iToolsLMV;
new g_iToolsHasNightVision; new g_iToolsHasNightVision;
new g_iToolsNightVisionOn; new g_iToolsNightVisionOn;
new g_iToolsDefaultFOV; new g_iToolsFOV;
/** /**
* @endsection * @endsection
@ -96,11 +96,11 @@ ToolsFindOffsets()
LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_Tools, "Offsets", "Offset \"CCSPlayer::m_bNightVisionOn\" was not found."); LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_Tools, "Offsets", "Offset \"CCSPlayer::m_bNightVisionOn\" was not found.");
} }
// If offset "m_iDefaultFOV" can't be found, then stop the plugin. // If offset "m_iFOV" can't be found, then stop the plugin.
g_iToolsDefaultFOV = FindSendPropInfo("CBasePlayer", "m_iDefaultFOV"); g_iToolsFOV = FindSendPropInfo("CBasePlayer", "m_iFOV");
if (g_iToolsDefaultFOV == -1) if (g_iToolsFOV == -1)
{ {
LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_Tools, "Offsets", "Offset \"CBasePlayer::m_iDefaultFOV\" was not found."); LogEvent(false, LogType_Fatal, LOG_CORE_EVENTS, LogModule_Tools, "Offsets", "Offset \"CBasePlayer::m_iFOV\" was not found.");
} }
// Forward event to modules. // Forward event to modules.

View File

@ -124,7 +124,7 @@ stock ToolsSetClientNightVision(client, bool:enable, bool:ownership = true)
*/ */
stock ToolsSetClientDefaultFOV(client, FOV) stock ToolsSetClientDefaultFOV(client, FOV)
{ {
SetEntData(client, g_iToolsDefaultFOV, FOV, 1, true); SetEntData(client, g_iToolsFOV, FOV, 1, true);
} }
/** /**