|
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.
|
Grenade launcher
|
Actor type
|
Weapon
|
Game
|
(Skulltag)
|
DoomEd Number
|
5011
|
Class Name
|
GrenadeLauncher
|
Spawn ID
|
163
|
Identifier
|
T_GRENADELAUNCHER
|
|
Warning: This class is a Skulltag-specific actor that is not included in ZDoom!
|
Classes: Inventory→Weapon→DoomWeapon→GrenadeLauncher
A grenade launcher inspired by Quake's own. It uses standard rockets rather than a separate type of grenade ammunitions.
ACTOR GrenadeLauncher : DoomWeapon 5011
{
SpawnID 163
Radius 20
Height 16
Weapon.Selectionorder 2500
+WEAPON.NOAUTOFIRE
+WEAPON.NOAUTOAIM
Weapon.AmmoUse 1
Weapon.AmmoGive 2
Weapon.AmmoType "RocketAmmo"
Weapon.Kickback 100
Weapon.SlotNumber 5 // This line isn't in skulltag.pk3, which instead defines the slot directly in DoomPlayer
Inventory.PickupMessage "$PICKUP_GRENADELAUNCHER" // "You got the grenade launcher!"
action native A_FireSTGrenade ();
States
{
Spawn:
GLAU A -1
Stop
Ready:
GRLG A 1 A_WeaponReady
Loop
Deselect:
GRLG A 1 A_Lower
Loop
Select:
GRLG A 1 A_Raise
Loop
Fire:
GRLG B 8 A_GunFlash
GRLG B 12 A_FireSTGrenade
GRLG B 0 A_ReFire
Goto Ready
Flash:
GRLF A 3 bright A_Light1
GRLF B 4 bright
GRLF C 4 bright A_Light2
GRLF D 4 bright A_Light2
Goto LightDone
}
}