mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 23:47:53 +00:00
Revert unneeded changes.
This commit is contained in:
parent
6909ca4f29
commit
8b876213b9
@ -283,6 +283,11 @@ class CItemBattery : public CItem
|
|||||||
}
|
}
|
||||||
BOOL MyTouch( CBasePlayer *pPlayer )
|
BOOL MyTouch( CBasePlayer *pPlayer )
|
||||||
{
|
{
|
||||||
|
if( pPlayer->pev->deadflag != DEAD_NO )
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if( ( pPlayer->pev->armorvalue < MAX_NORMAL_BATTERY ) &&
|
if( ( pPlayer->pev->armorvalue < MAX_NORMAL_BATTERY ) &&
|
||||||
( pPlayer->pev->weapons & ( 1 << WEAPON_SUIT ) ) )
|
( pPlayer->pev->weapons & ( 1 << WEAPON_SUIT ) ) )
|
||||||
{
|
{
|
||||||
|
@ -1190,6 +1190,7 @@ void CBaseTrigger::CounterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, US
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
BOOL fTellActivator =
|
BOOL fTellActivator =
|
||||||
|
( m_hActivator != 0 ) &&
|
||||||
FClassnameIs( m_hActivator->pev, "player" ) &&
|
FClassnameIs( m_hActivator->pev, "player" ) &&
|
||||||
!FBitSet( pev->spawnflags, SPAWNFLAG_NOMESSAGE );
|
!FBitSet( pev->spawnflags, SPAWNFLAG_NOMESSAGE );
|
||||||
if( m_cTriggersLeft != 0 )
|
if( m_cTriggersLeft != 0 )
|
||||||
|
Loading…
Reference in New Issue
Block a user