{
//FOREACH_CLIENT(true, { centerprint(it, "PlayerDies"); });
entity frag_target = M_ARGV(2, entity);
- Surv_CountAlivePlayers(frag_target.team);
//surv_RemovePlayerFromAliveList(frag_target);
if (!Surv_CanPlayerSpawn(frag_target))
{
return true;
}
+/// \brief Hook which is called after the player died.
+MUTATOR_HOOKFUNCTION(surv, PlayerDied)
+{
+ Surv_CountAlivePlayers(-1);
+}
+
/// \brief Hook which is called when player has scored a frag.
MUTATOR_HOOKFUNCTION(surv, GiveFragsForKill, CBC_ORDER_FIRST)
{