Forum

Engine Feature Request! Print Anywhere

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Engine Feature Request! Print Anywhere

Postby Error » Fri Aug 14, 2009 11:16 am

I'd like a centerprint-ish function that allows you to specify where on the screen to print it to given client.

Preferably in Darkplaces :)

if this exists already, please forgive me
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA

Postby mh » Fri Aug 14, 2009 1:48 pm

Do you mean one that can be called from QC or one that's just available in the engine?

QC should be easy enough, it's just a new builtin with 2 G_INTs and 1 G_STRING (or a PF_VarString), then call into something similar to the regular centerprint. Standard server-side QC though would also need a protocol change. Again, easy enough to do.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Downsider » Fri Aug 14, 2009 3:58 pm

Speaking of, if you want to add new QC functions that communicate with the engine, do any modifications have to be made to the compiler?
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby Spike » Fri Aug 14, 2009 7:12 pm

csqc! then you can animate/blink/scroll/etc your text.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Error » Sat Aug 15, 2009 5:10 am

yes, in QC... just not CSQC
User avatar
Error
InsideQC Staff
 
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA

Postby Spike » Sat Aug 15, 2009 9:41 am

darkplaces supports csqc... so what's the problem? :/
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest