X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcsqcmodellib%2Fcl_player.qh;h=e427e6cf363f855510aaaa56b65b7df23384801a;hp=1cb42f2a5ce8383b6345546a038766ebcee7a6e8;hb=86c9dc7c3696c329496b06375c1e79fb407401ce;hpb=e14bb786305e05541496fb5b28c090e0ff1b5783 diff --git a/qcsrc/csqcmodellib/cl_player.qh b/qcsrc/csqcmodellib/cl_player.qh index 1cb42f2a5c..e427e6cf36 100644 --- a/qcsrc/csqcmodellib/cl_player.qh +++ b/qcsrc/csqcmodellib/cl_player.qh @@ -19,20 +19,25 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. */ +#ifndef CL_PLAYER_H +#define CL_PLAYER_H entity csqcplayer; float csqcplayer_status; -#define CSQCPLAYERSTATUS_UNPREDICTED 0 -#define CSQCPLAYERSTATUS_FROMSERVER 1 -#define CSQCPLAYERSTATUS_PREDICTED 2 +const int CSQCPLAYERSTATUS_UNPREDICTED = 0; +const int CSQCPLAYERSTATUS_FROMSERVER = 1; +const int CSQCPLAYERSTATUS_PREDICTED = 2; // only ever READ these! -.float pmove_flags; -#define PMF_JUMP_HELD 1 -#define PMF_DUCKED 4 -#define PMF_ONGROUND 8 +.int pmove_flags; +const int PMF_JUMP_HELD = 1; +//const int PMF_DUCKED = 4; +//const int PMF_ONGROUND = 8; + +const int FL_DUCKED = 524288; void CSQCPlayer_SetCamera(); float CSQCPlayer_PreUpdate(); float CSQCPlayer_PostUpdate(); float CSQCPlayer_IsLocalPlayer(); +#endif