Forum

Scorerank & gametime with DP sbar

Discuss CSQC related programming.

Moderator: InsideQC Admins

Scorerank & gametime with DP sbar

Postby Cobalt » Wed May 13, 2015 12:27 pm

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

Re: Scorerank & gametime with DP sbar

Postby gnounc » Wed May 13, 2015 4:05 pm

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

Re: Scorerank & gametime with DP sbar

Postby Cobalt » Wed May 13, 2015 9:15 pm

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


Return to CSQC Programming

Who is online

Users browsing this forum: No registered users and 2 guests