Forum

Tracebox?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Tracebox?

Postby Downsider » Fri Nov 06, 2009 10:19 pm

Wondering about this.. Does anybody know how to use it, and which engines support? I've been pulling up some very obscure information about it that says it's present in even vanilla Quake, but only accessible in QC to few, such as DarkPlaces?

I don't understand, and how would one "enable" it engineside, per say?
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby Spike » Sat Nov 07, 2009 12:41 am

look at PF_Traceline.
it calls SV_Move with two vec3_origin arguments. Those arguments should be mins and maxs for tracebox.
Making a proper tracebox function requires duplicating traceline and passing through two extra vector arguments.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Downsider » Sat Nov 07, 2009 5:12 am

Spike wrote:look at PF_Traceline.
it calls SV_Move with two vec3_origin arguments. Those arguments should be mins and maxs for tracebox.
Making a proper tracebox function requires duplicating traceline and passing through two extra vector arguments.


Fabulous. Seems easy enough.

Does adding an additional QC function to said engine require tweaks to FrikaQCC, or is that exactly the point of DPExtentions?

Sorry, but information on this seems horribly sparse..

EDIT: Got it working. This whole builtins system is fabulous. I didn't know you could add additional QC commands to communicate with the engine without having to modify the compiler itself! Great news for me. Now I can make some nice shit that I've been trying to do..
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest