Weapon bob - Experimental build
An example of the code in use is:
Code: Select all
actor BobsPistol : replaces Pistol
{
Game Doom
Weapon.SelectionOrder 1900
Weapon.AmmoUse 1
Weapon.AmmoGive 20
Weapon.AmmoType "Clip"
Weapon.BobStyle "Alpha"
Weapon.BobSpeed 100
Weapon.BobLimit 8
Obituary "oh gn0"
+WEAPON.WIMPY_WEAPON
Inventory.Pickupmessage "You got Bob's Pistol!"
States
{
Ready:
PISG A 1 A_WeaponReady
Loop
Deselect:
PISG A 1 A_Lower
Loop
Select:
PISG A 1 A_Raise
Loop
Fire:
PISG A 4
PISG B 6 A_FirePistol
PISG C 4
PISG B 5 A_ReFire
Goto Ready
Flash:
PISF A 7 Bright A_Light1
Goto LightDone
PISF A 7 Bright A_Light0
Goto LightDone
Spawn:
PIST A -1
Stop
}
}