return 1;
}
-MUTATOR_HOOKFUNCTION(freezetag_PlayerDamage)
+MUTATOR_HOOKFUNCTION(freezetag_PlayerDamage_Calculate)
{
if(g_freezetag)
{
if(frag_target.freezetag_frozen == 1)
{
- damage_take = 0;
- damage_save = 0;
- damage_force = damage_force * cvar("g_freezetag_frozen_force");
+ frag_damage = 0;
+ frag_force = frag_force * cvar("g_freezetag_frozen_force");
}
}
return 1;
MUTATOR_HOOK(GiveFragsForKill, freezetag_GiveFragsForKill, CBC_ORDER_FIRST);
MUTATOR_HOOK(PlayerPreThink, freezetag_PlayerPreThink, CBC_ORDER_FIRST);
MUTATOR_HOOK(PlayerPhysics, freezetag_PlayerPhysics, CBC_ORDER_FIRST);
- MUTATOR_HOOK(PlayerDamage, freezetag_PlayerDamage, CBC_ORDER_ANY);
+ MUTATOR_HOOK(PlayerDamage_Calculate, freezetag_PlayerDamage_Calculate, CBC_ORDER_ANY);
MUTATOR_ONADD
{