Classes:MiniMissileLauncher

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Mini-missile launcher
Actor type Weapon Game MiniStrifeLogoIcon.png
DoomEd Number 2003 Class Name MiniMissileLauncher
Conversation ID 192, 186, 190 Puzzle Item ID N/A


Classes: InventoryWeaponStrifeWeaponMiniMissileLauncher
Strife's equivalent of the Rocket Launcher.

DECORATE definition

ACTOR MiniMissileLauncher : StrifeWeapon
{
  +FLOORCLIP
  Weapon.SelectionOrder 1800
  Weapon.AmmoUse1 1
  Weapon.AmmoGive1 8
  Weapon.AmmoType1 "MiniMissiles"
  Inventory.Icon "MMSLA0"
  Tag "$TAG_MMLAUNCHER" // "Mini Missile Launcher"
  Inventory.PickupMessage "$TXT_MMLAUNCHER" // "You picked up the mini missile launcher."

  action native A_FireMiniMissile();

  States
  {
  Spawn:
    MMSL A -1
    Stop
  Ready:
    MMIS A 1 A_WeaponReady
    Loop
  Deselect:
    MMIS A 1 A_Lower
    Loop
  Select:
    MMIS A 1 A_Raise
    Loop
  Fire:
    MMIS A 4 A_FireMiniMissile
    MMIS B 4 A_Light1
    MMIS C 5 Bright
    MMIS D 2 Bright A_Light2
    MMIS E 2 Bright
    MMIS F 2 Bright A_Light0
    MMIS F 0 A_ReFire
    Goto Ready
  }
}