+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Some sort of trap with an automatically exploding timebomb after 10 seconds?

  1. #1
    Wire Noob mynameaborat's Avatar
    Join Date
    Mar 2008
    Posts
    21

    Default Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Hey can somebody teach me how to make a timebomb with a ranger to start the countdown instead of a button? and when it gets to 0 it stops and resets itself to ten? That would be awesome because I have no idea how to do that.
    Basically I would put it into a n00b trap- like you know- the one made by Wheeze - [ame=http://www.youtube.com/watch?v=cHjYWrwkQAk]YouTube - GMod Wire Tutorial #3 - Noob Trap - By Wheeze[/ame]
    so I would trap people in the n00b trap and a timebomb would start counting down as soon as they got in.

    I just can't figure out how to make timebombs work with rangers instead of buttons.

  2. #2
    Wire Amateur NnyAskC's Avatar
    Join Date
    Mar 2008
    Posts
    69

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Quote Originally Posted by mynameaborat View Post
    Hey can somebody teach me how to make a timebomb with a ranger to start the countdown instead of a button? and when it gets to 0 it stops and resets itself to ten? That would be awesome because I have no idea how to do that.
    Basically I would put it into a n00b trap- like you know- the one made by Wheeze - YouTube - GMod Wire Tutorial #3 - Noob Trap - By Wheeze
    so I would trap people in the n00b trap and a timebomb would start counting down as soon as they got in.

    I just can't figure out how to make timebombs work with rangers instead of buttons.


    Use a delay chip. It's under time.

  3. #3
    Wire Noob mynameaborat's Avatar
    Join Date
    Mar 2008
    Posts
    21

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Quote Originally Posted by NnyAskC View Post
    Use a delay chip. It's under time.
    Explain please?

  4. #4
    Wire Noob ildreancipher's Avatar
    Join Date
    Apr 2008
    Posts
    13

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Ok so you put a ranger in the n00b trap and find out the range to the other side, then wire the ranger to a less than comparison gate with the ranger comparing to a constant value of whatever the ranger would be without someone in the trap.

    So say the trap was 100.5 units wide, the constant value needs to be rounded down to something smaller than that (like 100). Then when someone steps into the trap, the ranger is less than the constant value. You wire the comparison chip to wherever the button would have been wired in the tutorial.

    I think -orb-'s timed explosive tutorial might also be helpful to watch.

  5. #5
    Wire Sofaking -=Fox=-'s Avatar
    Join Date
    Feb 2007
    Location
    Somewhere in my Mind...
    Posts
    1,846
    Blog Entries
    7

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    A basic noob trap can be made pretty easily with the E-gate, as a demo, I'll make one :lol:

    To use copy this to notepad, save it, then it goes into your Garry's Mod folder -> Data -> Expression Gate

    N@Noob Trap
    I@Ranger
    O@Explode
    #Let's create a timing function set to pulse at 1 second
    interval(1000)
    #Keep track of your timer, by having it increment a value.
    #Also have it wait for input from a Ranger.
    clk() & Ranger > 0 -> A += 1;
    #Reset the timer when it hits 4 seconds (so it counts 3 full seconds).
    A == 4 -> A = 0;
    #Give a value to compare the timer to so that it counts down.
    #Subtract the incrementing value against the constant value.
    B = 3 - A
    #Set Explode to default to 0 then, Set teh Bomb
    Explode = 0, B == 0 -> Explode = 1;

    Wire the wired explosive to Explode and the Ranger input to a Ranger set to find distance. That should do it (untested). So when the ranger has something in front of it, the timer will count down in about 3 seconds then trigger the explosive.

    Let me know how it works, I can't test it at the moment :lol:
    http://tiny.cc/OMFGWTFBBQ

    Best People On Wiremod!

    Black Phoenix, Azrael, Jat Goodwin, Magos Mechanicus, ITSBTH, Fizyk, g33v3s,tuusita, InfectiousFight, ief015

    Pointless things that are pointless, are pointlessly pointless, therefore pointlessness is pointless.
    So pointlessly pointing out the pointlessness of this pointless signature is utterly pointless.
    My IQ is 123

  6. #6
    Wire Sofaking IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,640

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    ZOMG, one more post fox.
    "It's my favourite country song. And I hate it."

  7. #7
    Wire Noob mynameaborat's Avatar
    Join Date
    Mar 2008
    Posts
    21

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Quote Originally Posted by ildreancipher View Post
    Ok so you put a ranger in the n00b trap and find out the range to the other side, then wire the ranger to a less than comparison gate with the ranger comparing to a constant value of whatever the ranger would be without someone in the trap.

    So say the trap was 100.5 units wide, the constant value needs to be rounded down to something smaller than that (like 100). Then when someone steps into the trap, the ranger is less than the constant value. You wire the comparison chip to wherever the button would have been wired in the tutorial.

    I think -orb-'s timed explosive tutorial might also be helpful to watch.
    Yes I know I have watched it and made a 10 second timebomb but this is different. I already made the n00b trap itself I'll get a screenie :

    Oh by the way i fixed the color on the wall with the hydraulic so you guys could see it. I added a ranger in the n00b trap so if you walk too far in you will explode. Also next to the LOL NOOB text screen are two "Deactivate" buttons- one sets off a turret and the other sets off an explosive. I was thinking about taking out the explosive ranger thing and just having one "Deactivate" button which would start the timer but I kinda wanted one that would start immediately the second you went in the n00b trap.
    Edit: There are two invisible explosives inside at the corners of the walls so you won't know there are explosives when you walk in
    Quote Originally Posted by -=Fox=- View Post
    A basic noob trap can be made pretty easily with the E-gate, as a demo, I'll make one :lol:

    To use copy this to notepad, save it, then it goes into your Garry's Mod folder -> Data -> Expression Gate

    N@Noob Trap
    I@Ranger
    O@Explode
    #Let's create a timing function set to pulse at 1 second
    interval(1000)
    #Keep track of your timer, by having it increment a value.
    #Also have it wait for input from a Ranger.
    clk() & Ranger > 0 -> A += 1;
    #Reset the timer when it hits 4 seconds (so it counts 3 full seconds).
    A == 4 -> A = 0;
    #Give a value to compare the timer to so that it counts down.
    #Subtract the incrementing value against the constant value.
    B = 3 - A
    #Set Explode to default to 0 then, Set teh Bomb
    Explode = 0, B == 0 -> Explode = 1;

    Wire the wired explosive to Explode and the Ranger input to a Ranger set to find distance. That should do it (untested). So when the ranger has something in front of it, the timer will count down in about 3 seconds then trigger the explosive.

    Let me know how it works, I can't test it at the moment :lol:
    Holy christ you are good at wire. I'm going to try that out and see if it works.
    By the way, does this replace / override all the other chips that Orb had in his tutorial? So it would be a lot simpler?
    Last edited by mynameaborat; 04-09-2008 at 02:48 PM.

  8. #8
    Wire Sofaking -=Fox=-'s Avatar
    Join Date
    Feb 2007
    Location
    Somewhere in my Mind...
    Posts
    1,846
    Blog Entries
    7

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Meh, I'm pretty good, get someone like BP or Erkle and some of other people here and they're on a class of their own.

    I'm not sure what feature set that Orb has in his tutorial, If I knew what features/capabilities it had I can probably duplicate them.
    http://tiny.cc/OMFGWTFBBQ

    Best People On Wiremod!

    Black Phoenix, Azrael, Jat Goodwin, Magos Mechanicus, ITSBTH, Fizyk, g33v3s,tuusita, InfectiousFight, ief015

    Pointless things that are pointless, are pointlessly pointless, therefore pointlessness is pointless.
    So pointlessly pointing out the pointlessness of this pointless signature is utterly pointless.
    My IQ is 123

  9. #9
    Wire Noob mynameaborat's Avatar
    Join Date
    Mar 2008
    Posts
    21

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Ok so I tried it out and I couldn't get it to validate or spawn- it kept saying "Unexpected character (.) at line 4" - so then I deleted the period at the end of line 4
    Then it gave me some other crap that wouldnt go away even if I did what it said.

  10. #10
    Wire Sofaking -=Fox=-'s Avatar
    Join Date
    Feb 2007
    Location
    Somewhere in my Mind...
    Posts
    1,846
    Blog Entries
    7

    Default Re: Some sort of trap with an automatically exploding timebomb after 10 seconds?

    Ok, try and remove the commented lines in the text file (stuff that has a # in front)
    That's probably the issue.
    http://tiny.cc/OMFGWTFBBQ

    Best People On Wiremod!

    Black Phoenix, Azrael, Jat Goodwin, Magos Mechanicus, ITSBTH, Fizyk, g33v3s,tuusita, InfectiousFight, ief015

    Pointless things that are pointless, are pointlessly pointless, therefore pointlessness is pointless.
    So pointlessly pointing out the pointlessness of this pointless signature is utterly pointless.
    My IQ is 123

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Update SVN automatically?
    By mjmr89 in forum Wiremod General Chat
    Replies: 3
    Last Post: 01-25-2009, 07:10 PM
  2. Wire Explosives Exploding when duped
    By ICDWILL117 in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 08-18-2008, 03:53 AM
  3. RAM search & sort.
    By Beer in forum Ideas & Suggestions
    Replies: 6
    Last Post: 11-23-2007, 11:43 AM
  4. Execute A command every 15 seconds
    By Fyxe in forum Finished contraptions
    Replies: 5
    Last Post: 10-02-2007, 10:18 PM
  5. Help With A Timer, Seconds, Minutes, Hours
    By joshikins in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 05-08-2007, 08:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots