Classes:Pistol

From ZDoom Wiki

Jump to: navigation, search
Pistol
Actor type Weapon Game
DoomEd Number 5010 Class Name Pistol

Classes: InventoryWeaponDoomWeaponPistol


The pistol. The weapon you start of with and the weakest long range weapon in Doom. Uses clips for ammo.


DECORATE definition

actor Pistol : DoomWeapon 5010 //The definition as of the development of Skulltag.
{
  Weapon.SelectionOrder 1900
  Weapon.AmmoUse 1
  Weapon.AmmoGive 20
  Weapon.AmmoType "Clip"
  Obituary "$OB_MPPISTOL" // "%o was tickled by %k's pea shooter."
  +WEAPON.WIMPY_WEAPON
  Inventory.Pickupmessage "$PICKUP_PISTOL_DROPPED" // "Picked up a pistol."
  States
  {
  Ready:
    PISG A 1 A_WeaponReady
    Loop
  Deselect:
    PISG A 1 A_Lower
    Loop
  Select:
    PISG A 1 A_Raise
    Loop
  Fire:
    PISG A 4
    PISG B 6 A_FirePistol
    PISG C 4
    PISG B 5 A_ReFire
    Goto Ready
  Flash:
    PISF A 7 Bright A_Light1
    Goto LightDone
    PISF A 7 Bright A_Light0
    Goto LightDone
  Spawn:
    PIST A -1
    Stop
  }
}
Personal tools