]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/csqcmodellib/cl_player.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / csqcmodellib / cl_player.qh
1 /*
2  * Copyright (c) 2011 Rudolf Polzer
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to
6  * deal in the Software without restriction, including without limitation the
7  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8  * sell copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20  * IN THE SOFTWARE.
21  */
22 #ifndef CL_PLAYER_H
23 #define CL_PLAYER_H
24
25 #if defined(CSQC)
26     #include "../common/util-pre.qh"
27     #include "../client/sys-pre.qh"
28     #include "../dpdefs/csprogsdefs.qc"
29     #include "../client/sys-post.qh"
30     #include "../client/Defs.qc"
31     #include "../dpdefs/keycodes.qc"
32     #include "../common/constants.qh"
33     #include "../common/stats.qh"
34     #include "../warpzonelib/anglestransform.qh"
35     #include "../warpzonelib/mathlib.qh"
36     #include "../warpzonelib/common.qh"
37     #include "../warpzonelib/client.qh"
38     #include "../common/playerstats.qh"
39     #include "../common/teams.qh"
40     #include "../common/util.qh"
41     #include "../common/nades.qh"
42     #include "../common/buffs.qh"
43     #include "../common/test.qh"
44     #include "../common/counting.qh"
45     #include "../common/weapons/weapons.qh"
46     #include "../common/mapinfo.qh"
47     #include "../common/command/markup.qh"
48     #include "../common/command/rpn.qh"
49     #include "../common/command/generic.qh"
50     #include "../common/command/shared_defs.qh"
51     #include "../common/urllib.qh"
52     #include "../common/animdecide.qh"
53     #include "../client/command/cl_cmd.qh"
54     #include "../common/monsters/monsters.qh"
55     #include "../client/autocvars.qh"
56     #include "../common/notifications.qh"
57     #include "../common/deathtypes.qh"
58     #include "../client/damage.qh"
59     #include "interpolate.qh"
60     #include "../client/teamradar.qh"
61     #include "../client/hud.qh"
62     #include "../client/scoreboard.qh"
63     #include "../client/waypointsprites.qh"
64     #include "../client/movetypes.qh"
65     #include "../client/prandom.qh"
66     #include "../client/bgmscript.qh"
67     #include "../client/noise.qh"
68     #include "../client/tturrets.qh"
69     #include "../server/tturrets/include/turrets_early.qh"
70     #include "../client/main.qh"
71     #include "../client/vehicles/vehicles.qh"
72     #include "../common/csqcmodel_settings.qh"
73     #include "common.qh"
74     #include "cl_model.qh"
75 #elif defined(MENUQC)
76 #elif defined(SVQC)
77 #endif
78
79 entity csqcplayer;
80 float csqcplayer_status;
81 const int CSQCPLAYERSTATUS_UNPREDICTED = 0;
82 const int CSQCPLAYERSTATUS_FROMSERVER = 1;
83 const int CSQCPLAYERSTATUS_PREDICTED = 2;
84
85 // only ever READ these!
86 .int pmove_flags;
87 const int PMF_JUMP_HELD = 1;
88 //const int PMF_DUCKED = 4;
89 //const int PMF_ONGROUND = 8;
90
91 void CSQCPlayer_SetCamera();
92 float CSQCPlayer_PreUpdate();
93 float CSQCPlayer_PostUpdate();
94 float CSQCPlayer_IsLocalPlayer();
95 #endif