Page 1 of 1

Scorerank & gametime with DP sbar

Posted: Wed May 13, 2015 12:27 pm
by Cobalt
Ok I like these 2 sbar settings (sbar_scorerank and sbar_gametime) for the DP sbar for my mod. Trouble is, Im using the custom hud, and there is a conflict if If I shut the DP bar off, I wont be able to see these 2 settings, and if I keep it on, the custom hud seems not drawn at all.

I spoke with PrimalLove about this a while ago and I forgot what he said....but would it be possible to hand code these in csqc? I guess the timelimit cvar would have to get floated over to csqc?

Re: Scorerank & gametime with DP sbar

Posted: Wed May 13, 2015 4:05 pm
by gnounc

Code: Select all

		screen_size_x = cvar("vid_conwidth");
works just fine in csqc.
switch vid_conwidth with any cvar.

I havent seen what you're talking about. but its most certainly doable in csqc.

Re: Scorerank & gametime with DP sbar

Posted: Wed May 13, 2015 9:15 pm
by Cobalt
Here is a screenshot of in with the normal Quake hud:


Image

Far to the Hud's left, the 5 3 and the big zero in the center are when sbar_gametime is > 0. The time indicator right below it is the gametime > 0 cvar.

gnounc wrote:

Code: Select all

		screen_size_x = cvar("vid_conwidth");
works just fine in csqc.
switch vid_conwidth with any cvar.

I havent seen what you're talking about. but its most certainly doable in csqc.