New chainsaw makes additional sound of end of Fire:
Posted: Sun Mar 22, 2015 12:31 pm
Hello.
The saw makes additional noise (when player dies while attacking). The sound is played every time when the player ends the attack. I've tried a lot to remove this sound. Any suggestions to remove it from the attack section?
The chainsaw code:
The saw makes additional noise (when player dies while attacking). The sound is played every time when the player ends the attack. I've tried a lot to remove this sound. Any suggestions to remove it from the attack section?
The chainsaw code:
Code: Select all
ACTOR "chain saw" : weapon replaces chainsaw
{
Weapon.Kickback 0
Weapon.SelectionOrder 2200
Inventory.PickupMessage "$GOTCHAINSAW"
Obituary "$OB_MPCHAINSAW"
+WEAPON.MELEEWEAPON
States
{
Ready:
TNT1 A 0 A_AlertMonsters
TNT1 A 0 A_PlaySound ("weapons/sawidle")
SAWG CD 4 A_WeaponReady
Loop
Deselect:
SAWG C 0 A_Lower
SAWG C 1 A_Lower
Loop
Select:
TNT1 A 0 A_PlaySound ("weapons/sawup")
SAWG C 0 A_Raise
SAWG C 1 A_Raise
Loop
Fire:
SAWG AB 4 A_Saw ("weapons/sawfull", "weapons/sawhit", 3, Bulletpuff)
SAWG B 0 A_ReFire
Goto Ready
Spawn:
CSAW A -1
Stop
}
}