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

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

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

Postby Gishank » Mon Jul 03, 06 6:22 pm

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?
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Dae » Mon Jul 03, 06 6:47 pm

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.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Gishank » Mon Jul 03, 06 7:00 pm

...
It was the c... I feel so :oops: Lol, nah thanks :D I think i made it a little too powerful.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby DarkKnight » Mon Jul 03, 06 7:45 pm

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.
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby clyzm » Mon Jul 03, 06 8:32 pm

It's easier not to make mistakes in UnrealScript if you are an UnrealScript Grammar Nazi.
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq

Postby DarkKnight » Wed Jul 05, 06 8:27 pm

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!
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby Wasted » Wed Jul 05, 06 10:26 pm

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)
User avatar
Wasted
Forum Hero
 
Posts: 2861
Joined: Sun Oct 30, 05 6:29 pm
Location: 1337 14ND

Postby clyzm » Wed Jul 05, 06 10:47 pm

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.
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq

Postby DarkKnight » Thu Jul 06, 06 9:16 pm

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.
Image
I'm a lover, that's why I do this posting.
I don't need the forum,
I do it to save you ignorant bastards from your self.
User avatar
DarkKnight
Forum Super Hero
 
Posts: 4064
Joined: Wed Dec 10, 03 10:01 am
Location: Under the bridge.

Postby clyzm » Thu Jul 06, 06 9:34 pm

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.
Image
User avatar
clyzm
Forum Master God
 
Posts: 16023
Joined: Sun Nov 28, 04 2:48 am
Location: Chiraq

Postby Wasted » Thu Jul 06, 06 10:21 pm

Yeah.. Nut I like Doughnuts? Thats gotta count for something.
User avatar
Wasted
Forum Hero
 
Posts: 2861
Joined: Sun Oct 30, 05 6:29 pm
Location: 1337 14ND

Postby Big Daddy » Sat Jul 08, 06 8:16 am

You accuse me of spamming? Don't tell people not to do it if you can't do it yourself. Hypocrites get no where.
A CNN reporter, while interviewing a Marine Sniper, asked. "What do you feel when you shoot a terrorist?"
The Marine shrugged and replied, "Recoil."
Image
Sig by Protocol but I did help.....I gave him the render if that counts as something.
User avatar
Big Daddy
Forum Hero
 
Posts: 2186
Joined: Mon Aug 22, 05 7:54 am
Location: In Rapture, looking for Her.

Postby Gishank » Sat Jul 08, 06 8:18 am

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.
Image
Gishank
Forum Super Hero
 
Posts: 4235
Joined: Sun Aug 28, 05 9:17 am
Location: London, England.

Postby Big Daddy » Sat Jul 08, 06 8:26 am

Nah, I'm fine but I do think this should be locked.


Jay should be sensing it any second now...
A CNN reporter, while interviewing a Marine Sniper, asked. "What do you feel when you shoot a terrorist?"
The Marine shrugged and replied, "Recoil."
Image
Sig by Protocol but I did help.....I gave him the render if that counts as something.
User avatar
Big Daddy
Forum Hero
 
Posts: 2186
Joined: Mon Aug 22, 05 7:54 am
Location: In Rapture, looking for Her.

Postby James » Sat Jul 08, 06 12:03 pm

Fux.
I am dead.
User avatar
James
Alpha
 
Posts: 28885
Joined: Sun Oct 26, 03 9:14 pm
Location: Home


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 39 guests