-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcustom.qc
More file actions
189 lines (143 loc) · 3.89 KB
/
custom.qc
File metadata and controls
189 lines (143 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/*
client/defs/custom.qc
Various globals that are used in this FTEQW example are defined
here, they are not used by the engine itself.
Copyright (C) 2021-2024 NZ:P Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to:
Free Software Foundation, Inc.
59 Temple Place - Suite 330
Boston, MA 02111-1307, USA
*/
#pragma warning disable Q302
float g_width, g_height; /* Globals for screen width and height */
float weapon;
float tracercounter;
.float rate;
.vector targetpos;
entity cl_viewent;
entity cl_viewent2;
float matchmake_enabled;
float double_tap_version;
float useprint_type;
float useprint_weapon;
float useprint_cost;
float useprint_time;
float bettyprompt_time;
float hud_maxammo_endtime;
float hud_maxammo_starttime;
float nameprint_time;
float HUD_Change_time;
float hitmark_time;
float hitmark_ignore_time;
float hitmark_type;
float recoil_kick_time;
float crosshair_pulse_grenade;
float zoom_2_time;
float broadcast_time;
float broadcast_type;
float broadcast_num;
string character_name;
var struct revive_s {
float draw;
float timer;
float state;
} revive_icons[8]; // MAX_CLIENTS
float weaponframetime;
float weapon2frametime;
float oldweaponframe;
float oldweapon2frame;
float curweaponframe;
float curweapon2frame;
float interpolating;
float interpolating2;
float rounds;
float perks;
float rounds_change;
float player_count;
float score_show;
#define MAX_ACHIEVEMENTS 42
var struct achievementlist_t
{
string img;
float unlocked;
string name;
string description;
float progress;
} achievements[MAX_ACHIEVEMENTS];
float active_achievement;
float current_achievement_page;
float achievement_pages;
float sniper_hold_breath;
float K_LEFTDOWN, K_RIGHTDOWN, K_BACKDOWN, K_FORWARDDOWN;
#define P_JUG 1
#define P_DOUBLE 2
#define P_SPEED 4
#define P_REVIVE 8
#define P_FLOP 16
#define P_STAMIN 32
vector TEXT_LIGHTBLUE = [0, 0.46, 0.70];
vector TEXT_ORANGE = [0.92, 0.74, 0];
vector TEXT_GREEN = [0, 0.90, 0.13];
vector TEXT_RED = [1, 0, 0];
float screenflash_type;
float screenflash_color;
float screenflash_duration;
float screenflash_worktime;
float screenflash_starttime;
.float stance;
vector camang; // used for punches
//world text
string chaptertitle;
string location;
string date;
string person;
//custom hud
string huddir;
int platform_is_web;
// Stopwatch server time counter
float stopwatch_sec;
int stopwatch_min;
int stopwatch_hr;
// Same dealio, but for rounds
float stopwatch_round_sec;
int stopwatch_round_min;
int stopwatch_round_hr;
int stopwatch_round_isactive;
float stopwatch_round_starttime;
//
// GamePad Input Variables
//
float GPButtonHeldBeginTime[24]; // Tracks time button down event is called, to track holding down for different actions.
float last_input_deviceid; // The Device ID of the input hardware that last called CSQC_InputEvent, to target it directly.
string build_datetime;
vector gun_kick;
float hide_viewmodel;
// csqc player prediction by eukara
vector playerOrigin;
vector playerOriginOld;
vector playerVelocity;
//
// List of Zombie limb meshes for custom skinning
//
string zombie_skins[] =
{
"models/ai/zb%.mdl",
"models/ai/zbc%.mdl",
"models/ai/zcfull.mdl",
"models/ai/zhc^.mdl",
"models/ai/zalc(.mdl",
"models/ai/zarc(.mdl",
"models/ai/zfull.mdl",
"models/ai/zh^.mdl",
"models/ai/zal(.mdl",
"models/ai/zar(.mdl"
};