Underground Timer

Uploaded August 26, 2011 by ChickenMobile

Description

This is an instance of a robust underground timer. This timer can count up or down from 1 - 99 seconds. underground_timer_counter.vmf The $UnEvent_Relay parameter is the event that is fired when the timer has stopped counting. This event should be triggered in one of the clock instances. This instance is used for both buttons, however the buttons will determine whether it counts up, or down. underground_timer_but_countdown.vmf $time_units is the number of seconds of the unit column $time_tens is the value of the tens column (This is the only way I could figure this out for the countdown timer without adding some sort of script.) The $Event_Relay parameter is the event that is fired when the timer has started counting. This event should be untriggered in the clock instance. Please note: I have added entities that will work out the number of seconds the counter needs to count down from $time_units and $time_tens, hence the large amount of logic_cases underground_timer_but_countup.vmf The $Event_Relay parameter in the 'Timer instance' is the event that is fired when the timer has started counting. This event should be untriggered in the clock instance. The $time parameter should be set to how many seconds it should count up to Known Bugs: Putting both 0 and 0 for the left and right number icons will cause a rip in space, however this shouldn't happen as you wouldn't want a 0 - timed counter How to place in your map: Create a func_instance and change the vmf path to "underground_timer_counter.vmf" Name this instance Create another func_instance and then change the path to one of the button paths (either underground_timer_but_countup.vmf or underground_timer_but_countdown.vmf depending if you want it to count up or down) Set the button's fixup name value to the same of the counter instance If you are using the countup instance, put a number value for the replace value $time to how many seconds you want the counter to count up to If you are using the countdown instance, put the individual values with each a 1 digit number which will represent your double digit number. e.g. "$time_tens 1" and "$time_units 5" will make the timer count down from 15 Using the $Event_Relay replace value in your button, make it point towards a logic_relay which will trigger the event when the counter starts. This must include the name of the prefix PLUS the name of your relay otherwise it will not work. e.g. clock_1-TRIGGERNAME (This is the name of your relay outside the instance) Using the $UnEvent_Relay replace value in your counter instance, make it point towards a logic_relay which will un-trigger the event when the counter stops. Same as the button's relay this MUST INCLUDE the prefix fixupname as well as the name of your relay. e.g. clock_1-UNTRIGGERNAME (This is the name of your relay outside the instance) Enjoy the use of an underground timer... WOOOT If you are having trouble... Please do not hesitate to ask for any help either through a PM to myself or by posting a comment inside the instance thread.


Details