- Code: Select all • Expand 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.
