//=============================================================================
// WeaponEMPGrenade.
//=============================================================================
class SpiderWeap extends WeaponGasGrenade;

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

function PostBeginPlay()
{
   Super.PostBeginPlay();
   bWeaponStay=False;
}

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 NearWallCheck()
{
	return False;
}


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

// Become a pickup
// Weapons that carry their ammo with them don't vanish when dropped
function BecomePickup()
{
	Super.BecomePickup();
   if (Level.NetMode != NM_Standalone)
      if (bTossedOut)
         Lifespan = 0.0;
}



defaultproperties
{
    LowAmmoWaterMark=2
    GoverningSkill=Class'SkillDemolition'
    EnemyEffective=2
    Concealability=1
    ShotTime=0.30
    reloadTime=0.10
    HitDamage=0
    maxRange=4800
    AccurateRange=2400
    BaseAccuracy=1.00
    bPenetrating=False
    StunDuration=60.00
    bHasMuzzleFlash=False
    bHandToHand=True
    bUseAsDrawnWeapon=False
    AITimeLimit=3.50
    AIFireDelay=5.00
    bNeedToSetMPPickupAmmo=False
    mpReloadTime=0.10
    mpBaseAccuracy=1.00
    mpAccurateRange=2400
    mpMaxRange=2400
    AmmoName=Class'Contender.SpiderAmmo'
    ReloadCount=1
    PickupAmmoCount=1
    FireOffset=(X=0.00,Y=10.00,Z=20.00),
    ProjectileClass=Class'Contender.SpiderProj'
    shakemag=50.00
    SelectSound=Sound'DeusExSounds.Weapons.EMPGrenadeSelect'
    InventoryGroup=244
    ItemName="SpiderBot Grenade"
    ItemArticle="an"
    PlayerViewOffset=(X=24.00,Y=-15.00,Z=-19.00),
    PlayerViewMesh=LodMesh'DeusExItems.EMPGrenade'
    PickupViewMesh=LodMesh'DeusExItems.EMPGrenadePickup'
    ThirdPersonMesh=LodMesh'DeusExItems.EMPGrenade3rd'
    Icon=Texture'DeusExUI.Icons.BeltIconEMPGrenade'
    largeIcon=Texture'DeusExUI.Icons.LargeIconEMPGrenade'
    largeIconWidth=31
    largeIconHeight=49
    Description="leet spid0r t0 t3h t00l3r."
    beltDescription="SPIDERGREN"
    Mesh=LodMesh'DeusExItems.EMPGrenadePickup'
    CollisionRadius=3.00
    CollisionHeight=2.43
    Mass=5.00
    Buoyancy=2.00
}
