|
|
@ -324,6 +324,12 @@ BOOL CHalfLifeMultiplay::FShouldSwitchWeapon( CBasePlayer *pPlayer, CBasePlayerI |
|
|
|
return FALSE; |
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( pPlayer->m_iAutoWepSwitch == 2 |
|
|
|
|
|
|
|
&& pPlayer->m_afButtonLast & ( IN_ATTACK | IN_ATTACK2 ) ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return FALSE; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if( !pPlayer->m_pActiveItem->CanHolster() ) |
|
|
|
if( !pPlayer->m_pActiveItem->CanHolster() ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// can't put away the active item.
|
|
|
|
// can't put away the active item.
|
|
|
@ -573,7 +579,11 @@ void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
BOOL addDefault; |
|
|
|
BOOL addDefault; |
|
|
|
CBaseEntity *pWeaponEntity = NULL; |
|
|
|
CBaseEntity *pWeaponEntity = NULL; |
|
|
|
|
|
|
|
int iOldAutoWepSwitch; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
iOldAutoWepSwitch = pPlayer->m_iAutoWepSwitch; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pPlayer->m_iAutoWepSwitch = 1; |
|
|
|
pPlayer->pev->weapons |= ( 1 << WEAPON_SUIT ); |
|
|
|
pPlayer->pev->weapons |= ( 1 << WEAPON_SUIT ); |
|
|
|
|
|
|
|
|
|
|
|
addDefault = TRUE; |
|
|
|
addDefault = TRUE; |
|
|
@ -590,6 +600,8 @@ void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer ) |
|
|
|
pPlayer->GiveNamedItem( "weapon_9mmhandgun" ); |
|
|
|
pPlayer->GiveNamedItem( "weapon_9mmhandgun" ); |
|
|
|
pPlayer->GiveAmmo( 68, "9mm", _9MM_MAX_CARRY );// 4 full reloads
|
|
|
|
pPlayer->GiveAmmo( 68, "9mm", _9MM_MAX_CARRY );// 4 full reloads
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pPlayer->m_iAutoWepSwitch = iOldAutoWepSwitch; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//=========================================================
|
|
|
|
//=========================================================
|
|
|
|