Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Magnum Express

Creating true Semi-automatic and Burst-fire weapons

Recommended Posts

I have been trying to create weapons that are semi-auto (the fire button must be pressed for each shot) or burst-fire (only shoot three or so rounds, and the fire button must be pressed again for another burst). I have run into a few problems:
- Weapons will continue to fire when I hold the fire button down.
- Weapons have no bullet spread, but instead each shot lands exactly where I'm aiming at.

For burst-fire, I tried the following on a custom M16:

Fire:
M16G A 0 A_ZoomFactor(0.99)
M16F A 1 bright A_FireBullets (3.6, 3.6, 1, 4, "BulletPuff")
M16G A 0 A_ZoomFactor(1.0)
M16F B 1 bright A_FireBullets (3.6, 3.6, 1, 4, "BulletPuff")
M16G A 0 A_ZoomFactor(0.99)
M16F A 1 bright A_FireBullets (3.6, 3.6, 1, 4, "BulletPuff")
M16G A 0 A_ZoomFactor(1.0)

I know the problem is in the last frame of the animation, but I just don't know what to do. Please help if you can.

Share this post


Link to post

Use Weapon.NOAUTOFIRE

...and as for the bullet spread, IIRC the first bullet fired in the fire state normally ignores the spread and is always perfectly accurate. Setting numbullets to a negative value removes this effect.

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
Sign in to follow this  
×