]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/defs.qh
Minor cleanup of client/defs.qh, move replicated cvars to a common location
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / defs.qh
1 #pragma once
2
3 // Additional OPTIONAL Fields and Globals
4 //float         intermission;
5 // float                coop;
6 // float                deathmatch;
7
8 float           dmg_take;
9 // float                dmg_save;
10 // vector               dmg_origin;
11
12 // Darkplaces Render Modifications
13 #if 0
14 .float alpha;
15 .vector colormod;
16 .float scale;
17 #endif
18
19 // Basic variables
20 .int enttype; // entity type sent from server
21 .int sv_entnum; // entity number sent from server
22 .int team;
23 .int team_size;
24
25 float vid_conheight;
26 int binddb;
27
28 // Spectating
29 // -1 - observing
30 // 0 - playing
31 // >0 - id of spectated player
32 float spectatee_status;
33 float spectatee_status_changed_time;
34
35 // short mapname
36 string shortmapname;
37
38 // database for misc stuff
39 int tempdb;
40 int ClientProgsDB;
41 vector hook_shotorigin[4];
42 vector lightning_shotorigin[4];
43
44
45 #ifdef BLURTEST
46 float blurtest_time0, blurtest_time1, blurtest_radius, blurtest_power;
47 #endif
48
49 float serverprevtime, serverdeltatime;
50
51 float ticrate;
52
53 .float damageforcescale;
54 const float MIN_DAMAGEEXTRARADIUS = 2;
55 const float MAX_DAMAGEEXTRARADIUS = 16;
56 .float damageextraradius;
57 .void(entity this, float thisdmg, int hittype, vector org, vector thisforce) event_damage;
58
59 // weapons
60 .bool silent;
61
62 int w_deathtype;
63 float w_issilent, w_random;
64 vector w_org, w_backoff;
65
66 float bgmtime;
67
68 float vortex_charge_movingavg;
69
70 int serverflags;
71
72 float uid2name_dialog;
73
74 float intermission_time;
75
76 .bool csqcmodel_isdead; // used by shownames and miscfunctions (entcs_IsDead) to know when a player is dead
77
78 #define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)