//=============================================================================
// WeaponXCR. == By MainMan. Mesh By mzylc.
//=============================================================================
class WeaponXCR extends DeusExWeapon;




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 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 PreBeginPlay()
{
	Super.PreBeginPlay();

	// If this is a netgame, then override defaults
	if ( Level.NetMode != NM_StandAlone )
	{
		HitDamage = mpHitDamage;
		BaseAccuracy = mpBaseAccuracy;
		ReloadTime = mpReloadTime;
		AccurateRange = mpAccurateRange;
		MaxRange = mpMaxRange;
		ReloadCount = mpReloadCount;
	}
}

defaultproperties
{
     LowAmmoWaterMark=6
     GoverningSkill=Class'DeusEx.SkillWeaponRifle'
     EnviroEffective=ENVEFF_Air
     Concealability=CONC_Visual
     ShotTime=0.20000
     bAutomatic=True
     reloadTime=0.500000
     HitDamage=5
     maxRange=5000
     AccurateRange=4200
     BaseAccuracy=0.800000
     recoilStrength=0.300000
     mpReloadTime=0.500000
     mpHitDamage=5
     mpBaseAccuracy=0.800000
     mpAccurateRange=2400
     mpMaxRange=2400
     mpReloadCount=15
     bCanHaveModBaseAccuracy=True
     bCanHaveModReloadCount=True
     bCanHaveModAccurateRange=True
     bCanHaveModReloadTime=True
     bCanHaveModRecoilStrength=True
     AmmoName=Class'AmmoMP5'
     ReloadCount=15
     PickupAmmoCount=45
     bInstantHit=True
     FireOffset=(X=-22.000000,Y=10.000000,Z=14.000000)
     shakemag=50.000000
     FireSound=Sound'ContenderStuff.Weapons.MP5Fire2'
     CockingSound=Sound'ContenderStuff.weapons.MP5reload'
     SelectSound=Sound'DeusExSounds.Weapons.AssaultGunSelect'
     InventoryGroup=210
     ItemName="Heckler & Koch MP5"
     PlayerViewOffset=(X=22.000000,Y=-10.000000,Z=-14.000000)
     PlayerViewMesh=LodMesh'ContenderStuff.mp51st'
     PickupViewMesh=LodMesh'ContenderStuff.mp5Pickup'
     ThirdPersonMesh=LodMesh'ContenderStuff.mp53rd'
     Icon=Texture'ContenderStuff.BeltIconMP5'
     largeIcon=Texture'ContenderStuff.BeltIconMP5'
     largeIconWidth=46
     largeIconHeight=28
     Description="A tactical submachine gun that utilizes 9mm bullets and effective stopping power, although it is loud."
     beltDescription="H&K MP5"
     Mass=30.000000
     Mesh=LodMesh'ContenderStuff.mp5pickup''
     CollisionRadius=7.000000
     CollisionHeight=1.000000
}
