DASniperIC Posted January 6 ACTOR Rifle : DoomWeapon { Weapon.SlotNumber 4 Weapon.SelectionOrder 1000 Weapon.AmmoGive 30 Weapon.AmmoUse 1 Weapon.AmmoType "Clip" Obituary "%o was shot down by %k's assault rifle." Inventory.PickupMessage "You got the rifle!" Tag "Assault Rifle" AttackSound "brutaldoom/rifle" States { Ready: RIFG A 1 A_WeaponReady Deselect: RIFG A 1 A_Lower Select: RIFG A 1 A_Raise Fire: RIFG A 1 RIFF A 0 A_GunFlash RIFF A 0 A_Quake(0.4, 3, 0, 400) RIFF A 1 A_FireBullets(5.6, 5.6, 1, 5) RIFF B 1 RIFF C 2 RIFF A 0 A_Refire Goto Ready Flash: RIFF A 1 A_Light1 Goto LightDone Spawn: RIFL A -1 Stop } } I don't like how when I equip it ingame and it automatically fires a shot then twitches rapidly until I shoot. How do I fix my weapon? 0 Share this post Link to post
0 Kan3 Posted January 6 You forgot all of the "looping" in every state that requires it (Ready, Select, Deselect) Just add "Loop" at the bottom and you're ready to go 1 Share this post Link to post
ACTOR Rifle : DoomWeapon
{
Weapon.SlotNumber 4
Weapon.SelectionOrder 1000
Weapon.AmmoGive 30
Weapon.AmmoUse 1
Weapon.AmmoType "Clip"
Obituary "%o was shot down by %k's assault rifle."
Inventory.PickupMessage "You got the rifle!"
Tag "Assault Rifle"
AttackSound "brutaldoom/rifle"
States
{
Ready:
RIFG A 1 A_WeaponReady
Deselect:
RIFG A 1 A_Lower
Select:
RIFG A 1 A_Raise
Fire:
RIFG A 1
RIFF A 0 A_GunFlash
RIFF A 0 A_Quake(0.4, 3, 0, 400)
RIFF A 1 A_FireBullets(5.6, 5.6, 1, 5)
RIFF B 1
RIFF C 2
RIFF A 0 A_Refire
Goto Ready
Flash:
RIFF A 1 A_Light1
Goto LightDone
Spawn:
RIFL A -1
Stop
}
}
I don't like how when I equip it ingame and it automatically fires a shot then twitches rapidly until I shoot. How do I fix my weapon?
Share this post
Link to post