From 855840a3b1a72c264ad181abc81464bac981c28b Mon Sep 17 00:00:00 2001 From: Sabian Roberts <31491602+sabianroberts@users.noreply.github.com> Date: Tue, 5 Nov 2024 22:06:54 +0000 Subject: [PATCH] Attempt to fix https://github.com/phoenixprojectsoftware/zamnhlmp/issues/79 --- binary/dlls/teamplay_gamerules.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/binary/dlls/teamplay_gamerules.cpp b/binary/dlls/teamplay_gamerules.cpp index 44fb50e9..045b6e21 100644 --- a/binary/dlls/teamplay_gamerules.cpp +++ b/binary/dlls/teamplay_gamerules.cpp @@ -372,7 +372,10 @@ void CHalfLifeTeamplay::ChangePlayerTeam( CBasePlayer *pPlayer, const char *pTea } entvars_t *pevWorld = VARS( INDEXENT(0) ); - pPlayer->TakeDamage( pevWorld, pevWorld, 900, damageFlags ); + pPlayer->TakeDamage( pevWorld, pevWorld, 5000, damageFlags ); + pPlayer->Killed(pevWorld, GIB_NORMAL); + CLIENT_COMMAND(pPlayer->edict(), "+attack\n"); + CLIENT_COMMAND(pPlayer->edict(), "-attack\n"); m_DisableDeathMessages = FALSE; m_DisableDeathPenalty = FALSE;