Classes:GrenadeLauncher
Jump to navigation
Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
|
Grenade launcher | |||
---|---|---|---|
Actor type | Weapon | Game | ![]() |
DoomEd Number | 5011 | Class Name | GrenadeLauncher |
Spawn ID | 163 | Identifier | T_GRENADELAUNCHER |
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.
DECORATE definition
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 } }