Difference between revisions of "Classes:MachineGun"

From ECWolf Wiki
 
(One intermediate revision by the same user not shown)
Line 18: Line 18:
 
   {{property|inventory.pickupsound}} "weapon/machine/pickup"
 
   {{property|inventory.pickupsound}} "weapon/machine/pickup"
 
   {{property|weapon.selectionorder}} 1300
 
   {{property|weapon.selectionorder}} 1300
 +
  +{{flag|INVENTORY.ALWAYSPICKUP}}
 
   states
 
   states
 
   {
 
   {
Line 29: Line 30:
 
       MCHG B 3
 
       MCHG B 3
 
     Hold:
 
     Hold:
       MCHG C 3 bright [[A_GunAttack]]
+
       MCHG C 3 bright
      MCHG D 3
+
      MCHG D 3 [[A_GunAttack]]
 
       MCHG E 3 [[A_ReFire]]
 
       MCHG E 3 [[A_ReFire]]
 
       goto Ready
 
       goto Ready
 
   }
 
   }
 
  }
 
  }

Latest revision as of 06:02, 24 December 2013

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.
Machine Gun
Actor type Weapon Game MiniWolf3DLogoIcon.png
DoomEd Number 60 Class Name MachineGun


Classes: ActorInventoryWeaponWolfWeaponMachineGun
 →BlueAK47

Overview

Automatic rifle in Wolfenstein 3D.

DECORATE Definition

actor MachineGun : WolfWeapon 60
{
  AttackSound "weapon/machine/attack"
  inventory.icon "MACHGUN"
  inventory.pickupsound "weapon/machine/pickup"
  weapon.selectionorder 1300
  +INVENTORY.ALWAYSPICKUP
  states
  {
    Spawn:
      MGUN A -1
      stop
    Ready:
      MCHG A 1 A_WeaponReady
      loop
    Fire:
      MCHG B 3
    Hold:
      MCHG C 3 bright
      MCHG D 3 A_GunAttack
      MCHG E 3 A_ReFire
      goto Ready
  }
}