]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/defs.qh
Merge branch 'master' into terencehill/bot_waypoints
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / defs.qh
1 #pragma once
2
3 // Additional OPTIONAL Fields and Globals
4 //float         intermission;
5 float           scoreboard_showscores;
6 float           scoreboard_showaccuracy;
7 .string         message;
8 .int            renderflags;
9 // float                coop;
10 // float                deathmatch;
11
12 float           dmg_take;
13 // float                dmg_save;
14 // vector               dmg_origin;
15
16 // Darkplaces Render Modifications
17 #if 0
18 .float alpha;
19 .float renderflags;
20 .vector colormod;
21 .float scale;
22 #endif
23
24 // Basic variables
25 .int enttype; // entity type sent from server
26 .int sv_entnum; // entity number sent from server
27 .int team;
28 .int team_size;
29
30 float vid_conheight;
31 int binddb;
32
33 // QUALIFYING
34 float race_checkpoint;
35 float race_time;
36 float race_laptime;
37 float race_checkpointtime;
38 float race_previousbesttime;
39 float race_mypreviousbesttime;
40 string race_previousbestname;
41 float race_nextcheckpoint;
42 float race_nextbesttime;
43 float race_mybesttime;
44 string race_nextbestname;
45 float race_penaltyaccumulator; // qualifying: total penalty time in tenths
46 float race_penaltyeventtime; // time when the player got the penalty
47 float race_penaltytime; // duration of penalty time, in tenths
48 string race_penaltyreason; // reason for penalty
49 float race_server_record; // server record
50 float race_speedaward;
51 string race_speedaward_holder;
52 string race_speedaward_unit;
53 float race_speedaward_alltimebest;
54 string race_speedaward_alltimebest_holder;
55 string race_speedaward_alltimebest_unit;
56
57 // RACE
58 float race_mycheckpoint;
59 float race_mycheckpointtime;
60 float race_mycheckpointdelta;
61 float race_mycheckpointlapsdelta;
62 string race_mycheckpointenemy;
63 float race_othercheckpoint;
64 float race_othercheckpointtime;
65 float race_othercheckpointdelta;
66 float race_othercheckpointlapsdelta;
67 string race_othercheckpointenemy;
68 float scoreboard_showscores_force;
69 float race_status;
70 string race_status_name;
71 float race_myrank;
72
73 // Nexball
74 float nb_pb_period;
75
76 // Spectating
77 // -1 - observing
78 // 0 - playing
79 // >0 - id of spectated player
80 float spectatee_status;
81
82 // short mapname
83 string shortmapname;
84
85 // database for misc stuff
86 int tempdb;
87 int ClientProgsDB;
88 vector hook_shotorigin[4];
89 vector lightning_shotorigin[4];
90
91
92 #ifdef BLURTEST
93 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
94 #endif
95
96 float serverprevtime, serverdeltatime;
97
98 float ticrate;
99
100 .float damageforcescale;
101 const float MIN_DAMAGEEXTRARADIUS = 2;
102 const float MAX_DAMAGEEXTRARADIUS = 16;
103 .float damageextraradius;
104 .void(entity this, float thisdmg, int hittype, vector org, vector thisforce) event_damage;
105
106 // weapons
107 .bool silent;
108
109 int w_deathtype;
110 float w_issilent, w_random;
111 vector w_org, w_backoff;
112
113 float bgmtime;
114
115 string weaponorder_byimpulse;
116 string weaponorder_bypriority;
117
118 float vortex_charge_movingavg;
119
120 int serverflags;
121
122 float uid2name_dialog;
123
124 float intermission_time;
125
126 .bool csqcmodel_isdead; // used by shownames and miscfunctions (entcs_IsDead) to know when a player is dead
127
128 #define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)