X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=protocol.h;h=047262d6a979604c1cefb5096f141674bdd8b2ab;hp=7fde83121d12b2e6badc6b78a7ed2ffcacec456a;hb=e3d73d3b315e86fc321b6ef02bb7dc14742d156a;hpb=19dc59c888b9bd06b45d619d5f4861c984730f2d diff --git a/protocol.h b/protocol.h index 7fde8312..047262d6 100644 --- a/protocol.h +++ b/protocol.h @@ -371,6 +371,39 @@ 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 (non-cl_movement is executed at receivetime) + float receivetime; // time the move was received at (used for ping) + unsigned char 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 {