[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - CSQC minimalistic hud

CSQC minimalistic hud

Discuss anything not covered by any of the other categories.

Moderator: InsideQC Admins

CSQC minimalistic hud

Postby gnounc » Thu Feb 02, 2012 4:54 am

http://dl.dropbox.com/u/1776436/hud.zip

Image

Health and armor are on the crosshair and show briefly when hit

weapon icons show previous, current and next weapon briefly while switching weapons

ammo type and ammo count show constantly

and runes/keys show only when you hold the +showscores button.

quad damage, pentagram of protection and bio suit all show up in the middle of your cursor
and scale to 0 as their timer runs out

the icons are all placeholders, ill make another release in a while with updated art.
feel free to icon replacements here

http://www.youtube.com/watch?v=EvTq0PPeG2o

the version in the video is about a week old, there has been some improvements.
ill make a new video when i have nonplaceholder assets.
my
gnounc's
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: CSQC minimalistic hud

Postby ceriux » Thu Feb 02, 2012 5:16 am

i like works on dp right?
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: CSQC minimalistic hud

Postby Nahuel » Thu Feb 02, 2012 7:14 am

:) looks nice, i made some csqc HUD´s for dp, and smith update the code
hi, I am nahuel, I love quake and qc.
User avatar
Nahuel
 
Posts: 495
Joined: Wed Jan 12, 2011 8:42 pm
Location: mar del plata

Re: CSQC minimalistic hud

Postby gnounc » Thu Feb 02, 2012 7:45 am

thanks nahuel.
also thanks for the link, looking into it now.

and yes it works on dp. its got a bug in the armor ive yet to sort out, im certain its dead simple but i havent found it yet.
yellow armor doesnt show on the crosshair.

sizing for dp and fte arent consistant, i think its down to me using conwidth when spike told me not to.

i sized everything in fte, so things are a bit big in dp, thats just a matter of resizing whatever images you use
to replace the ones provided.
my
gnounc's
User avatar
gnounc
 
Posts: 424
Joined: Mon Apr 06, 2009 6:26 am

Re: CSQC minimalistic hud

Postby ceriux » Thu Feb 02, 2012 4:40 pm

you could just scale them with the csqc.
User avatar
ceriux
 
Posts: 2230
Joined: Sat Sep 06, 2008 3:30 pm
Location: Indiana, USA

Re: CSQC minimalistic hud

Postby Spike » Thu Feb 02, 2012 6:04 pm

Querying an image for its size is non portable, not just between engines but also between image replacement packages (an engine might have a few different behaviours, it might retrieve the size of the original lmp instead of the replacement, it might use the scale features of a jpeg, or it might return the exact pixel size of the replacement - fte does the first and never the second, I don't know what dp's behaviour is).
also certain shaders may not even have an image and thus cannot have any predetermined size.
So the getimagesize builtin should generally not be used.
getimagesize will generally return the expected size of the image in virtual-screen-space which mirrors expected engine internals, which is why vid_conwidth resizes everything as it changes the virtual screen width but not the results of getimagesize.
vid_conwidth/height can be used, but its inefficient to query a cvar instead of just using the arguments to your render function... fte will emulate any incompatibilities with that cvar, but like I say, you shouldn't depend upon that behaviour, especially if someone runs your hud in a (possiby software rendered) engine with no vid_conwidth cvar. What I'm trying to say is that if you have the same effective value set in both engines, you should get the same result.
.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests