This is an old script I've wrote back in 2004, but it was never submitted here.
The script simulates a timebomb that can be defused by cuting one of the three colored wires.
The lethal weapon (dunno which one it was)...way :-)
You can't know which wire's the right one. They are randomly defined in the bomb_init.sqs from the start.
Three things can happen when you cut a wire:
- The bomb explodes (duh)
- The timer stops and the bomb is defused
- The timer accelerates x2 (hehe)
Ok, you can guess which one is the right wire, but you can also kill a guard and steal his bombplan (similar to my codepad script)
This plan shows you that the green wire defuses the bomb, the blue wire accelerates the clock and the red wire blows you sky high.
Should be crystalclear. There are six possible situations and plans.
When you have found the bomb, three actions and the time left show up...
...but only when you are really close to it.
Usage
=====
- Copy the timebomb, sound and plans folder in your own missions folder.
- Do the same thing with the description.ext and init.sqs (or merge it with your own)
- Run the script in the init of the object that represents the timebomb. (could be anything)
like this :
[this] exec "timebomb\bomb_init.sqs"
When you want a planholder (can also be anything, a man or a desk for example), you 'll need to run the plancarrier script in the init of that object.
When the planholder is an object (a desk) use :
[this] exec "timebomb\plancarrier.sqs"
When the planholder is a man or a member of a group there is an optional parameter .
[this,true] exec "TIMEBOMB\plancarrier.sqs"
to assign that unit specific as planholder.
OR
[this,false] exec "TIMEBOMB\plancarrier.sqs"
to assign somebody randomly from that group
Randompositions.sqs and posscript.sqs It would be boring to find the bomb always on the same spot no?
Randompositions contains an array with all possible spots (positions), you can find those positons by running the posscript.sqs. Run the script on yourself (check the posscript mission to see how) , move around, find a good spot and click on the action. The position will be displayed in a hint. Write it down and add it to the _positions array in the randompositions script.
This takes some time, let me know if you know a faster way to do this.
Ok, that's all I think.
Check the init.sqs for more information. I will add a readme once I have my MS Word back
Enjoy, the script combined with a hostage situation can be tense.
Oops, i almost forgot to say that you'll need editorupgrade102 for the testmission.
Download
HERE ***link updated 25-03-2005 23:35***
- Fixed a non-critical bug in the counter script.