[Fixed] [r3535?] A_FireRailgun is broken

Bugs that have been investigated and resolved somehow.

Moderator: Developers

[r3535?] A_FireRailgun is broken

Postby Kinsie » Tue Apr 10, 2012 10:34 am

For some reason, this action doesn't seem to do much of anything at the moment. Try this weapon code (thanks to Enjay for changing it up to use default iwad graphics)
Code: Select allExpand view
        ACTOR NewRailgun : Weapon
        {
           Weapon.SelectionOrder 100
           Weapon.AmmoUse 1
           Weapon.AmmoUse 10
           Weapon.AmmoGive 400
           Weapon.AmmoType "Cell"
           Inventory.PickupMessage "$GOTRAIL"
           Tag "$TAGRAIL"
           States
           {
           Ready:
              SHTG A 1 A_WeaponReady
              Loop
           Deselect:
              SHTG A 1 A_Lower
              goto Deselect
           Select:
              SHTG A 1 A_Raise
              goto Select
           Fire:
              SHTG A 3 A_FireRailgun
              SHTG BCD 2
              Goto Ready
           Flash:
              TNT1 A 2 Bright A_Light1
              TNT1 A 1 Bright A_Light1
              TNT1 A 1 Bright A_Light1
              Goto LightDone
           Spawn:
              SHOT A 1600 bright
              stop
           }
        }

Upon firing, you'll see the animation occur and your ammo go down, but the rail itself will never be spawned.

Just a heads-up.
User avatar
Kinsie
So Reel
 
Joined: 22 Oct 2004
Location: MAP33

Re: [r3535?] A_FireRailgun is broken

Postby jpalomo » Tue Apr 10, 2012 11:17 am

I think this broke with the recent addition of this. So somewhere between r3520 and r3534.
User avatar
jpalomo
 
Joined: 17 May 2010

Re: [r3535?] A_FireRailgun is broken

Postby Major Cooke » Tue Apr 10, 2012 1:10 pm

You should be using A_RailAttack instead, if anything.
User avatar
Major Cooke
That's how my uncle stole christmas three times in a row in a single year. -DBT
 
Joined: 28 Jan 2007

Re: [r3535?] A_FireRailgun is broken

Postby Graf Zahl » Tue Apr 10, 2012 1:26 pm

Still needs fixing.
User avatar
Graf Zahl
 
Joined: 19 Jul 2003
Location: Germany

Re: [r3535?] A_FireRailgun is broken

Postby Xaser » Tue Apr 10, 2012 7:32 pm

Fixed. The default value for the new 'range' parameter was incorrectly set to zero, causing A_FireRailgun to emit a zero-length "rail."
Attachments
xa-rails_oldrailfix.zip
TortoiseSVN patch, based on latest SVN.
(681 Bytes) Downloaded 4 times
User avatar
Xaser
secretly a supercomputer being a government
 
Joined: 20 Jul 2003
Location: .plɹoʍɹǝʌǝu.


Return to Closed Bugs

Who is online

Users browsing this forum: Bing [Bot] and 0 guests