Gamerules: When the player dies, the WEAPON_SATCHEL items will detonate

with him.
This commit is contained in:
Marco Cawthorne 2021-05-22 16:41:07 +02:00
parent 8dd9fad771
commit 4c4be5946c
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ HLMultiplayerRules::PlayerDeath(base_player pl)
Sound_Play(pl, CHAN_AUTO, "player.die");
/* explode all satchels */
s_satchel_detonate((entity)pl);
/* force respawn */
pl.think = PutClientInServer;
pl.nextthink = time + 4.0f;