Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- actor " Chaingun " : chaingun replaces chaingun
- {
- obituary "%o was mauled by %k's chaingun."
- inventory.pickupmessage "You claimed a chaingun!"
- weapon.ammotype "ChaingunChain"
- weapon.ammouse 1
- weapon.ammogive 50
- weapon.ammotype2 "Clip"
- weapon.ammouse2 0
- weapon.ammogive2 50
- +weapon.ammo_optional
- states
- {
- Ready:
- CHGG A 1 A_WeaponReady
- goto Ready
- Select:
- CHGG A 1 A_Raise
- loop
- Deselect:
- CHGG A 0 A_TakeInventory("WeaponLowered", 999)
- CHGG A 1 A_Lower
- loop
- Fire:
- CHGG A 0 A_JumpIfNoAmmo("AltFire")
- CHGG A 8
- CHGG B 8
- CHGG A 4
- CHGG B 4
- CHGG A 2
- CHGG B 2
- CHGG A 0 A_GunFlash
- CHGG A 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
- CHGG B 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
- CHGG A 2 A_ReFire
- CHGG B 2
- CHGG A 4
- CHGG B 4
- CHGG A 8
- CHGG B 8
- goto Ready
- Hold:
- CHGG A 0 A_JumpIfNoAmmo(5)
- CHGG A 0 A_GunFlash
- CHGG A 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
- CHGG B 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
- CHGG A 2 A_ReFire
- CHGG B 2
- CHGG A 4
- CHGG B 4
- CHGG A 8
- CHGG B 8
- goto Ready
- AltFire:
- CHGG A 0 A_JumpIfInventory("Clip", 24, 1)
- goto Ready
- CHGG A 0 A_JumpIfInventory("ChaingunChain", 0, "ReloadDone")
- CHGG A 0 A_JumpIfInventory("WeaponLowered", 1, 4)
- CHGG AAA 1 A_Lower
- CHGG A 0 A_GiveInventory("WeaponLowered", 1)
- goto Spin
- Spin:
- CHGG A 4 A_PlaySound("spider/walk")
- CHGG B 4 A_Lower
- goto Reload
- CHGG B 4 A_Raise
- CHGG A 4
- CHGG BAB 8
- goto ReloadDone
- Reload:
- CHGG A 0 A_JumpIfInventory("ChaingunChain", 0, 1)
- goto Spin+2
- CHGG A 0 A_JumpIfInventory("Clip", 1, 1)
- goto ReloadDone
- CHGG B 0 A_TakeInventory("Clip", 1)
- CHGG A 0 A_GiveInventory("ChaingunChain", 1)
- goto Reload
- ReloadDone:
- CHGG A 0 A_TakeInventory("WeaponLowered", 1)
- CHGG AAA 1 A_Raise
- goto Ready
- Flash:
- CHGF A 2 Bright A_Light1
- //Goto LightDone
- CHGF B 3 Bright A_Light1
- Goto LightDone
- Spawn:
- MGUN A -1
- Stop
- }
- }
- actor ChaingunChain : Ammo
- {
- inventory.amount 1
- inventory.maxamount 50
- ammo.backpackamount 0
- ammo.backpackmaxamount 50
- +inventory.ignoreskill
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement