3 float g_domination, g_ctf, g_tdm, g_keyhunt, g_onslaught, g_assault, g_arena, g_lms;
4 float g_cloaked, g_footsteps, g_grappling_hook, g_instagib, g_laserguided_missile, g_midair, g_minstagib, g_nixnex, g_nixnex_with_laser, g_norecoil, g_rocketarena, g_vampire;
13 float bots_would_leave;
14 float lms_lowest_lives;
16 float() LMS_NewPlayerLives;
18 void(entity player, float f) UpdateFrags;
21 float team1_score, team2_score, team3_score, team4_score;
25 #define NEWLINES "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
29 .void(entity inflictor, entity attacker, float damage, float deathtype, vector hitloc, vector force) event_damage;
49 .float pain_finished; //Added by Supajoe
50 .float pain_frame; //"
51 .float statdraintime; // record the one-second intervals between draining health and armour when they're over 100
52 .float crouch; // Crouching or not?
54 .float strength_finished;
55 //.float speed_finished;
56 .float invincible_finished;
57 //.float slowmo_finished;
59 .vector finaldest, finalangle; //plat.qc stuff
62 .float t_length, t_width;
64 .vector destvec; // for rain
65 .float cnt; // for rain
75 // player animation state
76 .float animstate_startframe;
77 .float animstate_numframes;
78 .float animstate_framerate;
79 .float animstate_starttime;
80 .float animstate_endtime;
81 .float animstate_override;
82 .float animstate_looping;
84 // player animation data for this model
85 // each vector is as follows:
89 .vector anim_die1; // player dies
90 .vector anim_die2; // player dies differently
91 .vector anim_draw; // player pulls out a weapon
92 .vector anim_duck; // player crouches (from idle to duckidle)
93 .vector anim_duckwalk; // player walking while crouching
94 .vector anim_duckjump; // player jumping from a crouch
95 .vector anim_duckidle; // player idling while crouching
96 .vector anim_idle; // player standing
97 .vector anim_jump; // player jump
98 .vector anim_pain1; // player flinches from pain
99 .vector anim_pain2; // player flinches from pain, differently
100 .vector anim_shoot; // player shoots
101 .vector anim_taunt; // player taunts others (FIXME: no code references this)
102 .vector anim_run; // player running forward
103 .vector anim_runbackwards; // player running backward
104 .vector anim_strafeleft; // player shuffling left quickly
105 .vector anim_straferight; // player shuffling right quickly
106 .vector anim_dead1; // player dead (must be identical to last frame of die1)
107 .vector anim_dead2; // player dead (must be identical to last frame of die2)
108 .vector anim_forwardright; // player running forward and right
109 .vector anim_forwardleft; // player running forward and left
110 .vector anim_backright; // player running backward and right
111 .vector anim_backleft; // player running back and left
113 void() player_setupanimsformodel;
114 void(vector anim, float looping, float override, float restart) player_setanim;
124 .float damageforcescale;
130 // for railgun damage (hitting multiple enemies)
132 .float railgunhitsolidbackup;
133 .vector railgunhitloc;
141 .float watersound_finished;
145 .float pauseregen_finished;
146 .float pauserothealth_finished;
147 .float pauserotarmor_finished;
148 .string item_pickupsound;
150 // definitions for weaponsystem
152 .entity weaponentity;
153 .entity exteriorweaponentity;
156 float(float wpn, float wrequest) weapon_action;
157 float(entity cl, float wpn, float andammo, float complain) client_hasweapon;
160 // VorteX: standalone think for weapons, so normal think on weaponentity can be reserved by weaponflashes (which needs update even player dies)
161 .float weapon_nextthink;
162 .void() weapon_think;
163 .float weapon_nextthink_lastframe;
165 //float PLAYER_WEAPONSELECTION_DELAY = );
166 float PLAYER_WEAPONSELECTION_SPEED = 18;
167 vector PLAYER_WEAPONSELECTION_RANGE = '0 20 -40';
169 // weapon states (self.weaponentity.state)
170 float WS_CLEAR = 0; // no weapon selected
171 float WS_RAISE = 1; // raise frame
172 float WS_DROP = 2; // deselecting frame
173 float WS_INUSE = 3; // fire state
174 float WS_READY = 4; // idle frame
177 float WR_SETUP = 1; // setup weapon data
178 float WR_THINK = 2; // logic to run every frame
179 float WR_CHECKAMMO1 = 3; // checks ammo for weapon
180 float WR_CHECKAMMO2 = 4; // checks ammo for weapon
181 float WR_AIM = 5; // runs bot aiming code for this weapon
182 float WR_PRECACHE = 6; // precaches models/sounds used by this weapon
183 float WR_REGISTER = 7; // send data about the weapon to the client self (for ClientConnect)
186 float WEP_LASER = 1; // float IT_LASER = 4096;
187 float WEP_SHOTGUN = 2; // float IT_SHOTGUN = 1;
188 float WEP_UZI = 3; // float IT_UZI = 2;
189 float WEP_GRENADE_LAUNCHER = 4; // float IT_GRENADE_LAUNCHER = 4;
190 float WEP_ELECTRO = 5; // float IT_ELECTRO = 8;
191 float WEP_CRYLINK = 6; // float IT_CRYLINK = 16;
192 float WEP_NEX = 7; // float IT_NEX = 32;
193 float WEP_HAGAR = 8; // float IT_HAGAR = 64;
194 float WEP_ROCKET_LAUNCHER = 9; // float IT_ROCKET_LAUNCHER = 128;
196 // For weapon cycling commands
200 void(entity client, string s) stuffcmd = #21;
201 void(entity client, string s) sprint = #24;
202 vector(entity e, float sped) aim = #44;
203 void(entity client, string s) centerprint_builtin = #73;
204 void(entity e) setspawnparms = #78;
205 void(float to, float f) WriteByte = #52;
206 void(float to, float f) WriteChar = #53;
207 void(float to, float f) WriteShort = #54;
208 void(float to, float f) WriteLong = #55;
209 void(float to, float f) WriteCoord = #56;
210 void(float to, float f) WriteAngle = #57;
211 void(float to, string s) WriteString = #58;
212 void(float to, entity s) WriteEntity = #59;
213 .vector dest1, dest2;
216 float intermission_running;
217 float intermission_exittime;
218 float alreadychangedlevel;
224 .float welcomemessage_time;
229 string votecalledvote;
230 string votecalledvote_display;
231 float votecalledmaster;
239 float VoteAllowed(string vote);
244 void VoteStop(entity stopper);
247 // Wazat's grappling hook
249 void GrapplingHookFrame();
250 void RemoveGrapplingHook(entity pl);
251 void SetGrappleHookBindings();
253 float GRAPHOOK_FIRE = 20;
254 float GRAPHOOK_RELEASE = 21;
255 // (note: you can change the hook impulse #'s to whatever you please)
258 // Laser target for laser-guided weapons
263 .float jump_interval; // laser refire
266 .float in_swamp; // bool
267 .entity swampslug; // Uses this to release from swamp ("untouch" fix)
278 .float spawnshieldtime;
280 .float lms_nextcheck;
281 .float lms_traveled_distance;
289 .float noalign; // if set to 1, the item or spawnpoint won't be dropped to the floor
293 .vector death_origin;
294 .vector killer_origin;
298 float default_player_alpha;
299 float default_weapon_alpha;
303 .float() customizeentityforclient;
304 .float cvar_cl_handicap;
305 .float cvar_cl_zoomfactor;
306 .float cvar_cl_zoomspeed;
307 .float cvar_cl_playerdetailreduction;
308 .float cvar_cl_nogibs;
309 .float cvar_scr_centertime;
310 .float cvar_cl_shownames;
311 .float cvar_cl_hidewaypoints;
312 .string cvar_g_nexuizversion;
314 .float version_nagtime;
316 #ifdef ALLOW_VARIABLE_LOD
317 .float modelindex_lod0;
318 .float modelindex_lod1;
319 .float modelindex_lod2;
322 #define NUM_JUMPPADSUSED 3
324 .entity jumppadsused[NUM_JUMPPADSUSED];
326 string gamemode_name;
329 float startitem_failed;
331 void DropFlag(entity flag);
332 void DropAllRunes(entity pl);
335 typedef .float floatfield;
336 floatfield Item_CounterField(float it);
337 float Item_WeaponCode(float it);
338 void Item_SpawnByItemCode(float it);
340 float W_AmmoItemCode(float wpn);
341 float W_ItemCode(float wpn);
342 string W_Name(float weaponid);
344 void UpdateSelectedPlayer();
345 void ClearSelectedPlayer();
346 .entity selected_player;
347 .entity last_selected_player;
348 .float selected_player_time; // when this player has been selected
349 .float selected_player_count; // how long this player has been directly pointed to
350 .float selected_player_display_needs_update; // are regular updates necessary? (health)
351 .float selected_player_display_timeout; // when the selection will time out
353 void FixIntermissionClient(entity e);
354 void FixClientCvars(entity e);
358 void centerprint_atprio(entity e, float prio, string s);
359 void centerprint_expire(entity e, float prio);
360 void centerprint(entity e, string s);
362 .float respawn_countdown; // next number to count
364 float bot_waypoints_for_items;
366 .float attack_finished_for[WEP_LAST + 1];
367 .float attack_finished_single;
368 #define ATTACK_FINISHED(ent) ((ent).(attack_finished_for[(ent).weapon]))
370 // assault game mode: Which team is attacking in this round?
371 float assault_attacker_team;