//=============================================================================
//Tactical Steyr TMP w/ Silencer. Copyright @ mzylc / Used with permission by MainMan
//=============================================================================
class WeaponTacticalTMP extends DeusExWeapon;



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

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')))
	{
		Super.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);
		}
}

defaultproperties
{
     bHasMuzzleFlash=False
     LowAmmoWaterMark=30
     GoverningSkill=Class'DeusEx.SkillWeaponPistol'
     EnviroEffective=ENVEFF_Air
     Concealability=CONC_Visual
     bAutomatic=True
     ShotTime=0.100000
     reloadTime=3.000000
     HitDamage=4
     BaseAccuracy=0.800000
     bCanHaveLaser=True
     bCanHaveSilencer=False
     recoilStrength=0.500000
     MinWeaponAcc=0.200000
     mpReloadTime=0.500000
     mpHitDamage=4
     mpBaseAccuracy=0.800000
     mpAccurateRange=2400
     mpMaxRange=2400
     mpReloadCount=30
     bCanHaveModBaseAccuracy=True
     bCanHaveModReloadCount=True
     bCanHaveModAccurateRange=True
     bCanHaveModReloadTime=True
     bCanHaveModRecoilStrength=True
     AmmoName=Class'Contender.TMPAmmo'
     ReloadCount=30
     PickupAmmoCount=30
     bInstantHit=True
     FireOffset=(X=-16.000000,Y=5.000000,Z=11.500000)
     shakemag=200.000000
     FireSound=Sound'ContenderStuff.Weapons.TMPFire'
     AltFireSound=None
     CockingSound=Sound'ContenderStuff.Weapons.TMPReload'
     SelectSound=Sound'ContenderStuff.Weapons.TMPSelect'
     InventoryGroup=104
     ItemName="Tactical Machine Pistol (TMP) |p3[Silenced]|p1"
     ItemArticle="a"
     PlayerViewOffset=(X=16.000000,Y=-5.000000,Z=-11.500000)
     PlayerViewMesh=LodMesh'ContenderStuff.tmp1'
     PlayerViewScale=0.7
     PickupViewMesh=LodMesh'ContenderStuff.tmppickup'
     PickupViewScale=0.9
     ThirdPersonMesh=LodMesh'ContenderStuff.tmp3'
     ThirdPersonScale=0.9
     LandSound=Sound'DeusExSounds.Generic.DropMediumWeapon'
     Icon=Texture'ContenderStuff.Icons.BeltIconTMP2'
     largeIcon=Texture'ContenderStuff.Icons.LargeIconTMP2'
     largeIconWidth=46
     largeIconHeight=28
     invSlotsX=2
     invSlotsY=2
     Description="A Steyr TMP with a silencer attached. "
     beltDescription="TMP |p3(SI)|p1"
     Mesh=LodMesh'ContenderStuff.tmpPickup'
     CollisionRadius=15.000000
     CollisionHeight=1.100000
     Mass=15.000000
}
