Posts: 33
Threads: 7
Joined: Mar 2012
Reputation:
3
How can I check the current score or time left in a match?
I would like to hook a map voting system that activates only when it is near the end of the match. I would also like to switch to the map only after the match has completed and players are on the scoreboard.
Is there something I can do through "self notify" or game["state"]?
Halp
Posts: 33
Threads: 7
Joined: Mar 2012
Reputation:
3
Perhaps it's something along the lines of level waittill "game_ended"? Is there a waittill statement I can use?
Posts: 33
Threads: 7
Joined: Mar 2012
Reputation:
3
So nobody wants to help the newbie huh? Okay.. I get it >.< Or is it that no one knows how to accomplish this?
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
05-26-2014, 23:46
(This post was last modified: 05-26-2014, 23:47 by DidUknowiPwn.)
if ( getTeamScore( string/team ) >= (var get the max score using getDvarInt, so something like score = getDvarInt( "scr_" + level.gametype + "_score_limit" ) )
Do not take life too seriously. You will never get out of it alive.
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
Could have easily just done level waittill("game_ended"); lol
Do not take life too seriously. You will never get out of it alive.
Posts: 33
Threads: 7
Joined: Mar 2012
Reputation:
3
Lol ! Oh well! I have another question for you anyway =)
How could I account for different client resolutions/ aspect ratio's when creating hud elements like text and shaders? I know I can define a static- like position by using "setpoint" or "align x/ align y" to place it top right/ bottom left etc. but obviously when defining specific X and Y coords, the elements will be in different positions depending on the resolution of the window. Is it possible?
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
alignX/y and horz/vertAlign....
Do not take life too seriously. You will never get out of it alive.