Script help


(Pegger) #1

I am looking for a script for a time based objective, ie: holding an objective the longest wins the map. Only parameter I would implement is the first team to hold it for 15 minutes (in a thirty minute game) wins by default and map ends.

What to do and who can help me with this?

Thanks.


(fidel castro) #2

isnt there a king of the hill (ET-koth) map released ?

perhabs this script can help you…

greez
fidel


(sock) #3

Look at the script for the map radar, where the player can run around with the radar parts as an objective. Simple start a “func_timer” when the correct team hits the objective. Use the func_timer to keep firing a thread (every 15s or so) via a (target_script_trigger entity) and count the times in the script. If the opp team gets the objective then reset the script timer and start again when the correct team get the objective. The only problem with this is that the opp team would simply return the objective not run around with it. Also holding an item for 15mins would be very hard, possibly frustrating to play.

Sock
:moo: ing