2
0
mirror of https://github.com/s1lentq/ReGameDLL_CS.git synced 2025-06-25 20:19:30 +03:00

Fix c4 defuse glitch ()

* [WIP] Fix c4 defuse glitch
While you are defusing you can unpress E and a friend can continue to defuse for you
This commit is contained in:
justgo97 2019-08-13 23:25:38 +02:00 committed by Dmitry Novikov
parent 2defb8ad8e
commit 411a02843e

@ -1151,8 +1151,13 @@ void CGrenade::Use(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useTy
#endif #endif
if (m_bStartDefuse) if (m_bStartDefuse)
{
#ifdef REGAMEDLL_FIXES
if (m_pBombDefuser == pPlayer)
#endif
{ {
m_fNextDefuse = gpGlobals->time + NEXT_DEFUSE_TIME; m_fNextDefuse = gpGlobals->time + NEXT_DEFUSE_TIME;
}
return; return;
} }