Fixed broken FOV.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user