class WeaponMAC10 extends DeusExWeapon;


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;
	}
}

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



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 PlayIdleAnim()
{
	local float rnd;

	if (bZoomed || bNearWall)
		return;

	rnd = FRand();

	if (rnd < 0.15)
		PlayAnim('Idle1',,0.1);
	else if (rnd < 0.5)
		PlayAnim('Idle2',,0.1);
}



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);
	}
}

defaultproperties
{
     LowAmmoWaterMark=6
     GoverningSkill=Class'DeusEx.SkillWeaponPistol'
     EnviroEffective=ENVEFF_Air
     Concealability=CONC_Visual
     ShotTime=0.060000
     reloadTime=2.000000
     bAutomatic=False
     HitDamage=5
     maxRange=3500
     AccurateRange=2900
     BaseAccuracy=0.800000
     bCanHaveScope=True
     ScopeFOV=25
     bCanHaveLaser=True
     recoilStrength=0.550000
     mpReloadTime=2.000000
     mpHitDamage=5
     mpBaseAccuracy=0.800000
     mpAccurateRange=1200
     mpMaxRange=1200
     mpReloadCount=32
     bCanHaveModBaseAccuracy=True
     bCanHaveModReloadCount=True
     bCanHaveModAccurateRange=True
     bCanHaveModReloadTime=True
     bCanHaveModRecoilStrength=True
     AmmoName=Class'Contender.AmmoMAC10'
     ReloadCount=32
     PickupAmmoCount=32
     bInstantHit=True
     FireOffset=(X=15.00,Y=6.00,Z=-20.00)
     shakemag=250.000000
    FireSound=Sound'ContenderStuff.Weapons.IngramFire'
    AltFireSound=Sound'ContenderStuff.Weapons.IngramReloadEnd'
    CockingSound=Sound'ContenderStuff.Weapons.IngramReloadBegin'
    SelectSound=Sound'ContenderStuff.Weapons.IngramSelect'
     InventoryGroup=112
     ItemName="Military Armament Corporation Model 10 (MAC-10)"
    PlayerViewOffset=(X=15.00,Y=6.00,Z=-20.00)
     PlayerViewMesh=LodMesh'ContenderStuff.ingram1st'
     PickupViewMesh=LodMesh'ContenderStuff.ingrampickup'
     ThirdPersonMesh=LodMesh'ContenderStuff.ingram3rd'
    PlayerViewScale=0.50
     ThirdPersonScale=1.08
     Icon=Texture'ContenderStuff.Icons.BeltIconMAC10'
     largeIcon=Texture'ContenderStuff.Icons.LargeIconMAC10'
     largeIconWidth=46
     largeIconHeight=28
     Description="It's just a MAC 10, what more do you want to know?"
     beltDescription="MAC-10"
    Mesh=LodMesh'ingrampickup'
     CollisionRadius=7.000000
     CollisionHeight=1.000000
     Mass=25.00000
}
