]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
added qw compatible "rcon" support (allows a client who knows the server's rcon_passw...
[xonotic/darkplaces.git] / client.h
index 7efd028cdee8170c2673f064fb143824574839d5..f3a8bace573087c81de451b97cadb5d94da86bbd 100644 (file)
--- a/client.h
+++ b/client.h
@@ -355,6 +355,7 @@ typedef struct usercmd_s
        int buttons;
        int impulse;
        int sequence;
+       qboolean applied; // if false we're still accumulating a move
 } usercmd_t;
 
 typedef struct lightstyle_s
@@ -534,6 +535,9 @@ typedef struct client_state_s
        // client movement simulation
        // these fields are only updated by CL_ClientMovement (called by CL_SendMove after parsing each network packet)
        qboolean movement;
+       // this is set true by svc_time parsing and causes a new movement to be
+       // queued for prediction purposes
+       qboolean movement_needupdate;
        // indicates the queue has been updated and should be replayed
        qboolean movement_replay;
        // simulated data (this is valid even if cl.movement is false)
@@ -655,6 +659,9 @@ extern cvar_t cl_pmodel;
 extern cvar_t cl_playermodel;
 extern cvar_t cl_playerskin;
 
+extern cvar_t rcon_password;
+extern cvar_t rcon_address;
+
 extern cvar_t cl_upspeed;
 extern cvar_t cl_forwardspeed;
 extern cvar_t cl_backspeed;
@@ -776,7 +783,6 @@ extern      kbutton_t       in_strafe;
 extern         kbutton_t       in_speed;
 
 void CL_InitInput (void);
-void CL_SendCmd (void);
 void CL_SendMove (void);
 
 void CL_ValidateState(entity_state_t *s);