Format fixes, remove AddCallback_ApplyModWeaponVars

we will be doing a script PR instead, as it is easier
This commit is contained in:
EladNLG 2024-04-25 18:02:47 +03:00
parent 3647eca5e1
commit 0608df968c
1 changed files with 1 additions and 7 deletions

View File

@ -82,8 +82,7 @@ ADD_SQFUNC("void", ModWeaponVars_SetInt, "entity weapon, int weaponVar, int valu
return SQRESULT_NULL;
}
ADD_SQFUNC(
"void", ModWeaponVars_SetFloat, "entity weapon, int weaponVar, float value", "", ScriptContext::SERVER | ScriptContext::CLIENT)
ADD_SQFUNC("void", ModWeaponVars_SetFloat, "entity weapon, int weaponVar, float value", "", ScriptContext::SERVER | ScriptContext::CLIENT)
{
void** ent = g_pSquirrel<context>->getentity<void*>(sqvm, 1);
if (!IsWeapon<context>(ent))
@ -160,11 +159,6 @@ ADD_SQFUNC("void", ModWeaponVars_SetBool, "entity weapon, int weaponVar, bool va
return SQRESULT_NULL;
}
ADD_SQFUNC("void", AddCallback_ApplyModWeaponVars, "void functionref( entity ) callback, int priority", "", ScriptContext::CLIENT | ScriptContext::SERVER)
{
return SQRESULT_NULL;
}
ON_DLL_LOAD_CLIENT("client.dll", ModWeaponVars_ClientInit, (CModule mod))
{
weaponVarArray<ScriptContext::CLIENT> = (mod.Offset(0x942ca0).RCast<WeaponVarInfo*>());