Added in an AI hook for setDead, it gets called just before the setDead in the vanilla code