File
- Defined in \weapons\SAW.txt
Flags
Properties
//$category | Weapons |
game | Doom |
inventory.pickupmessage | "$GOTCHAINSAW" |
inventory.pickupsound | "weapons/chainsaw/draw" |
obituary | "$OB_MPCHAINSAW" |
tag | "$TAG_CHAINSAW" |
weapon.ammogive1 | 0 |
weapon.ammogive2 | 0 |
weapon.ammouse1 | 0 |
weapon.ammouse2 | 0 |
weapon.readysound | "weapons/chainsaw/idle" |
weapon.selectionorder | 9000 |
weapon.slotnumber | 1 |
weapon.slotpriority | 1 |
weapon.upsound | "none" |
States
Spawn:
CSAW A -1
Deselect:
TNT1 A 0 A_StopsoundEx("Weapon")
SAWG A 1 Offset(0, 64)
SAWG A 1 Offset(0, 96)
TNT1 A 0 A_Lower
TNT1 AAAAAAAAAAAAAAAAAA 0 A_Lower
SAWS A 1 A_Lower
wait
Ready:
SAWY ABCDE 1 A_WeaponReady(WRF_ALLOWZOOM)
SAWS A 2 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_PlaySound("weapons/chainsaw/zip", CHAN_WEAPON)
TNT1 A 0 A_PlaySound("weapons/chainsaw/idle", CHAN_VOICE)
TNT1 A 0 A_AlertMonsters
SAWS BCDEFEDCB 1 A_WeaponReady(WRF_ALLOWZOOM)
SAWS A 1 A_WeaponReady(WRF_ALLOWZOOM)
SAWS A 4 {
A_PlaySound("weapons/chainsaw/draw", CHAN_WEAPON);
A_WeaponReady(WRF_ALLOWZOOM);
}
ReadyLoop:
TNT1 A 0 A_playsound("weapons/chainsaw/idle")
SAWG ABAB 2 A_weaponready(WRF_ALLOWZOOM)
TNT1 A 0 A_AlertMonsters
goto ReadyLoop
Fire:
TNT1 A 0
TNT1 A 0 A_playsound("weapons/chainsaw/start")
TNT1 A 0 A_AlertMonsters
SAWG ABCD 1
Hold:
TNT1 A 0 A_PlaySound("weapons/chainsaw/loop", CHAN_WEAPON, 1.0, true)
SAWF A 1 A_Saw("weapons/chainsaw/loop", "weapons/chainsaw/cut", 5, "SSawPuff")
SAWF B 1
SAWF C 1 A_Saw("", "", 5, "SSawPuff")
SAWF D 1
TNT1 A 0 A_AlertMonsters
TNT1 A 0 A_Refire
TNT1 A 0 A_StopSound(CHAN_WEAPON)
TNT1 A 0 A_PlaySound("weapons/chainsaw/stop")
SAWG DC 1
goto ReadyLoop