Force fire target on item_suit

This commit is contained in:
mittorn 2016-09-29 03:46:29 +07:00
parent 7514a7b1f0
commit 0b22605eb4
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@
#include "skill.h"
#include "items.h"
#include "gamerules.h"
#include "game.h"
extern int gmsgItemPickup;
@ -257,7 +258,7 @@ class CItemSuit : public CItem
}
BOOL MyTouch( CBasePlayer *pPlayer )
{
if( pPlayer->pev->weapons & ( 1<<WEAPON_SUIT ) )
if( !mp_coop.value && pPlayer->pev->weapons & ( 1<<WEAPON_SUIT ) )
return FALSE;
if( pev->spawnflags & SF_SUIT_SHORTLOGON )