Here's the code (no doubt amateurish and probably full of messy mistakes i missed).
Code: Select all
// --------------------------------------------------------------------------
//
// Unmaker
//
// --------------------------------------------------------------------------
actor Unmaker : Weapon 0666
{
AttackSound "weapons/unmaker"
Weapon.SelectionOrder 450
Weapon.SlotNumber 6
Weapon.SlotPriority 1
Weapon.AmmoUse 40
Weapon.AmmoGive 40
Weapon.AmmoType "Cell"
Inventory.PickupMessage "$GOTUNMAKER"
Obituary "$OB_UNMAKERMP"
Tag "$TAG_UNMAKER"
States
{
Ready:
UNMA A 1 A_WeaponReady
Loop
Deselect:
UNMA A 1 A_Lower
Loop
Select:
UNMA A 1 A_Raise
Loop
Fire:
UNMA A 0 A_GunFlash
UNMA A 4 A_FireShotgun2
UNMA A 0 A_ReFire
Goto Ready
Flash:
UNMA B 2
Goto LightDone
Spawn:
LGUN A -1
Stop
}
}