frag_attacker = attacker;
frag_inflictor = inflictor;
+ frag_target = self;
MUTATOR_CALLHOOK(PlayerDies);
if(self.flagcarried)
entity oldself;
oldself = self;
self = attacker;
+ frag_attacker = attacker;
frag_target = targ;
frag_score = f;
if(MUTATOR_CALLHOOK(GiveFragsForKill))
// INPUT:
entity frag_inflictor;
entity frag_attacker;
+ entity frag_target; // same as self
MUTATOR_HOOKABLE(GiveFragsForKill);
// called when someone was fragged by "self", and is expected to change frag_score to adjust scoring for the kill
// INPUT:
+ entity frag_attacker; // same as self
entity frag_target;
// INPUT, OUTPUT:
float frag_score;
{
if(gameover)
return 0;
- error("Adding score to unknown player!");
+ backtrace("Adding score to unknown player!");
+ return 0;
}
if(score)
if(scores_label[scorefield] != "")