That would mean that there is enough time to play the gun cocking animation, which takes at least half a second. Are you 100% sure? Try removing the first parameter check in register_event.
__________________
No longer around. Thanks your support, everyone! As always: