//=============================================================================
// WeaponNanoVirusGrenade.
//=============================================================================
//class NerveWeap extends DeusExWeapon;
class NerveWeap extends WeaponGasGrenade;



function Fire(float Value)
{
	if((Region.Zone.IsA('ArenaZoneSafe')) || (Region.Zone.IsA('MMRPGRoomArea')) || (Region.Zone.IsA('MMRPGSafeArea')))
	{
		return;
	}

	if((!Region.Zone.IsA('ArenaZoneSafe')) && (!Region.Zone.IsA('MMRPGRoomArea')) && (!Region.Zone.IsA('MMRPGSafeArea')))
	{
		bNearWall=False;
		Super(DeusExWeapon).Fire(Value);
	}

}



simulated function bool ClientFire( float value )
{
		if((Region.Zone.IsA('ArenaZoneSafe')) || (Region.Zone.IsA('MMRPGRoomArea')) || (Region.Zone.IsA('MMRPGSafeArea')))
		{
			return False;
		}

		if((!Region.Zone.IsA('ArenaZoneSafe')) && (!Region.Zone.IsA('MMRPGRoomArea')) && (!Region.Zone.IsA('MMRPGSafeArea')))
		{
			return Super.ClientFire(value);
		}
}

simulated function bool NearWallCheck()
{
	return False;
}




simulated function bool TestMPBeltSpot(int BeltSpot)
{
   return ( (BeltSpot >= 1) && (BeltSpot <=9) );
}


simulated event RenderOverlays( canvas Canvas )
{
	// set first person skin settings
		MultiSkins[0]=Texture'WeaponHandsTex';
		MultiSkins[1]=Texture'ContenderStuff.Skins.Nerve1st';
		MultiSkins[2]=Texture'ContenderStuff.Skins.Nerve1st';
		MultiSkins[3]=Texture'WeaponHandsTex';
		MultiSkins[4]=Texture'Effects.UserInterface.DrunkFX';

	Super.RenderOverlays( Canvas );

	// reset third person skin settings
		MultiSkins[0]=Texture'ContenderStuff.Skins.Nerve3rd';
		MultiSkins[1]=Texture'Effects.UserInterface.DrunkFX';
}


function BecomePickup()
{
   if (Level.NetMode != NM_Standalone)
      if (bTossedOut)
         Lifespan = 0.0;

	super.BecomePickup();
}



defaultproperties
{
     LowAmmoWaterMark=2
     GoverningSkill=Class'DeusEx.SkillDemolition'
     EnemyEffective=ENMEFF_All
     Concealability=CONC_All
     ShotTime=0.300000
     reloadTime=0.100000
     HitDamage=0
     maxRange=4800
     AccurateRange=2400
     BaseAccuracy=0.800000
     bPenetrating=False
     bHasMuzzleFlash=False
     bHandToHand=True
     bUseAsDrawnWeapon=False
     AITimeLimit=3.500000
     bNeedToSetMPPickupAmmo=False
     AIFireDelay=5.000000
     AmmoName=Class'Contender.NerveAmmo'
     ReloadCount=1
     PickupAmmoCount=1
     FireOffset=(Y=10.000000,Z=20.000000)
     ProjectileClass=Class'Contender.NerveProj'
     shakemag=50.000000
     SelectSound=Sound'ContenderStuff.Weapons.NerveSelect'
     InventoryGroup=201
     ItemName="Nerve-Gas Grenade"
     PlayerViewOffset=(X=24.000000,Y=-15.000000,Z=-19.000000)
     PlayerViewMesh=LodMesh'DeusExItems.NanoVirusGrenade'
     PickupViewMesh=LodMesh'DeusExItems.NanoVirusGrenadePickup'
     ThirdPersonMesh=LodMesh'DeusExItems.NanoVirusGrenade3rd'
     Icon=Texture'ContenderStuff.Skins.BeltIconNerve'
     largeIcon=Texture'ContenderStuff.Skins.LargeIconNerve'
     largeIconWidth=24
     largeIconHeight=49
     Skin=Texture'Contender.Skins.Nerve3rd'
     Description="(c)MainMan."
     beltDescription="NERVE GAS"
     Mesh=LodMesh'DeusExItems.NanoVirusGrenadePickup'
     CollisionRadius=3.000000
     CollisionHeight=2.430000
     Mass=5.000000
     Buoyancy=2.000000
}
