mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-26 05:28:01 +03:00
fix mp_kill_filled_spawn (#1011)
This commit is contained in:
parent
dc16b12d79
commit
3cf66de905
@ -4310,10 +4310,10 @@ void CBasePlayer::PlayerUse()
|
|||||||
}
|
}
|
||||||
// UNDONE: Send different USE codes for ON/OFF. Cache last ONOFF_USE object to send 'off' if you turn away
|
// UNDONE: Send different USE codes for ON/OFF. Cache last ONOFF_USE object to send 'off' if you turn away
|
||||||
// BUGBUG This is an "off" use
|
// BUGBUG This is an "off" use
|
||||||
else if ((m_afButtonReleased & IN_USE)
|
else if ((m_afButtonReleased & IN_USE)
|
||||||
#ifdef REGAMEDLL_FIXES
|
#ifdef REGAMEDLL_FIXES
|
||||||
&& (caps & FCAP_ONOFF_USE))
|
&& (caps & FCAP_ONOFF_USE))
|
||||||
#else
|
#else
|
||||||
&& (pObject->ObjectCaps() & FCAP_ONOFF_USE))
|
&& (pObject->ObjectCaps() & FCAP_ONOFF_USE))
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
@ -5374,11 +5374,6 @@ BOOL IsSpawnPointValid(CBaseEntity *pPlayer, CBaseEntity *pSpot)
|
|||||||
if (!pSpot->IsTriggered(pPlayer))
|
if (!pSpot->IsTriggered(pPlayer))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
#ifdef REGAMEDLL_ADD
|
|
||||||
if (!kill_filled_spawn.value)
|
|
||||||
return TRUE;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
CBaseEntity *pEntity = nullptr;
|
CBaseEntity *pEntity = nullptr;
|
||||||
while ((pEntity = UTIL_FindEntityInSphere(pEntity, pSpot->pev->origin, MAX_PLAYER_USE_RADIUS)))
|
while ((pEntity = UTIL_FindEntityInSphere(pEntity, pSpot->pev->origin, MAX_PLAYER_USE_RADIUS)))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user