Wiremod Forums  

Go Back   Wiremod Forums > Wiremod Skills > Contraptions & Saves

Contraptions & Saves Post your contraptions and saves here.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-26-2008   #1 (permalink)
Wire Noob
Points: 620, Level: 12 Points: 620, Level: 12 Points: 620, Level: 12
Activity: 0% Activity: 0% Activity: 0%
 
Rad Hazard's Avatar
 
Join Date: Nov 2008
Location: player.GetByID(1):GetPos()
Posts: 8
Rad Hazard is on a distinguished road
Post Wired Defusable C4 (E2)

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
}
Questions, Comments, Suggestions appriciated.
Attached Files
File Type: zip wiredc4.zip (10.4 KB, 23 views)
__________________
"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.
Rad Hazard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-26-2008   #2 (permalink)
Wire Junkie

Points: 4,664, Level: 43 Points: 4,664, Level: 43 Points: 4,664, Level: 43
Activity: 27% Activity: 27% Activity: 27%
 
Beer's Avatar
 
Join Date: Jul 2007
Location: Dallas, Texas
Posts: 829
Beer will become famous soon enough
Default Re: Wired Defusable C4 (E2)

Cool

You should add a HUD indicator to it that sticks a progress bar on your screen showing diffusal progress.
Beer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-02-2008   #3 (permalink)
Wire Noob
Points: 620, Level: 12 Points: 620, Level: 12 Points: 620, Level: 12
Activity: 0% Activity: 0% Activity: 0%
 
Rad Hazard's Avatar
 
Join Date: Nov 2008
Location: player.GetByID(1):GetPos()
Posts: 8
Rad Hazard is on a distinguished road
Default Re: Wired Defusable C4 (E2)

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.
Rad Hazard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 08:20 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Ad Management plugin by RedTyger
adjunct
adjunct
adjunct
adjunct
gilt
gilt
gilt
gilt
gallery
gallery
gallery
gallery