Bockwurst wrote:Could you explain the machine gun timer? Why do you need 4 counters?
Assuming the machine gun used the previous stats (which lined up perfectly with the ticks), knowing how many bullets you shot would be annoying. So the purpose is to know exactly how long you've been shooting for the machine gun (since shooting takes a long time) without using a lot of logic
Unfortunately, the time between shots is not 75ms like previously thought, but 74.25 ms, which does not line up correctly at all.
1. Is used to count the time until shooting
5. Is used as a tag. Could be replaced with a tag if necessary. Is used to know if the bot is shooting or reloading
2. Counter for number of bullets
3. Decimal point on the shooting. This is to make sure the bullet counting is 100% accurate, and there are no desyncs
M4L4 wrote:i've done the same in order to flee at the very last moment before opponent shoots you, but i'm not sure what are you trying to accomplish here, are you trying to calculate an entire shooting cycle?