- Code: Select all
//=============================================================================
// WeaponIonCannon
//=============================================================================
class WeaponIon 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;
}
}
function PostBeginPlay()
{
Super.PostBeginPlay();
bWeaponStay=False;
}
// 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=0
GoverningSkill=Class'SkillWeaponHeavy'
NoiseLevel=2.00
EnviroEffective=1
ShotTime=0.30
reloadTime=0.00
HitDamage=100
maxRange=24000
AccurateRange=14400
BaseAccuracy=0.60
bHasMuzzleFlash=False
recoilStrength=1.00
mpHitDamage=100
mpBaseAccuracy=0.60
mpAccurateRange=14400
mpMaxRange=14400
AmmoName=Class'AmmoNone'
ReloadCount=0
FireOffset=(X=28.00,Y=12.00,Z=4.00),
ProjectileClass=class'AWMOD.IonLaser'
shakemag=500.00
FireSound=Sound'DeusExSounds.Weapons.LAWFire'
SelectSound=Sound'DeusExSounds.Weapons.LAWSelect'
InventoryGroup=16
ItemName="Ion Cannon"
PlayerViewOffset=(X=10.00,Y=-110.00,Z=-18.00),
PlayerViewMesh=LodMesh'DeusExItems.LAW'
PickupViewMesh=LodMesh'DeusExItems.LAWPickup'
ThirdPersonMesh=LodMesh'DeusExItems.LAW3rd'
LandSound=Sound'DeusExSounds.Generic.DropLargeWeapon'
Icon=Texture'DeusExUI.Icons.BeltIconLAW'
largeIcon=Texture'DeusExUI.Icons.LargeIconLAW'
largeIconWidth=166
largeIconHeight=47
invSlotsX=4
Description=""
beltDescription="Ion Cannon"
Mesh=LodMesh'DeusExItems.LAWPickup'
CollisionRadius=25.00
CollisionHeight=6.80
Mass=0.00
}
Any help?