I am currently working on a model of an AN-94 assault rifle. In real life, this gun features a delayed blowback system so that it can fire off a 2-round burst (at 1800rpm) before the user feels any recoil, allowing for excellent accuracy. It can't maintain this rate of fire, though, and when in fully automatic mode, it switches to 600rpm. I know I can code the recoil to work reallistically, but I don't know if I can set different rates of fire for different firing modes. Is there any way I could write this in the cpp file?