Here's something else I made in my spare time.
My step-brother gave me the idea when he wanted me to make him a wired bomb that exploded after a certain time. I played around a bit more after I finished and came up with this:
There are three types: (I only showed one in the video, others are the same except for the additions.)
Normal: Normal C4 I showed in the video. Can be defused after activated. Can be turned on with "arm" button, but can't be turned on again.
Sticky: Same as normal, but has a grabber on the bottom. Grabber can be activated/deactivated by "arm" button.
Indicator: Same as normal. Has 3 hud indicators that display time left, defusal time left, and whether or not it's defused.
Info:
Detonation time on all three is 60s
Time to defuse on all three is 10s
Defusal time is automatically 1/6th of the detonation time.
The beep and light go faster and faster as detonation time approaches
Here's my E2 code. (Yes, I know that it could definately be optimised)
Questions, Comments, Suggestions appriciated.Code:@name Defusable Timer @inputs Time On Defuse @outputs TimeLeft Boom DefuseLeft Defused Beep @persist A B On2 interval(100) if (On) { On2 = 1 } if (Time) { if (On2 & !Defused) { if (!A) { A = Time } else { A = A - 0.1 TimeLeft = A } if (B <= 0) { B = 9 * (TimeLeft / Time) Beep = 1 } else { B = B - 1 Beep = 0 } } else { TimeLeft = Time A = Time } } else { TimeLeft = 0 A = 0 } if (Defuse) { DefuseLeft = DefuseLeft - (60 / Time) if (DefuseLeft <= 0) { Defused = 1 } else { Defused = 0 } } else { DefuseLeft = 100 } if (A <= 0 & On2 & !Defused) { Boom = 1 } else { Boom = 0 }


LinkBack URL
About LinkBacks




Reply With Quote



Bookmarks