In Marathon the assault rifle has a recoil effect I'd like to emulate in Doom. The video quality sucks so I'll explain what you're looking at: https://youtu.be/XJ8E6muH6_4
The assault rifle fires at a rate of about 2 tics, and every couple of rounds the rifle sprite's offset is lowered, and then fires a couple of rounds before the offset goes back to the original offset. This gives the weapon a neat "uncontrollable recoil" effect. Using Weasel's half tic trick I figured out that if I make ASRF BA (the rifle's standard and muzzle flash sprites) 4 tics and then in the FireHalfTic state I make ASRF BA 3 tics and set the offset to (0,28) it will give me this visual effect but makes the rifle fire waaaay too slow, at about 3.5 tics if I remember correctly.
So my question is can anyone think of a trick to both give this desired effect but also make the fire rate higher?
Sorry if any of this is difficult to follow. I'd have pasted my decorate code but I'm not at my computer at the moment.
How to get a certain recoil effect
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)