1 MUTATOR_HOOKFUNCTION(vampire_PlayerDamage)
3 if(time < self.spawnshieldtime)
7 // minstagib: each hit means +1 ammo
8 frag_attacker.ammo_cells += 2; // note: 1 cell was deducted for the shot
12 // otherwise: each hit gets damage back
13 frag_attacker.health = frag_attacker.health + bound(0, damage_take, self.health);
18 MUTATOR_HOOKFUNCTION(vampire_BuildMutatorsString)
20 ret_string = strcat(ret_string, ":Vampire");
24 MUTATOR_HOOKFUNCTION(vampire_BuildMutatorsPrettyString)
26 ret_string = strcat(ret_string, ", Vampire");
30 MUTATOR_DEFINITION(mutator_vampire)
32 MUTATOR_HOOK(PlayerDamage_SplitHealthArmor, vampire_PlayerDamage, CBC_ORDER_ANY);
33 MUTATOR_HOOK(BuildMutatorsString, vampire_BuildMutatorsString, CBC_ORDER_ANY);
34 MUTATOR_HOOK(BuildMutatorsPrettyString, vampire_BuildMutatorsPrettyString, CBC_ORDER_ANY);