![]() |
| |||||||
| Contraptions & Saves Post your contraptions and saves here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) | ||||||||
| Wire Noob ![]()
Join Date: Nov 2008 Location: player.GetByID(1):GetPos()
Posts: 8
![]() | 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) 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
}
__________________ "In an all-out global thermonuclear war, nobody wins. Everybody dies" ~Unknown I like reading. If you are one of the few people that also like reading, copy and paste this into your sig.78% of all signature statistics are made up on the spot. Last edited by Rad Hazard; 11-26-2008 at 02:28 PM. | ||||||||
| | |
| | #3 (permalink) | ||||||||
| Wire Noob ![]()
Join Date: Nov 2008 Location: player.GetByID(1):GetPos()
Posts: 8
![]() | Actually, the indicater version already has that. I didn't show it in the video because sorce recorder wasn't playing nice and i got bunch of lua errors when I spawned it.
__________________ "In an all-out global thermonuclear war, nobody wins. Everybody dies" ~Unknown I like reading. If you are one of the few people that also like reading, copy and paste this into your sig.78% of all signature statistics are made up on the spot. | ||||||||
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Jetpack + Defusable Bomb | turck3 | Contraptions & Saves | 5 | 02-14-2008 04:57 PM |
| Wired Thrusters & Wired Wheels don't Attach | bremez | Help & Support | 1 | 07-25-2007 10:09 AM |
| Wired Nailgun and Wired Welder Sent. Also a few others. | wabash | Ideas & Suggestions | 7 | 03-23-2007 12:03 PM |
| Wired Wheel vs. Wired Hydraulic | Kodin | Ideas & Suggestions | 0 | 03-02-2007 06:32 PM |