Code: Select all
Actor CrowdMowerRifle: VeteranWeapon
{
Decal "BulletChip"
Inventory.PickupMessage "You got the Crowd Mower Assault Rifle."
Obituary "%o was mowed %k's Assault Rifle."
Weapon.AmmoType1 "MowerClip"
Weapon.AmmoType2 "RifleAmmo"
Weapon.AmmoGive2 125
Weapon.SlotNumber 5
Weapon.Kickback 225
States
{
Spawn:
PRFL A -1
Loop
Ready:
VRFL A 0 A_JumpIfInventory("MowerClip",0,2)
VRFL A 0 A_JumpIfInventory("RifleAmmo",1,2)
VRFL A 1 A_WeaponReady
Loop
VRFL A 1 A_WeaponReady(WRF_ALLOWRELOAD)
Loop
Deselect:
VRFL A 1 A_Lower
loop
Select:
VRFL A 1 A_Raise
VRFL A 1 A_PlaySound("CrowdMower/raise",CHAN_WEAPON)
VRFL A 1 A_Raise
Wait
Fire:
VRFL A 0 A_JumpIfInventory("MowerClip",1,1)
Goto Reload
VRFL A 0 A_GunFlash
VRFL A 0 A_AlertMonsters
VRFL B 0 A_PlaySound("CrowdMower/fire",CHAN_WEAPON)
VRFL B 3 Bright A_FireBullets(3,4,4,6,"GunsPuff",1)
VRFL A 0 A_JumpIfInventory("MowerClip",1,1)
Goto Ready
VRFL C 0 Offset(0,40)
VRFL C 0 A_PlaySound("CrowdMower/fire",CHAN_WEAPON)
VRFL B 3 Bright A_FireBullets(3,4,4,6,"GunsPuff",1)
VRFL A 0 A_JumpIfInventory("MowerClip",1,1)
Goto Ready
VRFL A 0 Offset(0,30)
VRFL B 0 A_PlaySound("CrowdMower/fire",CHAN_WEAPON)
VRFL B 3 Bright A_FireBullets(3,4,4,6,"GunsPuff",1)
VRFL A 1 Offset(0,40)
Goto Ready
Altfire:
VSHT A 0 A_JumpIfInventory("MowerClip",5,1)
Goto Reload
VRFL A 0 A_GunFlash
VRFL A 0 A_AlertMonsters
VRFL B 0 A_PlaySound("CrowdMower/fire",CHAN_WEAPON)
VRFL B 3 Bright A_FireBullets(10,12,4,6,"GunsPuff",0)
VRFL B 0 A_Takeinventory("MowerClip",1)
VRFL A 0 A_JumpIfInventory("MowerClip",1,1)
Goto Ready
VRFL C 0 Offset(0,40)
VRFL C 0 A_PlaySound("CrowdMower/fire",CHAN_WEAPON)
VRFL C 3 Bright A_FireBullets(10,12,4,6,"GunsPuff",0)
VRFL C 0 A_Takeinventory("MowerClip",1)
VRFL A 0 A_JumpIfInventory("MowerClip",1,1)
Goto Ready
VRFL B 0 Offset(0,30)
VRFL C 0 A_PlaySound("CrowdMower/fire",CHAN_WEAPON)
VRFL C 3 Bright A_FireBullets(10,12,4,6,"GunsPuff",0)
VRFL B 0 A_Takeinventory("MowerClip",1)
VRFL A 0 A_JumpIfInventory("MowerClip",1,1)
Goto Ready
VRFL B 0 Offset(0,40)
//A fifth bullet taken for four shots?
VRFL C 0 A_Takeinventory("MowerClip",1)
VRFL A 0 A_JumpIfInventory("MowerClip",1,1)
Goto Ready
VRFL B 0 Offset(0,30)
VRFL C 0 A_PlaySound("CrowdMower/fire",CHAN_WEAPON)
VRFL C 3 Bright A_FireBullets(10,12,4,6,"GunsPuff",0)
VRFL B 0 A_Takeinventory("MowerClip",1)
VRFL B 0 Offset(0,40)
VRFL A 1 A_Refire
Goto Ready
Reload:
VRFL A 1
VRFL A 1 Offset(0,38)
VRFL A 1 Offset(0,40)
VRFL D 2
VRFL E 4 A_PlaySound("CrowdMower/magout",CHAN_WEAPON)
VRFL F 4
VRFL G 1 Offset(0,36)
VRFL GGGH 1 Offset(0,34)
VRFL H 1 Offset(0,36)
VRFL H 2 Offset(0,38)
VRFL I 1 A_PlaySound("CrowdMower/magin",CHAN_WEAPON)
VRFL I 2 Offset(0,36)
VRFL I 2 Offset(0,34)
VRFL I 2 Offset(0,32)
ReloadLoop:
TNT1 A 0 A_TakeInventory("RifleAmmo",1)
TNT1 A 0 A_GiveInventory("MowerClip")
TNT1 A 0 A_Jumpifinventory("MowerClip",0,"ReloadFinish")
TNT1 A 0 A_Jumpifinventory("RifleAmmo",1,"ReloadLoop" )
ReloadFinish:
VRFL J 2
VRFL A 1
VRFL A 1 A_PlaySound("CrowdMower/ready",CHAN_WEAPON)
Goto Ready
}
}