First Person Shooter - Set up alternate fire

Hey,
I want two different fire rates for my weapon, i’ve already a reload system and a fast SMG-like shootfrequenz with my left mouse button. But now i want a shotgunburst if i press the right mouse button. Both firerates should make different damage.
SMG should be fast, but not that strong and the Burst should be strong, but not that fast. A simple balance.

I think it’s pretty easy but my blueprints skills are’nt the best.
Thanks :slight_smile:

it really depends on your setup / implementation. you could have the weapon firing script in the weps or on the character. that said i made a little script for the fire rate bit in the first person character (see below picture).

the below script shows making an automatic weapon so it will continue firing as long as you hold the fire key. the basic idea here is that we call a custom event (altFire), then the script does your firing script, then we have a delay before calling the event again. this delay is what controls the firerate. as you see in the picture i made it a variable name alt fire rate. the lower you set this variable the more shots will be fired in a given timespan. the variable is literally the time between shots.

now as for the damage portion that is a very implementation dependant part. you could put the damage on the projectile for instance, in which case you would just have a variable for damage on that. or if you were using line traces then you would have the damage variable wherever you are applying damage.

Alright, the first one works fine. Thanks. :slight_smile:

But I’ve the feeling that the alternate fire doesn’t work really well. Do you have any idea how I subtract instead of one bullet in the magazine five? I think this would be a good balance. Oh, and is it possible to put a pause between the shots? Alternate fire, five bullets subtracted and a pause for a second before you can fire again.

I struggle really hard with that.

post a screenshot of you blueprint so i can see how you have your ammo decrement set up. it should be a pretty easy fix of just changing the value of the decrement.

i dont really understand the other things your trying to say. are you asking how to make burst fire? are you attempting to fire 5 bullets at once. or are you attempting to fire 5 bullets with one delay between then then after the 5th have a longer delay/