Hey guys, it's been a while since I've programmed anything for Quake, and I've decided to implement a new firing mode for semi-automatic weapons.
For those of you who play paintball, you should be familiar with the Ramp PSP firing mode, and for those of you who aren't, I'll explain it.
Basically, your weapon is semi-automatic, that is, until you pull the trigger three or more times in one second. Once three shots have been fired in under a second, the fourth shot and all others after it will be "ramped". From that point on, as long as you continue to pull the trigger, the gun will fire at fifteen rounds per second. But, if you let off the trigger for one second the gun will reset, and you will have to fire three shots in under a second in order for the gun to begin ramping again.
I've already implemented semi-automatic firing thanks to the tutorial posted here by CheapAlert, but I've run into a bit of a roadblock when it comes to detecting if three shots have been fired in a period of time less than or equal to one second. It seems like it should be relatively easy, but I haven't programmed anything in quite a while, and I would appreciate it if someone could help me out with this.