]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/movetypes.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / movetypes.qh
1 #ifndef MOVETYPES_H
2 #define MOVETYPES_H
3
4 #if defined(CSQC)
5     #include "../common/util-pre.qh"
6     #include "sys-pre.qh"
7     #include "../dpdefs/csprogsdefs.qc"
8     #include "sys-post.qh"
9     #include "Defs.qc"
10     #include "../dpdefs/keycodes.qc"
11     #include "../common/constants.qh"
12     #include "../common/stats.qh"
13     #include "../warpzonelib/anglestransform.qh"
14     #include "../warpzonelib/mathlib.qh"
15     #include "../warpzonelib/common.qh"
16     #include "../warpzonelib/client.qh"
17     #include "../common/playerstats.qh"
18     #include "../common/teams.qh"
19     #include "../common/util.qh"
20     #include "../common/nades.qh"
21     #include "../common/buffs.qh"
22     #include "../common/test.qh"
23     #include "../common/counting.qh"
24     #include "../common/weapons/weapons.qh"
25     #include "../common/mapinfo.qh"
26     #include "../common/command/markup.qh"
27     #include "../common/command/rpn.qh"
28     #include "../common/command/generic.qh"
29     #include "../common/command/shared_defs.qh"
30     #include "../common/urllib.qh"
31     #include "../common/animdecide.qh"
32     #include "command/cl_cmd.qh"
33     #include "../common/monsters/monsters.qh"
34     #include "autocvars.qh"
35     #include "../common/notifications.qh"
36     #include "../common/deathtypes.qh"
37     #include "damage.qh"
38     #include "../csqcmodellib/interpolate.qh"
39     #include "teamradar.qh"
40     #include "hud.qh"
41     #include "scoreboard.qh"
42     #include "waypointsprites.qh"
43 #elif defined(MENUQC)
44 #elif defined(SVQC)
45 #endif
46
47 .float move_movetype;
48 .float move_time;
49 .vector move_origin;
50 .vector move_angles;
51 .vector move_velocity;
52 .vector move_avelocity;
53 .int move_flags;
54 .float move_watertype;
55 .float move_waterlevel;
56 .void(void) move_touch;
57 .void(float, float) contentstransition;
58 .float move_bounce_factor;
59 .float move_bounce_stopspeed;
60 .float move_nomonsters; // -1 for MOVE_NORMAL, otherwise a MOVE_ constant
61
62 // should match sv_gameplayfix_fixedcheckwatertransition
63 float autocvar_cl_gameplayfix_fixedcheckwatertransition = 1;
64
65 void Movetype_Physics_MatchTicrate(float tr, bool sloppy);
66 void Movetype_Physics_MatchServer(bool sloppy);
67 void Movetype_Physics_NoMatchServer();
68
69 const int MOVETYPE_NONE                         = 0;
70 const int MOVETYPE_ANGLENOCLIP      = 1;
71 const int MOVETYPE_ANGLECLIP        = 2;
72 const int MOVETYPE_WALK                         = 3;
73 const int MOVETYPE_STEP                         = 4;
74 const int MOVETYPE_FLY                          = 5;
75 const int MOVETYPE_TOSS                         = 6;
76 const int MOVETYPE_PUSH                         = 7;
77 const int MOVETYPE_NOCLIP                   = 8;
78 const int MOVETYPE_FLYMISSILE       = 9;
79 const int MOVETYPE_BOUNCE                   = 10;
80 const int MOVETYPE_BOUNCEMISSILE        = 11;   // Like bounce but doesn't lose speed on bouncing
81 const int MOVETYPE_FOLLOW           = 12;
82 const int MOVETYPE_FAKEPUSH         = 13;
83 const int MOVETYPE_FLY_WORLDONLY    = 33;
84
85 const int FL_ITEM                   = 256;
86 const int FL_ONGROUND                           = 512;
87 #endif