File
- Defined in \weapons\FlakCannon.txt
Flags
Properties
//$category | Weapons |
damagetype | Flak |
game | Doom |
inventory.pickupmessage | "You found a flak cannon!" |
inventory.pickupsound | "weapons/ssg/clip" |
obituary | "%k caught %o in a flak attack" |
radius | 20 |
weapon.ammogive | 5 |
weapon.ammogive1 | 0 |
weapon.ammogive2 | 0 |
weapon.ammotype | "FlakAmmo" |
weapon.ammouse | 1 |
weapon.ammouse1 | 0 |
weapon.ammouse2 | 0 |
weapon.kickback | 5 |
weapon.selectionorder | 400 |
weapon.slotnumber | 7 |
weapon.slotpriority | 1 |
States
Spawn:
FKGN Z -1
Stop
Ready:
FKGN LMN 2
TNT1 A 0 A_PlaySound("weapons/sshotc")
FKGN AA 1
FKGN AA 1
TNT1 A 0 A_PlaySound("weapons/ssg/clip")
FKGN AA 1
FKGN AA 1
ReadyLoop:
FKGN A 1 A_WeaponReady(WRF_ALLOWZOOM)
Goto ReadyLoop
Deselect:
FKGN NML 1
TNT1 A 0 A_PlaySound("weapons/ssg/clip")
TNT1 AAAAAAAAAAAAAAAAAA 0 A_Lower
TNT1 A 1
Wait
Fire:
TNT1 A 0 A_JumpIfNoAmmo("NoAmmo")
TNT1 A 0 A_Recoil(5)
TNT1 A 0 A_AlertMonsters
FKGN B 1 BRIGHT A_playsound("weapons/ssg/fire", 5)
TNT1 AAAAAAAAAAAAAAA 0 A_FireCustomMissile("FlakShard", random(-12,12), 0, -1, -1, FPF_NOAUTOAIM, random(-5,5))
TNT1 AA 0 A_FireCustomMissile("YellowFlareSpawn",15,0,0,0)
TNT1 AA 0 A_FireCustomMissile("YellowFlareSpawn",-15,0,0,0)
TNT1 A 0 A_SpawnItemEx("PlayerMuzzle2",30,5,27)
FKGN B 1 BRIGHT
TNT1 A 0 A_FireBullets (24, 6, 6, 7, "FlakPuff")
TNT1 A 0 A_SetPitch(-16.0 + pitch)
TNT1 A 0 A_FireCustomMissile("PlayerQuakeLarge", 0, 0, 0, 0)
FKGN B 1 BRIGHT A_SetPitch(+2.0 + pitch)
FKGN C 1
TNT1 A 0 A_SetPitch(+2.0 + pitch)
FKGN C 1
TNT1 A 0 A_SetPitch(+2.0 + pitch)
FKGN C 1
TNT1 A 0 A_SetPitch(+2.0 + pitch)
FKGN C 2
TNT1 A 0 A_SetPitch(+2.0 + pitch)
FKGN C 2
TNT1 A 0 A_SetPitch(+2.0 + pitch)
FKGN C 3 A_SetPitch(+2.0 + pitch)
TNT1 A 0 A_SetPitch(+2.0 + pitch)
FKGN C 4
TNT1 A 0 A_JumpIfInventory("FlakAmmo", 1, 1)
Goto ReadyLoop
FKGN DEFFFFF 2
FKGN G 2 A_PlaySound("weapons/flakcannon/snap")
FKGN HHOOII 2
FKGN I 4
FKGN JK 2
TNT1 A 0 A_playsound("weapons/flakcannon/reload")
FKGN L 6
FKGN MNAA 2
TNT1 A 0 A_ReFire
FKGN A 2
Goto ReadyLoop
NoAmmo:
FKGN A 4 A_PlaySound("weapons/empty", 2)
Goto ReadyLoop