|
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
- This actor is already defined in GZDoom, there's no reason to define it again.
- In fact, trying to define an actor with the same name will cause an error (because it already exists).
- If you want to make your own version of this actor, use inheritance.
- Definitions for existing actors are put on the wiki for reference purpose only.
|
Arc of death spell
|
Actor type
|
Weapon
|
Game
|
(Hexen)
|
DoomEd Number
|
8040
|
Class Name
|
MWeapLightning
|
Classes: Inventory→Weapon→MageWeapon→MWeapLightning
The Mage's third weapon, the Arc of Death spell uses 5 green mana to summon a vertical lightning bolt that will stick on enemies and keep dealing damage.
ACTOR MWeapLightning : MageWeapon
{
+NOGRAVITY
Weapon.SelectionOrder 1100
Weapon.AmmoUse1 5
Weapon.AmmoGive1 25
Weapon.KickBack 0
Weapon.YAdjust 20
Weapon.AmmoType1 "Mana2"
Inventory.PickupMessage "$TXT_WEAPON_M3" // "ARC OF DEATH"
Tag "$TAG_MWEAPLIGHTNING"
action native A_LightningReady();
action native A_MLightningAttack(class<Actor> floor = "LightningFloor", class<Actor> ceiling = "LightningCeiling");
States
{
Spawn:
WMLG ABCDEFGH 4 Bright
Loop
Select:
MLNG A 1 Bright A_Raise
Loop
Deselect:
MLNG A 1 Bright A_Lower
Loop
Ready:
MLNG AAAAA 1 Bright A_WeaponReady
MLNG A 1 Bright A_LightningReady
MLNG BBBBBB 1 Bright A_WeaponReady
MLNG CCCCC 1 Bright A_WeaponReady
MLNG C 1 Bright A_LightningReady
MLNG BBBBBB 1 Bright A_WeaponReady
Loop
Fire:
MLNG DE 3 Bright
MLNG F 4 Bright A_MLightningAttack
MLNG G 4 Bright
MLNG HI 3 Bright
MLNG I 6 Bright Offset(0, 199)
MLNG C 2 Bright Offset(0, 55)
MLNG B 2 Bright Offset(0, 50)
MLNG B 2 Bright Offset(0, 45)
MLNG B 2 Bright Offset(0, 40)
Goto Ready
}
}