Code: Select all
ACTOR UltraPlasmaRifle : PlasmaRifle Replaces PlasmaRifle
{
Inventory.PickupSound "misc/yoink"
Inventory.PickupMessage "You got the Ultra Plasma Rifle!"
Weapon.AmmoType "Cell"
Weapon.UpSound "misc/plasmaraise"
Weapon.AmmoUse1 1
Weapon.AmmoUse2 15
Tag "Ultra Plasma Rifle"
States
{
Ready:
RLRW A 0 A_PlaySound("weapons/plasmaidle",7,0.5,true)
PLSG A 1 A_WeaponReady
Loop
Deselect:
PLSG A 1 A_StopSound(7)
PLSG A 1 A_Lower
NULL AA 0 A_Lower
Loop
Select:
PLSG A 1 A_Raise
NULL AA 0 A_RAISE
Loop
Fire:
PLSG A 2 A_FirePlasma
PLSG B 9 A_ReFire
Goto Ready
AltFire:
PLSG A 2 A_GUNFLASH
PLSG A 2 A_RECOIL(7)
PLSG A 15 A_RailAttack(60, 0, true, "8A2BE2", "8A2BE2", 0, 0, "none")
PLSG B 28 A_REFIRE
Goto Ready
Flash:
PLSF A 4 Bright A_Light1
Goto LightDone
PLSF B 4 Bright A_Light1
Goto LightDone
Spawn:
PLAS A -1
Stop
}
}