File
- Defined in \weapons\MINIGUN.txt
Flags
Properties
//$category | Weapons |
attacksound | "none" |
game | Doom |
inventory.pickupmessage | "You got the Minigun!" |
inventory.pickupsound | "weapons/chaingun/pickup" |
obituary | "%o was mown down by %k's Minigun." |
spawnid | 28 |
weapon.ammogive | 30 |
weapon.ammogive1 | 0 |
weapon.ammogive2 | 0 |
weapon.ammotype1 | "RifleAmmo" |
weapon.ammouse1 | 1 |
weapon.ammouse2 | 0 |
weapon.selectionorder | 700 |
weapon.slotnumber | 4 |
States
Spawn:
MGUN A -1
Stop
Ready:
CHGS ABCD 1
TNT1 A 0 A_PlaySound("weapons/chaingun/draw")
ReadyLoop:
CHAG A 1 A_WeaponReady(WRF_ALLOWZOOM)
Goto ReadyLoop
Deselect:
CHGS DCBA 1
TNT1 AAAAAAAAAAAAAAAAAA 0 A_Lower
TNT1 A 1
Wait
NoAmmo:
CHAE A 10 A_PlaySound("weapons/empty")
Goto ReadyLoop
Fire:
TNT1 A 0 A_PlaySound("weapons/chaingun/start", 3)
TNT1 A 0 A_AlertMonsters
CHAG BCD 2
CHAG BCDBCD 1
TNT1 A 0
Hold:
TNT1 A 0 A_Recoil(0.1)
TNT1 A 0 A_SetAngle(random(1, -1) + angle)
TNT1 A 0 A_SetPitch(-0.4 + pitch)
//Main firing loop
TNT1 A 0 A_PlaySound("weapons/chaingun/spin", 3)
TNT1 A 0 A_PlaySound("weapons/chaingun/fire", 1)
TNT1 A 0 A_Recoil(0.1)
TNT1 A 0 A_FireCustomMissile("PlayerQuakeSmall", 0, 0, 0, 0)
CHAF A 1 BRIGHT A_FireBullets(6, 4, 1, 9, "MachineGunBulletPuff", 1)
TNT1 A 0 A_SpawnItemEx("PlayerMuzzle2",30,5,27)
TNT1 A 0 A_FireCustomMissile("MinigunTracer", random(-3,3), 0, -1, -12, 0, random(-3,3))
TNT1 A 0 A_SpawnItemEx("BulletCasing", 17, 3, 35, 0, random(3,6), random(3,7))
CHAF B 1
TNT1 A 0 A_PlaySound("weapons/chaingun/fire", 1)
CHAF J 1 BRIGHT A_FireBullets(6, 4, 1, 9, "MachineGunBulletPuff", 1)
TNT1 A 0 A_SpawnItemEx("PlayerMuzzle2",30,5,27)
TNT1 A 0 A_FireCustomMissile("MinigunTracer", random(-3,3), 0, -1, -12, 0, random(-3,3))
TNT1 A 0 A_SpawnItemEx("BulletCasing", 17, 3, 35, 0, random(3,6), random(3,7))
CHAF H 1 A_SetAngle(random(1, -1) + angle)
TNT1 A 0 A_ReFire
//Cooldown
CHAG A 1 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG B 1 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_Refire
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG C 1 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG D 1 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
TNT1 A 0 A_PlaySound("weapons/chaingun/stop", 3)
CHAG A 1 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG B 1 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG C 2 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG D 2 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG A 2
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG B 2
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG C 2 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG D 2 A_WeaponReady(WRF_ALLOWZOOM)
TNT1 A 0 A_FireCustomMissile("MiniSmoke",0,0,0,0)
CHAG ABCD 2 A_WeaponReady
CHAG ABCD 3 A_WeaponReady
goto ReadyLoop