16 if(frag_target.classname ==
"grapplinghook")
18 if((!autocvar_g_breakablehook)
19 || (!autocvar_g_breakablehook_owner && frag_attacker == frag_target.realowner)
20 ) {
M_ARGV(4,
float) = 0; }
23 if(
DIFF_TEAM(frag_attacker, frag_target.realowner))
25 Damage (frag_target.realowner, frag_attacker, frag_attacker, 5, WEP_HOOK.m_id |
HITTYPE_SPLASH,
DMG_NOWEP, frag_target.realowner.origin,
'0 0 0');
const int HITTYPE_SPLASH
automatically set by RadiusDamage
REGISTER_MUTATOR(breakablehook, cvar("g_breakablehook"))
bool autocvar_g_breakablehook
MUTATOR_HOOKFUNCTION(breakablehook, Damage_Calculate)
void Damage(entity targ, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
bool autocvar_g_breakablehook_owner
void RemoveHook(entity this)