mirror of https://github.com/FWGS/hlsdk-xash3d
server: fix picking up ammo in alien mode
This commit is contained in:
parent
deb070205a
commit
266afaf76e
|
@ -1125,7 +1125,7 @@ void CBasePlayerAmmo::Materialize( void )
|
||||||
|
|
||||||
void CBasePlayerAmmo::DefaultTouch( CBaseEntity *pOther )
|
void CBasePlayerAmmo::DefaultTouch( CBaseEntity *pOther )
|
||||||
{
|
{
|
||||||
if( !pOther->IsPlayer() || IsPlayerBusting( pOther ))
|
if( !pOther->IsPlayer() || IsPlayerBusting( pOther ) || g_pGameRules->IsAlienMode( ))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue