Page 1 of 1

EEEKKKK!!!! (Coding screw up...)

PostPosted: Mon Jul 03, 06 6:22 pm
by Gishank
One weapon in my entire AWMOD is fecked. Heres the code. It works but it doesn't fire the projectile, when the projectile is working.

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?

PostPosted: Mon Jul 03, 06 6:47 pm
by Dae
Before we start investigating, try the easiest thing: change this letter to upper case in this line
ProjectileClass=class'AWMOD.IonLaser'


By the way, you posted in wrong forum.

PostPosted: Mon Jul 03, 06 7:00 pm
by Gishank
...
It was the c... I feel so :oops: Lol, nah thanks :D I think i made it a little too powerful.

PostPosted: Mon Jul 03, 06 7:45 pm
by DarkKnight
Gishank wrote:...
It was the c... I feel so :oops: Lol, nah thanks :D I think i made it a little too powerful.


It's a more common mistake then you think.

PostPosted: Mon Jul 03, 06 8:32 pm
by clyzm
It's easier not to make mistakes in UnrealScript if you are an UnrealScript Grammar Nazi.

PostPosted: Wed Jul 05, 06 8:27 pm
by DarkKnight
chococataclyzm wrote:It's easier not to make mistakes in UnrealScript if you are an UnrealScript Grammar Nazi.


Anything but the simple scripting languages will punish you for bad grammar, and give you vauge errors to boot!

PostPosted: Wed Jul 05, 06 10:26 pm
by Wasted
chococataclyzm wrote:It's easier not to make mistakes in UnrealScript if you are an UnrealScript Grammar Nazi.


Uber Nazi


(same but Jay hits you with a spoon when you maKe a mistake)

PostPosted: Wed Jul 05, 06 10:47 pm
by clyzm
Bob Dole. wrote:
chococataclyzm wrote:It's easier not to make mistakes in UnrealScript if you are an UnrealScript Grammar Nazi.


Uber Nazi


(same but Jay hits you with a spoon when you maKe a mistake)


No, uber nazi is not correct grammar nor is it correct spelling.

PostPosted: Thu Jul 06, 06 9:16 pm
by DarkKnight
chococataclyzm wrote:
Bob Dole. wrote:
chococataclyzm wrote:It's easier not to make mistakes in UnrealScript if you are an UnrealScript Grammar Nazi.


Uber Nazi


(same but Jay hits you with a spoon when you maKe a mistake)


No, uber nazi is not correct grammar nor is it correct spelling.


Über Nazi

iirc.

PostPosted: Thu Jul 06, 06 9:34 pm
by clyzm
DarkKnight wrote:
chococataclyzm wrote:
Bob Dole. wrote:
chococataclyzm wrote:It's easier not to make mistakes in UnrealScript if you are an UnrealScript Grammar Nazi.


Uber Nazi


(same but Jay hits you with a spoon when you maKe a mistake)


No, uber nazi is not correct grammar nor is it correct spelling.


Über Nazi

iirc.


Steve-o is right.

PostPosted: Thu Jul 06, 06 10:21 pm
by Wasted
Yeah.. Nut I like Doughnuts? Thats gotta count for something.

PostPosted: Sat Jul 08, 06 8:16 am
by Big Daddy
You accuse me of spamming? Don't tell people not to do it if you can't do it yourself. Hypocrites get no where.

PostPosted: Sat Jul 08, 06 8:18 am
by Gishank
Why has my topic for help with a coding screw up turn't into a spam flam at tant? :roll:

Please lock this topic seeming as it has no further use.

PostPosted: Sat Jul 08, 06 8:26 am
by Big Daddy
Nah, I'm fine but I do think this should be locked.


Jay should be sensing it any second now...

PostPosted: Sat Jul 08, 06 12:03 pm
by James
Fux.