Revision Difference
GM:DoPlayerDeath#551439
<function name="DoPlayerDeath" parent="GM" type="hook">
<ishook>yes</ishook>
<description>
Handles the player's death.
This hook is **not** called if the player is killed by <page>Player:KillSilent</page>. See <page>GM:PlayerSilentDeath</page> for that.
* <page>GM:PlayerDeath</page> is called after this hook
* <page>GM:PostPlayerDeath</page> is called after that
</description>⤶
⤶
<note><page>Player:Alive</page> will return false in this hook.</note>⤶
⤶
</description>⤶
<realm>Server</realm>
<predicted>No</predicted>
<args>
<arg name="ply" type="Player">The player</arg>
<arg name="attacker" type="Entity">The entity that killed the player</arg>
<arg name="dmg" type="CTakeDamageInfo">Damage info</arg>
</args>
</function>