Go to the source code of this file.
◆ MUTATOR_HOOKFUNCTION()
MUTATOR_HOOKFUNCTION |
( |
breakablehook |
, |
|
|
Damage_Calculate |
|
|
) |
| |
Definition at line 11 of file sv_breakablehook.qc.
References Damage(), DIFF_TEAM, DMG_NOWEP, entity(), HITTYPE_SPLASH, M_ARGV, and RemoveHook().
16 if(frag_target.classname ==
"grapplinghook")
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
bool autocvar_g_breakablehook
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)
◆ REGISTER_MUTATOR()
REGISTER_MUTATOR |
( |
breakablehook |
, |
|
|
cvar("g_breakablehook") |
|
|
) |
| |
◆ autocvar_g_breakablehook
bool autocvar_g_breakablehook |
◆ autocvar_g_breakablehook_owner
bool autocvar_g_breakablehook_owner |