Scorerank & gametime with DP sbar

Discuss CSQC related programming.
Post Reply
Cobalt
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA
Contact:

Scorerank & gametime with DP sbar

Post 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?
gnounc
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: Scorerank & gametime with DP sbar

Post 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.
Cobalt
Posts: 445
Joined: Wed Jun 10, 2009 2:58 am
Location: New England, USA
Contact:

Re: Scorerank & gametime with DP sbar

Post 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.
Post Reply