Classes:GrenadeLauncher
Classes: Inventory→Weapon→DoomWeapon→GrenadeLauncher
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
|
Grenade launcher | |||
---|---|---|---|
Actor type | Weapon | Game | ![]() |
DoomEd Number | 5011 | Class Name | GrenadeLauncher |
Spawn ID | 163 | Identifier | T_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 } }
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.