Skip to content

Commit

Permalink
Remove inventory items on player's death
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Jul 15, 2024
1 parent 3ae27fa commit 9501cea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,8 @@ void CBasePlayer::Killed( entvars_t *pevInflictor, entvars_t *pevAttacker, int i
WRITE_BYTE( 0 );
MESSAGE_END();

RemoveAllInventoryItems();

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

Expand Down

0 comments on commit 9501cea

Please sign in to comment.