From d23e133fd89c57805894eae526772a62b245d434 Mon Sep 17 00:00:00 2001 From: s1lent Date: Thu, 4 May 2017 20:51:45 +0700 Subject: [PATCH] Fixes: s1lentq/reapi#65 Fixes: s1lentq/ReGameDLL_CS#135 --- regamedll/regamedll/regamedll_interfaces_impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regamedll/regamedll/regamedll_interfaces_impl.cpp b/regamedll/regamedll/regamedll_interfaces_impl.cpp index 36a3659e..3c413003 100644 --- a/regamedll/regamedll/regamedll_interfaces_impl.cpp +++ b/regamedll/regamedll/regamedll_interfaces_impl.cpp @@ -47,6 +47,10 @@ bool EXT_FUNC CCSPlayer::JoinTeam(TeamName team) if (pPlayer->m_iTeam == SPECTATOR) return false; + // not necessary to trigger death event, just died quietly + pPlayer->pev->deadflag = DEAD_DEAD; + pPlayer->pev->health = 0; + pPlayer->RemoveAllItems(TRUE); pPlayer->m_bHasC4 = false;