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