Here is my PISTOL replacment code.
Code: Select all
ACTOR Duelling Gun replaces Pistol
{
//$Category Weapons
//$Title DuellingGun
//$Sprite NCGNA0
Weapon.SelectionOrder 1900
Weapon.AmmoUse 1
Weapon.AmmoGive 8
Weapon.AmmoType "Clip"
Scale 0.7
Obituary "$OB_MPPISTOL"
+WEAPON.WIMPY_WEAPON
Inventory.Pickupmessage "$A gun... better use it wisely."
Tag "$TAG_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_Light1
Goto LightDone
Spawn:
NCGN A -1
Stop
}
}
Thanks in advance.