Forum

cs_project in csqc

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby daemon » Tue Jul 29, 2008 8:26 pm

you may also want to use this in CSQC_UpdateView()

Code: Select all
void Video_Init() =
{
   vid_size_x =   cvar("vid_conwidth");
   vid_size_y =   cvar("vid_conheight");
   vid_res_x =   cvar("vid_width");
   vid_res_y =   cvar("vid_height");
}
-daemon [ daemonforge.org ]
User avatar
daemon
 
Posts: 63
Joined: Wed Nov 07, 2007 11:10 pm

Postby LordHavoc » Thu Oct 02, 2008 11:28 am

I have fixed cs_project/unproject and setview VF_VIEWPORT (and variations of that) to use screen coordinates as FTEQW does, this affects any csqc using these features.

I also added the optional CSQC_UpdateView width/height parameters in EXT_CSQC_1 from FTEQW

I have not implemented the full EXT_CSQC_1 at this time, as it involves a few more significant pieces of code (for example ReadServerEntityState, which creates csqc entities mimicking all of the standard network entities known to the client, and calls delta_update or delta_remove csqc functions on each one to allow them to override effects and do other things with the standard entities).

I have not made a build with these changes yet.
LordHavoc
 
Posts: 322
Joined: Fri Nov 05, 2004 3:12 am
Location: western Oregon, USA

Postby Spike » Thu Oct 02, 2008 7:41 pm

Rather than go offtopic, I've created a seperate thread to semi-reply to the last half of LordHavoc's response.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Previous

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest