]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/movetypes.qh
Rough port of SV_PushMove to CSQC
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / movetypes.qh
1 #ifndef MOVETYPES_H
2 #define MOVETYPES_H
3
4 .float move_ltime;
5 .void(void) move_think;
6 .float move_nextthink;
7 .void(void) move_blocked;
8
9 .float move_movetype;
10 .float move_time;
11 .vector move_origin;
12 .vector move_angles;
13 .vector move_velocity;
14 .vector move_avelocity;
15 .int move_flags;
16 .int move_watertype;
17 .int move_waterlevel;
18 .void(void) move_touch;
19 .void(float, float) contentstransition;
20 .float move_bounce_factor;
21 .float move_bounce_stopspeed;
22 .float move_nomonsters; // -1 for MOVE_NORMAL, otherwise a MOVE_ constant
23
24 // should match sv_gameplayfix_fixedcheckwatertransition
25 float autocvar_cl_gameplayfix_fixedcheckwatertransition = 1;
26
27 void Movetype_Physics_MatchTicrate(float tr, bool sloppy);
28 void Movetype_Physics_MatchServer(bool sloppy);
29 void Movetype_Physics_NoMatchServer();
30
31 float _Movetype_UnstickEntity();
32
33 const int MAX_CLIP_PLANES = 5;
34
35 const int MOVETYPE_NONE                         = 0;
36 const int MOVETYPE_ANGLENOCLIP      = 1;
37 const int MOVETYPE_ANGLECLIP        = 2;
38 const int MOVETYPE_WALK                         = 3;
39 const int MOVETYPE_STEP                         = 4;
40 const int MOVETYPE_FLY                          = 5;
41 const int MOVETYPE_TOSS                         = 6;
42 const int MOVETYPE_PUSH                         = 7;
43 const int MOVETYPE_NOCLIP                   = 8;
44 const int MOVETYPE_FLYMISSILE       = 9;
45 const int MOVETYPE_BOUNCE                   = 10;
46 const int MOVETYPE_BOUNCEMISSILE        = 11;   // Like bounce but doesn't lose speed on bouncing
47 const int MOVETYPE_FOLLOW           = 12;
48 const int MOVETYPE_FAKEPUSH         = 13;
49 const int MOVETYPE_FLY_WORLDONLY    = 33;
50
51 const int FL_ITEM                   = 256;
52 const int FL_ONGROUND                           = 512;
53
54 const float MOVEFLAG_Q2AIRACCELERATE            = 1;
55 const float MOVEFLAG_NOGRAVITYONGROUND          = 2;
56 const float MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = 4;
57 #define moveflags (getstati(STAT_MOVEFLAGS))
58 #endif