Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name FireRate Limiter V1.0
- @inputs Fire
- @outputs FireOut Canfire
- @persist Delay
- @trigger
- interval(100)
- if(first())
- {
- Delay=0.005*1000
- Canfire=1
- }
- FireOut=0
- if(Fire&Canfire)
- {
- FireOut=1
- Canfire=0
- timer("Reload",Delay)
- }
- elseif(clk("Reload"))
- {
- Canfire=1
- stoptimer("Reload")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement