From 7bad6761d308d94176de9cad38601ff47c471db3 Mon Sep 17 00:00:00 2001
From: richard
Description: The required offset for accessing players' money value wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4574,7 +4574,7 @@ back to a default action.Description: The required offset for getting players' water level wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4588,7 +4588,7 @@ back to a default action.Description: The required offset for getting players' velocity wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4602,7 +4602,7 @@ back to a default action.Description: The required offset for getting players' speed/movement wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4616,7 +4616,7 @@ back to a default action.Description: The required offset for getting players' night vision settings wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4630,21 +4630,21 @@ back to a default action.Description: The required offset for getting players' night vision setttings wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer.Description: The required offset for getting players' field of view setting wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer.Description: The required function signature for terminating the round wasn't found
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4686,7 +4686,7 @@ back to a default action.Description: The required function signature for dropping players' weapons wasn't found
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4856,7 +4856,7 @@ back to a default action.Description: The required offset for getting players' ragdoll wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4920,7 +4920,7 @@ back to a default action.Description: The required offset for getting players' primary ammo value wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4934,7 +4934,7 @@ back to a default action.Description: The required offset for getting players' secondary ammo value wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4948,7 +4948,7 @@ back to a default action.Description: The required offset for getting players' reserve ammo value wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -4962,7 +4962,7 @@ back to a default action.Description: The required offset for getting players' active weapon index wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. @@ -5013,7 +5013,7 @@ back to a default action.Description: The required offset for getting players' buy zone state wasn't found.
Cause: Usually a update by Valve. Report to a Zombie:Reloaded - developer, or the SourceMod team.
+ developer. diff --git a/src/zr/tools.inc b/src/zr/tools.inc index 4caddd2..320703b 100644 --- a/src/zr/tools.inc +++ b/src/zr/tools.inc @@ -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. diff --git a/src/zr/tools_functions.inc b/src/zr/tools_functions.inc index 892661d..af75668 100644 --- a/src/zr/tools_functions.inc +++ b/src/zr/tools_functions.inc @@ -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); } /**