]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/csqcmodellib/sv_model.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / csqcmodellib / sv_model.qh
1 #ifndef SV_MODEL_H
2 #define SV_MODEL_H
3 /*
4  * Copyright (c) 2011 Rudolf Polzer
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to
8  * deal in the Software without restriction, including without limitation the
9  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10  * sell copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22  * IN THE SOFTWARE.
23  */
24
25 #if defined(CSQC)
26 #elif defined(MENUQC)
27 #elif defined(SVQC)
28         #include "../common/util-pre.qh"
29         #include "../server/sys-pre.qh"
30         #include "../dpdefs/progsdefs.qc"
31         #include "../dpdefs/dpextensions.qc"
32         #include "../server/sys-post.qh"
33         #include "../warpzonelib/anglestransform.qh"
34         #include "../warpzonelib/mathlib.qh"
35         #include "../warpzonelib/common.qh"
36         #include "../warpzonelib/util_server.qh"
37         #include "../warpzonelib/server.qh"
38         #include "../common/constants.qh"
39         #include "../common/stats.qh"
40         #include "../common/teams.qh"
41         #include "../common/util.qh"
42         #include "../common/nades.qh"
43         #include "../common/buffs.qh"
44         #include "../common/test.qh"
45         #include "../common/counting.qh"
46         #include "../common/urllib.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/net_notice.qh"
52         #include "../common/animdecide.qh"
53         #include "../common/monsters/monsters.qh"
54         #include "../common/monsters/sv_monsters.qh"
55         #include "../common/monsters/spawn.qh"
56         #include "../common/weapons/config.qh"
57         #include "../common/weapons/weapons.qh"
58         #include "../server/weapons/accuracy.qh"
59         #include "../server/weapons/common.qh"
60         #include "../server/weapons/csqcprojectile.qh"
61         #include "../server/weapons/hitplot.qh"
62         #include "../server/weapons/selection.qh"
63         #include "../server/weapons/spawning.qh"
64         #include "../server/weapons/throwing.qh"
65         #include "../server/weapons/tracing.qh"
66         #include "../server/weapons/weaponstats.qh"
67         #include "../server/weapons/weaponsystem.qh"
68         #include "../server/t_items.qh"
69         #include "../server/autocvars.qh"
70         #include "../server/constants.qh"
71         #include "../server/defs.qh"
72         #include "../common/notifications.qh"
73         #include "../common/deathtypes.qh"
74         #include "../server/mutators/mutators_include.qh"
75         #include "../server/tturrets/include/turrets_early.qh"
76         #include "../server/vehicles/vehicles_def.qh"
77         #include "../server/campaign.qh"
78         #include "../common/campaign_common.qh"
79         #include "../common/mapinfo.qh"
80         #include "../server/command/common.qh"
81         #include "../server/command/banning.qh"
82         #include "../server/command/radarmap.qh"
83         #include "../server/command/vote.qh"
84         #include "../server/command/getreplies.qh"
85         #include "../server/command/cmd.qh"
86         #include "../server/command/sv_cmd.qh"
87         #include "../common/csqcmodel_settings.qh"
88         #include "common.qh"
89 #endif
90
91 // generic CSQC model code
92
93 void CSQCModel_CheckUpdate();
94 void CSQCModel_LinkEntity();
95 void CSQCModel_UnlinkEntity();
96
97 #define CSQCMODEL_IF(cond)
98 #define CSQCMODEL_ENDIF
99 #define CSQCMODEL_PROPERTY(flag,t,r,w,f) \
100         .t f; \
101         .t csqcmodel_##f;
102 #define CSQCMODEL_PROPERTY_SCALED(flag,t,r,w,f,s,mi,ma) CSQCMODEL_PROPERTY(flag,t,r,w,f)
103         ALLPROPERTIES
104 #undef CSQCMODEL_PROPERTY_SCALED
105 #undef CSQCMODEL_PROPERTY
106 #undef CSQCMODEL_ENDIF
107 #undef CSQCMODEL_IF
108 #endif