I wonder if it's possible to kill someone and then switch team before doEventPlayerDeath can be called? :D