Classes:PhasingZorcher

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Phasing zorcher
Actor type Weapon Game MiniChexLogoIcon.png (Chex)
DoomEd Number 2004 Class Name PhasingZorcher


Classes:ActorInventoryWeaponDoomWeaponPlasmaRiflePhasingZorcher
Chex Quest's equivalent of Doom's Plasma Rifle.
It appears to be a white weapon about the size of its Doom template with large brown cylindrical muzzle and it rapidly fires red Phasing Zorch shots.

DECORATE definition

ACTOR PhasingZorcher : PlasmaRifle
{
  Obituary ""
  Inventory.PickupMessage "$GOTPHASINGZORCHER" // "You got the Phasing Zorcher!"
  Tag "$TAG_PHASINGZORCHER" // "Phasing Zorcher"
  States
  {
  Fire:
    PLSG A 0 A_GunFlash
    PLSG A 3 A_FireCustomMissile("PhaseZorchMissile")
    PLSG B 20 A_ReFire
    Goto Ready
  Flash:
    PLSF A 0 A_Jump(128, "Flash2")
    PLSF A 3 Bright A_Light1
    Goto LightDone
  Flash2:
    PLSF B 3 Bright A_Light1
    Goto LightDone
  }
}