Skip to content

Commit

Permalink
Format fixes, remove AddCallback_ApplyModWeaponVars
Browse files Browse the repository at this point in the history
we will be doing a script PR instead, as it is easier
  • Loading branch information
EladNLG committed Apr 25, 2024
1 parent 99dbffc commit 2d105e6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions primedev/mods/modweaponvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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*>());
Expand Down

0 comments on commit 2d105e6

Please sign in to comment.