Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
DASniperIC

Why is my weapon twitching

Question

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

1 answer to this question

Recommended Posts

  • 0

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×