X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=client.h;h=d592f9d4dc27f45ea55c84e7c07923510656b591;hb=81d669d017e7e58c358335859c1ec357255a62af;hp=c70640e5e18ff0595613bb6fd8774d7d25429e29;hpb=f4ca2e493b0fbe2e91293c727ac119c371feffda;p=xonotic%2Fdarkplaces.git diff --git a/client.h b/client.h index c70640e5..d592f9d4 100644 --- a/client.h +++ b/client.h @@ -76,7 +76,7 @@ beam_t; typedef struct rtlight_s { - // shadow volumes are done entirely in model space, so there are no matrices for dealing with them... they just use the origin + // shadow volumes are done entirely in model space, so there are no matrices for dealing with them... they just use the origin // note that the world to light matrices are inversely scaled (divided) by lightradius @@ -110,7 +110,7 @@ typedef struct rtlight_s vec_t specularscale; // LIGHTFLAG_* flags int flags; - + // generated properties // used only for shadow volumes vec3_t shadoworigin; @@ -213,7 +213,7 @@ typedef struct dlight_s // (worldlight only) struct dlight_s *next; // embedded rtlight struct for renderer - // (renderer only) + // (renderer only) rtlight_t rtlight; } dlight_t; @@ -494,20 +494,17 @@ typedef struct // the view is temporarily offset, and an angle reset commands at the start // of each level and after teleporting. - // during demo playback viewangles is lerped between these - vec3_t mviewangles[2]; - // either client controlled, or lerped from demo mviewangles - vec3_t viewangles; - + // mviewangles is read from demo + // viewangles is either client controlled or lerped from mviewangles + vec3_t mviewangles[2], viewangles; + // update by server, used by qc to do weapon recoil + vec3_t mpunchangle[2], punchangle; + // update by server, can be used by mods to kick view around + vec3_t mpunchvector[2], punchvector; // update by server, used for lean+bob (0 is newest) - vec3_t mvelocity[2]; - // lerped between mvelocity[0] and [1] - vec3_t velocity; - - // temporary offset - vec3_t punchangle; - // LordHavoc: origin view kick - vec3_t punchvector; + vec3_t mvelocity[2], velocity; + // update by server, can be used by mods for zooming + vec_t mviewzoom[2], viewzoom; // pitch drifting vars float idealpitch; @@ -572,11 +569,6 @@ typedef struct // [cl.maxclients] scoreboard_t *scores; - // LordHavoc: sniping zoom, QC controlled - float viewzoom; - // for interpolation - float viewzoomold, viewzoomnew; - // protocol version of the server we're connected to int protocol; @@ -743,6 +735,7 @@ void CL_TimeDemo_f(void); // cl_parse.c // void CL_Parse_Init(void); +void CL_Parse_Shutdown(void); void CL_ParseServerMessage(void); void CL_Parse_DumpPacket(void); @@ -790,6 +783,7 @@ extern cvar_t cl_decals_fadetime; void CL_Particles_Clear(void); void CL_Particles_Init(void); +void CL_Particles_Shutdown(void); void CL_ParseParticleEffect (void); void CL_RunParticleEffect (vec3_t org, vec3_t dir, int color, int count);