20 if(thehook.last_dmg <
time)
21 if(!STAT(FROZEN, thehook.aiment))
22 if(
time >= game_starttime)
25 if(autocvar_g_vampirehook_damage)
29 Damage(dmgent, thehook, thehook.owner, autocvar_g_vampirehook_damage, WEP_HOOK.m_id,
DMG_NOWEP, thehook.origin,
'0 0 0');
30 entity targ = ((
SAME_TEAM(thehook.owner, thehook.aiment)) ? thehook.aiment : thehook.owner);
35 if(dmgent == thehook.owner)
float autocvar_g_vampirehook_damage
bool SetResourceExplicit(entity e, Resource res_type, float amount)
Sets the resource amount of an entity without calling any hooks.
MUTATOR_HOOKFUNCTION(vh, GrappleHookThink)
string autocvar_g_vampirehook
void TakeResource(entity receiver, Resource res_type, float amount)
Takes an entity some resource.
float autocvar_g_vampirehook_damagerate
bool autocvar_g_vampirehook_teamheal
REGISTER_MUTATOR(vh, expr_evaluate(autocvar_g_vampirehook))
void Damage(entity targ, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
float autocvar_g_vampirehook_health_steal
ERASEABLE bool expr_evaluate(string s)
Evaluate an expression of the form: [+ | -]? [var[op]val | [op]var | val | var] ...