mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-02-05 10:10:30 +03:00
completly disable buyzone when mp_buytime is 0 (#148)
This commit is contained in:
parent
e71deb8976
commit
d0587eefe9
@ -6384,8 +6384,14 @@ void CBasePlayer::HandleSignals()
|
|||||||
{
|
{
|
||||||
if (CSGameRules()->IsMultiplayer())
|
if (CSGameRules()->IsMultiplayer())
|
||||||
{
|
{
|
||||||
if (!CSGameRules()->m_bMapHasBuyZone)
|
|
||||||
OLD_CheckBuyZone(this);
|
#ifdef REGAMEDLL_ADD
|
||||||
|
if (buytime.value != 0.0f)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
if (!CSGameRules()->m_bMapHasBuyZone)
|
||||||
|
OLD_CheckBuyZone(this);
|
||||||
|
}
|
||||||
|
|
||||||
if (!CSGameRules()->m_bMapHasBombZone)
|
if (!CSGameRules()->m_bMapHasBombZone)
|
||||||
OLD_CheckBombTarget(this);
|
OLD_CheckBombTarget(this);
|
||||||
|
@ -1727,6 +1727,11 @@ void CBuyZone::__MAKE_VHOOK(Spawn)()
|
|||||||
|
|
||||||
void CBuyZone::BuyTouch(CBaseEntity *pOther)
|
void CBuyZone::BuyTouch(CBaseEntity *pOther)
|
||||||
{
|
{
|
||||||
|
#ifdef REGAMEDLL_ADD
|
||||||
|
if (buytime.value == 0.0f)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!pOther->IsPlayer())
|
if (!pOther->IsPlayer())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user