|
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.
|
Hammer of retribution
|
Actor type
|
Weapon
|
Game
|
(Hexen)
|
DoomEd Number
|
123
|
Class Name
|
FWeapHammer
|
Spawn ID
|
28
|
Identifier
|
T_FIGHTERHAMMER
|
Classes: Inventory→Weapon→FighterWeapon→FWeapHammer
The Fighter's third weapon, Hammer of retribution, is a powerful tool both for melee and long range. At long range, it launches flaming hammers with splash damage, using some green mana. At melee combat, it is stronger than Timon's Axe, although slower. Uses no mana in melee attacks.
ACTOR FWeapHammer : FighterWeapon
{
+BLOODSPLATTER
Weapon.SelectionOrder 900
+WEAPON.AMMO_OPTIONAL
+WEAPON.MELEEWEAPON
Weapon.AmmoUse1 3
Weapon.AmmoGive1 25
Weapon.KickBack 150
Weapon.YAdjust -10
Weapon.AmmoType1 "Mana2"
Inventory.PickupMessage "$TXT_WEAPON_F3"
Obituary "$OB_MPFWEAPHAMMERM"
Tag "$TAG_FWEAPHAMMER"
action native A_FHammerAttack();
action native A_FHammerThrow();
States
{
Spawn:
WFHM A -1
Stop
Select:
FHMR A 1 A_Raise
Loop
Deselect:
FHMR A 1 A_Lower
Loop
Ready:
FHMR A 1 A_WeaponReady
Loop
Fire:
FHMR B 6 Offset(5, 0)
FHMR C 3 Offset(5, 0) A_FHammerAttack
FHMR D 3 Offset(5, 0)
FHMR E 2 Offset(5, 0)
FHMR E 10 Offset(5, 150) A_FHammerThrow
FHMR A 1 Offset(0, 60)
FHMR A 1 Offset(0, 55)
FHMR A 1 Offset(0, 50)
FHMR A 1 Offset(0, 45)
FHMR A 1 Offset(0, 40)
FHMR A 1 Offset(0, 35)
FHMR A 1
Goto Ready
}
}