From 8a366537e787671ae33edcfa7712ac28043cc033 Mon Sep 17 00:00:00 2001 From: SanyaSho Date: Tue, 16 Aug 2022 18:28:28 +0300 Subject: [PATCH] game: fix death icon in hl2mp (hrgve/hl2dm-bugfix@6f7337d3f2cac50af45848129fd7b7a8a547066b) --- game/shared/hl2mp/hl2mp_gamerules.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/game/shared/hl2mp/hl2mp_gamerules.cpp b/game/shared/hl2mp/hl2mp_gamerules.cpp index 604e409c..b59ddf2e 100644 --- a/game/shared/hl2mp/hl2mp_gamerules.cpp +++ b/game/shared/hl2mp/hl2mp_gamerules.cpp @@ -727,6 +727,11 @@ void CHL2MPRules::DeathNotice( CBasePlayer *pVictim, const CTakeDamageInfo &info killer_weapon_name = "physics"; } + if ( strstr( killer_weapon_name, "physbox" ) ) + { + killer_weapon_name = "physics"; + } + if ( strcmp( killer_weapon_name, "prop_combine_ball" ) == 0 ) { killer_weapon_name = "combine_ball"; @@ -1277,4 +1282,4 @@ const char *CHL2MPRules::GetChatFormat( bool bTeamOnly, CBasePlayer *pPlayer ) return pszFormat; } -#endif \ No newline at end of file +#endif