]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/client/csqcmodel_hooks.qh
Purge autocvars.qh from the client-side codebase, cvars are defined in the headers...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / csqcmodel_hooks.qh
1 #pragma once
2
3 bool autocvar_cl_respawn_ghosts_keepcolors;
4 int autocvar_cl_playerdetailreduction;
5 int autocvar_cl_modeldetailreduction;
6 float autocvar_cl_loddistance1 = 768;
7 float autocvar_cl_loddistance2 = 2048;
8 bool autocvar_cl_forceplayermodels;
9 bool autocvar_cl_forceplayercolors;
10 string autocvar_cl_forcemyplayermodel;
11 int autocvar_cl_forcemyplayerskin;
12 int autocvar_cl_forcemyplayercolors;
13 int autocvar__cl_color;
14 int autocvar__cl_playerskin;
15 string autocvar__cl_playermodel;
16 float autocvar_cl_deathglow;
17 float autocvar_cl_deathglow_min = 0.5;
18 float autocvar_cl_jetpack_attenuation = 2;
19
20 // FEATURE: EF_NODRAW workalike
21 const int EF_BRIGHTFIELD       = BIT(0);
22 const int EF_BRIGHTLIGHT       = BIT(2);
23 const int EF_DIMLIGHT          = BIT(3);
24 const int EF_DOUBLESIDED       = BIT(15);
25 const int EF_NOSELFSHADOW      = BIT(16);
26 const int EF_DYNAMICMODELLIGHT = BIT(17);
27 const int EF_RESTARTANIM_BIT   = BIT(20);
28 const int EF_TELEPORT_BIT      = BIT(21);
29
30 const int MF_ROCKET  =  BIT(0);  // leave a trail
31 const int MF_GRENADE =  BIT(1);  // leave a trail
32 const int MF_GIB     =  BIT(2);  // leave a trail
33 const int MF_ROTATE  =  BIT(3);  // rotate (bonus items)
34 const int MF_TRACER  =  BIT(4);  // green split trail
35 const int MF_ZOMGIB  =  BIT(5);  // small blood trail
36 const int MF_TRACER2 =  BIT(6);  // orange split trail
37 const int MF_TRACER3 =  BIT(7);  // purple trail
38
39 .int csqcmodel_effects;
40 .int csqcmodel_modelflags;
41 .int csqcmodel_traileffect;
42
43 .bool csqcmodel_isdead; // used by shownames and miscfunctions (entcs_IsDead) to know when a player is dead
44
45 .int isplayermodel;
46
47 void CSQCModel_Effects_Apply(entity this);
48
49 void CSQCModel_Hook_PreDraw(entity this, bool isplayer);