LogDeath("suicide", deathtype, targ, targ);
if(deathtype != DEATH_AUTOTEAMCHANGE.m_id) // special case: don't negate frags if auto switched
GiveFrags(attacker, targ, -1, deathtype, weaponentity);
-
- attacker.suicide = 1;
- }
-
- if (targ != attacker) {
- attacker.check_suicide = 1;
}
// ======
targ.shotgun_inc_pointblank = 1;
}
}
+
+ if (IS_DEAD(targ)) {
+ if (targ != attacker) {
+ attacker.check_suicide = 1;
+ } else {
+ attacker.suicide = 1;
+ }
+ }
}
float RadiusDamageForSource (entity inflictor, vector inflictororigin, vector inflictorvelocity, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe,