Skip to content

Commit 9501cea

Browse files
committed
Remove inventory items on player's death
1 parent 3ae27fa commit 9501cea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dlls/player.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,8 @@ void CBasePlayer::Killed( entvars_t *pevInflictor, entvars_t *pevAttacker, int i
12131213
WRITE_BYTE( 0 );
12141214
MESSAGE_END();
12151215

1216+
RemoveAllInventoryItems();
1217+
12161218
// UNDONE: Put this in, but add FFADE_PERMANENT and make fade time 8.8 instead of 4.12
12171219
// UTIL_ScreenFade( edict(), Vector( 128, 0, 0 ), 6, 15, 255, FFADE_OUT | FFADE_MODULATE );
12181220

0 commit comments

Comments
 (0)