X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=protocol.h;h=170db5b9ecb5e5158da187a7635731c721af7dcb;hb=7c656ac03a03a5fa910f9cad3c4735ed62f7ab69;hp=7fde83121d12b2e6badc6b78a7ed2ffcacec456a;hpb=19dc59c888b9bd06b45d619d5f4861c984730f2d;p=xonotic%2Fdarkplaces.git diff --git a/protocol.h b/protocol.h index 7fde8312..170db5b9 100644 --- a/protocol.h +++ b/protocol.h @@ -371,6 +371,40 @@ void Protocol_Names(char *buffer, size_t buffersize); #define RENDER_CUSTOMIZEDMODELLIGHT 4096 #define RENDER_DYNAMICMODELLIGHT 8388608 // origin dependent model light +typedef struct usercmd_s +{ + vec3_t viewangles; + +// intended velocities + float forwardmove; + float sidemove; + float upmove; + + vec3_t cursor_screen; + vec3_t cursor_start; + vec3_t cursor_end; + vec3_t cursor_impact; + vec3_t cursor_normal; + vec_t cursor_fraction; + int cursor_entitynumber; + + double time; // time the move is executed for (cl_movement: clienttime, non-cl_movement: receivetime) + double receivetime; // time the move was received at + double clienttime; // time to which server state the move corresponds to + int msec; // for predicted moves + int buttons; + int impulse; + unsigned int sequence; + qbool applied; // if false we're still accumulating a move + qbool predicted; // if true the sequence should be sent as 0 + + // derived properties + double frametime; + qbool canjump; + qbool jump; + qbool crouch; +} usercmd_t; + #define MAX_FRAMEGROUPBLENDS 4 typedef struct framegroupblend_s {