From d30d52c8fa97a1eeec0ab07d4b0cb67cca5c1cdd Mon Sep 17 00:00:00 2001 From: Spoike Date: Fri, 7 Jan 2005 02:33:58 +0000 Subject: [PATCH] Q2 game code needs a very specific structure. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@739 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/protocol.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/engine/common/protocol.h b/engine/common/protocol.h index a5182e6a6..a5cdc92bc 100644 --- a/engine/common/protocol.h +++ b/engine/common/protocol.h @@ -709,6 +709,7 @@ typedef struct typedef struct usercmd_s { + //the first members of this structure MUST match the q2 version qbyte msec; qbyte buttons; short angles[3]; @@ -719,6 +720,16 @@ typedef struct usercmd_s int servertime; } usercmd_t; +typedef struct q2usercmd_s +{ + qbyte msec; + qbyte buttons; + short angles[3]; + short forwardmove, sidemove, upmove; + qbyte impulse; + qbyte lightlevel; +} q2usercmd_t; + typedef struct q1usercmd_s { qbyte msec;