]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
fix some bugs in the last commit (perspective was off)
[xonotic/darkplaces.git] / client.h
index 0b16a62d0a8089b5b99bf1b778e4c0231b0e46ee..d00873f3a7d23f8e0ce210519d6389a8edd9101d 100644 (file)
--- a/client.h
+++ b/client.h
@@ -819,6 +819,11 @@ typedef struct client_state_s
        int viewentity;
        // the real player entity (normally same as viewentity,
        // different than viewentity if mod uses chasecam or other tricks)
+       int realplayerentity;
+       // this is updated to match cl.viewentity whenever it is in the clients
+       // range, basically this is used in preference to cl.realplayerentity for
+       // most purposes because when spectating another player it should show
+       // their information rather than yours
        int playerentity;
        // max players that can be in this game
        int maxclients;
@@ -924,6 +929,7 @@ typedef struct client_state_s
        int downloadsound_current;
        int loadsound_total;
        qboolean downloadcsqc;
+       qboolean loadcsqc;
        qboolean loadbegun;
        qboolean loadfinished;
 
@@ -942,7 +948,7 @@ typedef struct client_state_s
        int qw_teamplay;
 
        // unused: indicates whether the player is spectating
-       // use cl.scores[cl.playerentity].qw_spectator instead
+       // use cl.scores[cl.playerentity-1].qw_spectator instead
        //qboolean qw_spectator;
 
        // movement parameters for client prediction
@@ -1402,6 +1408,8 @@ typedef struct r_view_s
        mplane_t frustum[5];
        float frustum_x, frustum_y;
        vec3_t frustumcorner[4];
+       // if turned off it renders an ortho view
+       int useperspective;
 
        // screen area to render in
        int x;