Railgun.bex
Jump to navigation
Jump to search
The example file railgun.bex was a DeHackEd patch included with ZDoom v1.17 for demonstrating the particle effect and railgun attack codepointers. This example is likely the primary offender responsible for A_RailWait's continued existence.
Code
[CODEPTR] Frame 77 = A_FireRailgun Frame 78 = A_RailWait # S_PLASMA1 Frame 77 Sprite subnumber = 32768 Duration = 3 Next frame = 78 # S_PLASMA2 Frame 78 Sprite subnumber = 1 Duration = 50 Next frame = 74
A DECORATE equivalent to that code would be:
Actor RailgunDotBex : PlasmaRifle replaces PlasmaRifle { Weapon.SlotNumber 6 States { Fire: PLSG A 3 Bright A_FireRailgun PLSG B 50 Goto Ready } }