Fixed broken FOV.
This commit is contained in:
parent
56d542603f
commit
7bad6761d3
@ -4338,7 +4338,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for accessing players' money value
|
||||
wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4574,7 +4574,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' water level
|
||||
wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4588,7 +4588,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' velocity
|
||||
wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4602,7 +4602,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' speed/movement
|
||||
wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4616,7 +4616,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' night vision
|
||||
settings wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4630,21 +4630,21 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' night vision
|
||||
setttings wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="commandheader">offsets</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>
|
||||
<td class="indent" colspan="3">
|
||||
<p><strong>Description:</strong> The required offset for getting players' field of
|
||||
view setting wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4672,7 +4672,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required function signature for terminating the
|
||||
round wasn't found</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4686,7 +4686,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required function signature for dropping players'
|
||||
weapons wasn't found</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4856,7 +4856,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' ragdoll
|
||||
wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4920,7 +4920,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' primary
|
||||
ammo value wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4934,7 +4934,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' secondary
|
||||
ammo value wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4948,7 +4948,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' reserve
|
||||
ammo value wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -4962,7 +4962,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' active
|
||||
weapon index wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -5013,7 +5013,7 @@ back to a default action.</p>
|
||||
<p><strong>Description:</strong> The required offset for getting players' buy zone
|
||||
state wasn't found.</p>
|
||||
<p><strong>Cause:</strong> Usually a update by Valve. Report to a Zombie:Reloaded
|
||||
developer, or the SourceMod team.</p>
|
||||
developer.</p>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
@ -32,7 +32,7 @@ new g_iToolsVelocity;
|
||||
new g_iToolsLMV;
|
||||
new g_iToolsHasNightVision;
|
||||
new g_iToolsNightVisionOn;
|
||||
new g_iToolsDefaultFOV;
|
||||
new g_iToolsFOV;
|
||||
|
||||
/**
|
||||
* @endsection
|
||||
@ -96,11 +96,11 @@ ToolsFindOffsets()
|
||||
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.
|
||||
g_iToolsDefaultFOV = FindSendPropInfo("CBasePlayer", "m_iDefaultFOV");
|
||||
if (g_iToolsDefaultFOV == -1)
|
||||
// If offset "m_iFOV" can't be found, then stop the plugin.
|
||||
g_iToolsFOV = FindSendPropInfo("CBasePlayer", "m_iFOV");
|
||||
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.
|
||||
|
@ -124,7 +124,7 @@ stock ToolsSetClientNightVision(client, bool:enable, bool:ownership = true)
|
||||
*/
|
||||
stock ToolsSetClientDefaultFOV(client, FOV)
|
||||
{
|
||||
SetEntData(client, g_iToolsDefaultFOV, FOV, 1, true);
|
||||
SetEntData(client, g_iToolsFOV, FOV, 1, true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user