FILES_CSPROGS = $(shell find client common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
../csprogs.dat: $(FILES_CSPROGS) $(QCCVERSIONFILE)
@echo make[1]: Entering directory \`$(PWD)/client\'
- cd client && $(QCC) $(QCCFLAGS)
+ cd client && $(QCC) $(QCCFLAGS) -DCSQC
server/precache-for-csqc.inc: $(FILES_CSPROGS)
sh collect-precache.sh
FILES_PROGS = $(shell find server common warpzonelib csqcmodellib -type f -not -name fteqcc.log -not -name qc.asm)
../progs.dat: $(FILES_PROGS) $(QCCVERSIONFILE) server/precache-for-csqc.inc
@echo make[1]: Entering directory \`$(PWD)/server\'
- cd server && $(QCC) $(QCCFLAGS)
+ cd server && $(QCC) $(QCCFLAGS) -DSVQC
FILES_MENU = $(shell find menu common warpzonelib -type f -not -name fteqcc.log -not -name qc.asm)
../menu.dat: $(FILES_MENU) $(QCCVERSIONFILE)
@echo make[1]: Entering directory \`$(PWD)/menu\'
- cd menu && $(QCC) $(QCCFLAGS)
+ cd menu && $(QCC) $(QCCFLAGS) -DMENUQC
.PHONY: testcase
testcase:
+#ifndef DEFS_H
+#define DEFS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
//NOTE: THIS IS AN INTERFACE FILE. DO NOT EDIT.
//MODIFYING THIS FILE CAN RESULT IN CRC ERRORS.
//YOU HAVE BEEN WARNED.
#define player_currententnum (spectatee_status > 0 ? spectatee_status : player_localnum + 1)
float g_balance_porto_secondary;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/cl_cmd.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "hud.qh"
+ #include "waypointsprites.qh"
+ #include "prandom.qh"
+ #include "tturrets.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "shownames.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
// --------------------------------------------------------------------------
// BEGIN REQUIRED CSQC FUNCTIONS
//include "main.qh"
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "autocvars.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "noise.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_player.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
entity porto;
vector polyline[16];
void Porto_Draw()
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../common/stats.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
bool announcer_1min;
bool announcer_5min;
void Announcer_Countdown()
+#ifndef CLIENT_AUTOCVARS_H
+#define CLIENT_AUTOCVARS_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
bool autocvar__con_chat_maximized;
bool autocvar__hud_configure;
string autocvar__hud_panelorder;
float autocvar_crosshair_rpc_alpha = 1;
float autocvar_crosshair_rpc_size = 1;
int autocvar_cl_nade_timer;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "bgmscript.qh"
+ #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
#define CONSTANT_SPEED_DECAY
float bgmscriptbuf;
+#ifndef BGMSCRIPT_H
+#define BGMSCRIPT_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.string bgmscript;
.float bgmscriptattack;
.float bgmscriptdecay;
void BGMScript_InitEntity(entity e);
float BGMScript(entity e);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
.bool silent;
void Casing_Delete()
// Last updated: December 28th, 2011
// ==============================================
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../Defs.qc"
+ #include "../../common/util.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "cl_cmd.qh"
+ #include "../autocvars.qh"
+ #include "../hud.qh"
+ #include "../main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void DrawDebugModel()
{
if(time - floor(time) > 0.5)
+#ifndef CL_CMD_H
+#define CL_CMD_H
// ==============================================
// CSQC client commands code, written by Samual
// Last updated: December 17th, 2011
// ==============================================
+#if defined(CSQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../sys-post.qh"
+ #include "../Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../../common/playerstats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/animdecide.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void Cmd_HUD_SetFields(int);
void Cmd_HUD_Help();
// used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
void LocalCommand_macro_write_aliases(int fh);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/animdecide.qh"
+ #include "autocvars.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "main.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../csqcmodellib/cl_player.qh"
+ #include "weapons/projectile.qh"
+ #include "player_skeleton.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
void CSQCModel_Hook_PreDraw(bool isplayer);
.bool isplayermodel;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "vehicles/vehicles.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void DamageEffect_Think()
{
// if particle distribution is enabled, slow ticrate by total number of damages
-.float total_damages; // number of effects which currently are attached to a player
\ No newline at end of file
+#ifndef DAMAGE_H
+#define DAMAGE_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+.float total_damages; // number of effects which currently are attached to a player
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "autocvars.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
/*
.vector fx_start;
.vector fx_end;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/buffs.qh"
+ #include "autocvars.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.bool silent;
void Gib_Delete()
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "noise.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
.float HookType; // ENT_CLIENT_*
.vector origin;
.vector velocity;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "autocvars.qh"
+ #include "../common/deathtypes.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_player.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
/*
==================
Misc HUD functions
+#ifndef HUD_H
+#define HUD_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
const int HUD_PANEL_MAX = 24;
entity hud_panel[HUD_PANEL_MAX];
const int HUD_PANEL_FIRST = 0;
var void HUD_ModIcons_GameType(vector pos, vector size);
void HUD_ModIcons_SetFunc();
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "autocvars.qh"
+ #include "hud.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
#define HUD_Write(s) fputs(fh, s)
// q: quoted, n: not quoted
#define HUD_Write_Cvar_n(cvar) HUD_Write(strcat("seta ", cvar, " ", cvar_string(cvar), "\n"))
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../common/buffs.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
// a laser goes from origin in direction angles
// it has color 'colormod'
// and stops when something is in the way
+#ifndef MAIN_H
+#define MAIN_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "bgmscript.qh"
+ #include "noise.qh"
+ #include "tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
// --------------------------------------------------------------------------
// MENU Functionality
float hud;
float view_quality;
int framecount;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/mapinfo.qh"
+ #include "autocvars.qh"
+ #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
int mv_num_maps;
float mv_active;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/urllib.qh"
+ #include "autocvars.qh"
+ #include "hud.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
entity players;
entity teams;
float team_count; // real teams
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
.float frame1time;
.float lifetime, fadetime;
.float teleport_time;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/stats.qh"
+ #include "../common/util.qh"
+ #include "movetypes.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
const int MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE = 4;
#define GRAVITY_UNAFFECTED_BY_TICRATE (getstati(STAT_MOVEFLAGS) & MOVEFLAG_GRAVITYUNAFFECTEDBYTICRATE)
+#ifndef MOVETYPES_H
+#define MOVETYPES_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.float move_movetype;
.float move_time;
.vector move_origin;
const int FL_ITEM = 256;
const int FL_ONGROUND = 512;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "noise.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.float noise_baccum;
.float noise_paccum;
.float noise_paccum2;
+#ifndef NOISE_H
+#define NOISE_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "bgmscript.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
// noises "usually" start in the range -1..1
float Noise_Brown(entity e, float dt);
float Noise_Pink(entity e, float dt);
float Noise_White(entity e, float dt);
float Noise_Burst(entity e, float dt, float p); // +1 or -1
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "bgmscript.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.int dphitcontentsmask;
.int cnt; // effect number
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../common/util.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "player_skeleton.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.float skeleton_info_modelindex;
.float skeleton_info_skin;
const int BONETYPE_LOWER = 0;
+#ifndef PLAYER_SKELETON
+#define PLAYER_SKELETON
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "bgmscript.qh"
+ #include "noise.qh"
+ #include "tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "main.qh"
+ #include "vehicles/vehicles.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../csqcmodellib/cl_player.qh"
+ #include "weapons/projectile.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void free_skeleton_from_frames(entity e);
void skeleton_from_frames(entity e, float is_dead);
void skeleton_loadinfo(entity e);
.float bone_aim[MAX_AIM_BONES];
.float bone_aimweight[MAX_AIM_BONES];
.float fixbone;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../warpzonelib/mathlib.qh"
+ #include "prandom.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
// prandom - PREDICTABLE random number generator (not seeded yet)
#ifdef USE_PRANDOM
+#ifndef PRANDOM_H
+#define PRANDOM_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+ #include "movetypes.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
// prandom - PREDICTABLE random number generator
#define USE_PRANDOM
#define psrandom(x)
#define prandom_debug()
#endif
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.float creationtime;
// LordHavoc: rewrote this file, it was really bad code
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/buffs.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/cl_cmd.qh"
+ #include "autocvars.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
float scoreboard_alpha_bg;
float scoreboard_alpha_fg;
float scoreboard_highlight;
+#ifndef SCOREBOARD_H
+#define SCOREBOARD_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
float HUD_WouldDrawScoreboard(void);
float scoreboard_active;
float scoreboard_fade_alpha;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/mapinfo.qh"
+ #include "autocvars.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "shownames.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
// self.isactive = player is in range and coordinates/status (health and armor) are up to date
// self.origin = player origin TODO: should maybe move this so it's the origin of the shownames tag already in SSQC for culling?
// self.healthvalue
+#ifndef SHOWNAMES_H
+#define SHOWNAMES_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "bgmscript.qh"
+ #include "noise.qh"
+ #include "tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "main.qh"
+ #include "vehicles/vehicles.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../csqcmodellib/cl_player.qh"
+ #include "weapons/projectile.qh"
+ #include "player_skeleton.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.float healthvalue;
.float armorvalue;
.float sameteam;
.float fadedelay;
.float pointtime;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
//.float(entity,entity) sort_cmp;
.entity sort_next, sort_prev;
+#ifndef SYS_POST_H
+#define SYS_POST_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
#pragma noref 0
#undef ATTEN_NORM
+#endif
\ No newline at end of file
-#define CSQC
+#ifndef SYS_PRE_H
+#define SYS_PRE_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
#define ATTEN_NORM builtin_ATTEN_NORM
#pragma noref 1
+
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
float music_disabled;
entity music_default;
entity music_target;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
float teamradar_angle; // player yaw angle
vector teamradar_origin3d_in_texcoord; // player origin
vector teamradar_origin2d; // 2D origin
+#ifndef TEAMRADAR_H
+#define TEAMRADAR_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
const int MAX_TEAMRADAR_TIMES = 32;
// to make entities have dots on the team radar
.float teamradar_times[MAX_TEAMRADAR_TIMES];
.int teamradar_time_index;
.vector teamradar_color;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/teams.qh"
+ #include "../common/buffs.qh"
+ #include "autocvars.qh"
+ #include "teamradar.qh"
+ #include "movetypes.qh"
+ #include "tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
string tid2info_base;
string tid2info_head;
string tid2info_name;
+#ifndef TTURRETS_H
+#define TTURRETS_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+ #include "waypointsprites.qh"
+ #include "movetypes.qh"
+ #include "prandom.qh"
+ #include "bgmscript.qh"
+ #include "noise.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void ent_turret();
void turrets_precache();
.entity tur_head;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../common/constants.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
const float TUBA_MIN = -18;
const float TUBA_MAX = 27;
const float TUBA_INSTRUMENTS = 3;
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../Defs.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/util.qh"
+ #include "../../common/buffs.qh"
+ #include "../autocvars.qh"
+ #include "../movetypes.qh"
+ #include "../prandom.qh"
+ #include "../main.qh"
+ #include "vehicles.qh"
+ #include "../../csqcmodellib/cl_model.qh"
+ #include "../../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
const string hud_bg = "gfx/vehicles/frame.tga";
const string hud_sh = "gfx/vehicles/vh-shield.tga";
+#ifndef VEHICLES_H
+#define VEHICLES_H
+
+#if defined(CSQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../sys-post.qh"
+ #include "../Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../../common/playerstats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/animdecide.qh"
+ #include "../command/cl_cmd.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../autocvars.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../damage.qh"
+ #include "../../csqcmodellib/interpolate.qh"
+ #include "../teamradar.qh"
+ #include "../hud.qh"
+ #include "../scoreboard.qh"
+ #include "../waypointsprites.qh"
+ #include "../movetypes.qh"
+ #include "../prandom.qh"
+ #include "../bgmscript.qh"
+ #include "../noise.qh"
+ #include "../tturrets.qh"
+ #include "../../server/tturrets/include/turrets_early.qh"
+ #include "../main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void RaptorCBShellfragDraw();
void RaptorCBShellfragToss(vector _org, vector _vel, vector _ang);
void Vehicles_Precache();
-
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "bgmscript.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.float lip;
.float bgmscriptangular;
.int lodmodelindex0, lodmodelindex1, lodmodelindex2;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "Defs.qc"
+ #include "../common/constants.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/buffs.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "waypointsprites.qh"
+ #include "main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
float waypointsprite_initialized;
float waypointsprite_fadedistance;
float waypointsprite_normdistance;
+#ifndef WAYPOINTSPRITES_H
+#define WAYPOINTSPRITES_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "sys-post.qh"
+ #include "Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "teamradar.qh"
+ #include "hud.qh"
+ #include "scoreboard.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
// they are drawn using a .draw function
void Ent_WaypointSprite();
void Ent_RemoveWaypointSprite();
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../Defs.qc"
+ #include "../../common/constants.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../autocvars.qh"
+ #include "../../csqcmodellib/interpolate.qh"
+ #include "../movetypes.qh"
+ #include "../main.qh"
+ #include "../../csqcmodellib/cl_model.qh"
+ #include "projectile.qh"
+ #include "../../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.vector iorigin1, iorigin2;
.float spawntime;
.vector trail_oldorigin;
+#ifndef PROJECTILE_H
+#define PROJECTILE_H
+
+#if defined(CSQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../sys-post.qh"
+ #include "../Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../../common/playerstats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/animdecide.qh"
+ #include "../command/cl_cmd.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../autocvars.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../damage.qh"
+ #include "../../csqcmodellib/interpolate.qh"
+ #include "../teamradar.qh"
+ #include "../hud.qh"
+ #include "../scoreboard.qh"
+ #include "../waypointsprites.qh"
+ #include "../movetypes.qh"
+ #include "../prandom.qh"
+ #include "../bgmscript.qh"
+ #include "../noise.qh"
+ #include "../tturrets.qh"
+ #include "../../server/tturrets/include/turrets_early.qh"
+ #include "../main.qh"
+ #include "../vehicles/vehicles.qh"
+ #include "../../common/csqcmodel_settings.qh"
+ #include "../../csqcmodellib/common.qh"
+ #include "../../csqcmodellib/cl_model.qh"
+ #include "../../csqcmodellib/cl_player.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
.int traileffect;
void Projectile_ResetTrail(vector to);
void Projectile_DrawTrail(vector to);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "animdecide.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "util.qh"
+ #include "animdecide.qh"
+ #include "../server/defs.qh"
+#endif
+
// player animation data for this model
// each vector is as follows:
// _x = startframe
+#ifndef ANIMDECIDE_H
+#define ANIMDECIDE_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "weapons/weapons.qh"
+ #include "mapinfo.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "urllib.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "net_notice.qh"
+#endif
+
// must be called at least once to initialize, or when modelindex is changed
void animdecide_load_if_needed(entity e);
const int ANIMACTION_SHOOT = 4; // shoot
const int ANIMACTION_TAUNT = 5; // taunt
const int ANIMACTION_MELEE = 6; // melee
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "buffs.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "buffs.qh"
+#endif
+
vector Buff_Color(float buff_id)
{
entity e;
+#ifndef BUFFS_H
+#define BUFFS_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+#endif
+
entity Buff_Type_first;
entity Buff_Type_last;
.entity enemy; // internal next pointer
float Buff_Type_FromSprite(string buff_sprite);
float Buff_Skin(float buff_id);
string Buff_Sprite(float buff_id);
+#endif
\ No newline at end of file
+#ifndef CAMPAIGN_COMMON_H
+#define CAMPAIGN_COMMON_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "test.qh"
+ #include "../menu/oo/base.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "constants.qh"
+ #include "mapinfo.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "net_notice.qh"
+ #include "animdecide.qh"
+ #include "monsters/monsters.qh"
+ #include "monsters/sv_monsters.qh"
+ #include "monsters/spawn.qh"
+ #include "weapons/config.qh"
+ #include "weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "notifications.qh"
+ #include "deathtypes.qh"
+ #include "../server/mutators/mutators_include.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../server/vehicles/vehicles_def.qh"
+ #include "../server/campaign.qh"
+#endif
+
#ifndef CAMPAIGN_MAX_ENTRIES
#define CAMPAIGN_MAX_ENTRIES 64
#endif
// Sets up the campaign for the n-th array item (meaning: campaign_offset+nth
// level) using localcmd()
void CampaignSetup(float n);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "util.qh"
+ #include "campaign_common.qh"
+#endif
+
// CampaignFileLoad(offset, n)
// - Loads campaign level data (up to n entries starting at offset)
// into the globals
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "campaign_common.qh"
+ #include "mapinfo.qh"
+#endif
+
void CampaignSetup(float n)
{
localcmd("set g_campaign 1\n");
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../constants.qh"
+ #include "../util.qh"
+ #include "../mapinfo.qh"
+ #include "generic.qh"
+ #include "shared_defs.qh"
+ #include "../../client/command/cl_cmd.qh"
+ #include "../notifications.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../constants.qh"
+ #include "../util.qh"
+ #include "../test.qh"
+ #include "generic.qh"
+ #include "shared_defs.qh"
+ #include "../weapons/config.qh"
+ #include "../notifications.qh"
+ #include "../mapinfo.qh"
+ #include "../../server/command/common.qh"
+ #include "../../server/command/banning.qh"
+ #include "../../server/command/cmd.qh"
+ #include "../../server/command/sv_cmd.qh"
+#endif
+
// =========================================================
// Generic program common command code, written by Samual
// Last updated: February 19th, 2012
+#ifndef GENERIC_H
+#define GENERIC_H
+
+#if defined(CSQC)
+ #include "../util-pre.qh"
+ #include "../../client/sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/sys-post.qh"
+ #include "../../client/Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../weapons/weapons.qh"
+ #include "../mapinfo.qh"
+ #include "markup.qh"
+ #include "rpn.qh"
+#elif defined(MENUQC)
+ #include "../util-pre.qh"
+ #include "../../menu/sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../menu/sys-post.qh"
+ #include "../../menu/config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "../test.qh"
+ #include "../../menu/oo/base.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../constants.qh"
+ #include "../mapinfo.qh"
+ #include "../campaign_common.qh"
+ #include "../weapons/weapons.qh"
+ #include "../counting.qh"
+ #include "markup.qh"
+ #include "rpn.qh"
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "markup.qh"
+ #include "rpn.qh"
+#endif
// =========================================================
// Declarations for common command code, written by Samual
// Last updated: December 28th, 2011
int curl_uri_get_pos;
float curl_uri_get_exec[URI_GET_CURL_END - URI_GET_CURL + 1];
string curl_uri_get_cvar[URI_GET_CURL_END - URI_GET_CURL + 1];
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../util.qh"
+ #include "markup.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../util.qh"
+ #include "markup.qh"
+#endif
+
// =========================================================
// Markup chat characters command code, reworked by Samual
// Last updated: December 28th, 2011
+#ifndef MARKUP_H
+#define MARKUP_H
+
+#if defined(CSQC)
+ #include "../util-pre.qh"
+ #include "../../client/sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/sys-post.qh"
+ #include "../../client/Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../weapons/weapons.qh"
+ #include "../mapinfo.qh"
+#elif defined(MENUQC)
+ #include "../util-pre.qh"
+ #include "../../menu/sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../menu/sys-post.qh"
+ #include "../../menu/config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "../test.qh"
+ #include "../../menu/oo/base.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../constants.qh"
+ #include "../mapinfo.qh"
+ #include "../campaign_common.qh"
+ #include "../weapons/weapons.qh"
+ #include "../counting.qh"
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+#endif
// ==========================================================
// Declarations for markup command code, reworked by Samual
// Last updated: December 28th, 2011
bool markup_init;
string markup_from[NUM_MARKUPS];
string markup_to[NUM_MARKUPS];
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "rpn.qh"
+ #include "generic.qh"
+ #include "shared_defs.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "rpn.qh"
+ #include "generic.qh"
+ #include "shared_defs.qh"
+#endif
+
// ========================================
// RPN command code, written by divVerent
// Last updated: December 28th, 2011
+#ifndef RPN_H
+#define RPN_H
+
+#if defined(CSQC)
+ #include "../util-pre.qh"
+ #include "../../client/sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/sys-post.qh"
+ #include "../../client/Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../weapons/weapons.qh"
+ #include "../mapinfo.qh"
+ #include "markup.qh"
+#elif defined(MENUQC)
+ #include "../util-pre.qh"
+ #include "../../menu/sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../menu/sys-post.qh"
+ #include "../../menu/config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "../test.qh"
+ #include "../../menu/oo/base.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../constants.qh"
+ #include "../mapinfo.qh"
+ #include "../campaign_common.qh"
+ #include "../weapons/weapons.qh"
+ #include "../counting.qh"
+ #include "markup.qh"
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "markup.qh"
+#endif
// =========================================================
// Declarations for RPN command code, written by divVerent
// Last updated: December 28th, 2011
int rpn_error;
int rpn_sp;
string rpn_stack[MAX_RPN_STACK];
+#endif
\ No newline at end of file
+#ifndef SHARED_DEFS_H
+#define SHARED_DEFS_H
+
+#if defined(CSQC)
+ #include "../util-pre.qh"
+ #include "../../client/sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/sys-post.qh"
+ #include "../../client/Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../weapons/weapons.qh"
+ #include "../mapinfo.qh"
+ #include "markup.qh"
+ #include "rpn.qh"
+ #include "generic.qh"
+#elif defined(MENUQC)
+ #include "../util-pre.qh"
+ #include "../../menu/sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../menu/sys-post.qh"
+ #include "../../menu/config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "../test.qh"
+ #include "../../menu/oo/base.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../constants.qh"
+ #include "../mapinfo.qh"
+ #include "../campaign_common.qh"
+ #include "../weapons/weapons.qh"
+ #include "../counting.qh"
+ #include "markup.qh"
+ #include "rpn.qh"
+ #include "generic.qh"
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "markup.qh"
+ #include "rpn.qh"
+ #include "generic.qh"
+#endif
+
// =========================================================
// Shared declarations for all commands, written by Samual
// Last updated: December 13th, 2011
// identifiers for subfunction requests by the command code structure
const int CMD_REQUEST_COMMAND = 1;
-const int CMD_REQUEST_USAGE = 2;
\ No newline at end of file
+const int CMD_REQUEST_USAGE = 2;
+#endif
\ No newline at end of file
+#ifndef CONSTANTS_H
+#define CONSTANTS_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "test.qh"
+ #include "../menu/oo/base.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+#endif
+
const int AS_STRING = 1;
const int AS_INT = 2;
const int AS_FLOAT_TRUNCATED = 2;
const int GTV_AVAILABLE = 0;
// for later use in per-map gametype filtering
const int GTV_FORBIDDEN = 2;
+#endif
\ No newline at end of file
+#ifndef COUNTING_H
+#define COUNTING_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "test.qh"
+ #include "../menu/oo/base.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "constants.qh"
+ #include "mapinfo.qh"
+ #include "campaign_common.qh"
+ #include "weapons/weapons.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+#endif
+
// ===============================================
// Time processing and counting functions/macros
// ===============================================
}
return "";
}
+#endif
\ No newline at end of file
+#ifndef CSQCMODEL_SETTINGS_H
+#define CSQCMODEL_SETTINGS_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "weapons/weapons.qh"
+ #include "mapinfo.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "urllib.qh"
+ #include "animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+ #include "notifications.qh"
+ #include "deathtypes.qh"
+ #include "../client/damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "../client/teamradar.qh"
+ #include "../client/hud.qh"
+ #include "../client/scoreboard.qh"
+ #include "../client/waypointsprites.qh"
+ #include "../client/movetypes.qh"
+ #include "../client/prandom.qh"
+ #include "../client/bgmscript.qh"
+ #include "../client/noise.qh"
+ #include "../client/tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../client/main.qh"
+ #include "../client/vehicles/vehicles.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "net_notice.qh"
+ #include "animdecide.qh"
+ #include "monsters/monsters.qh"
+ #include "monsters/sv_monsters.qh"
+ #include "monsters/spawn.qh"
+ #include "weapons/config.qh"
+ #include "weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "notifications.qh"
+ #include "deathtypes.qh"
+ #include "../server/mutators/mutators_include.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../server/vehicles/vehicles_def.qh"
+ #include "../server/campaign.qh"
+ #include "campaign_common.qh"
+ #include "mapinfo.qh"
+ #include "../server/command/common.qh"
+ #include "../server/command/banning.qh"
+ #include "../server/command/radarmap.qh"
+ #include "../server/command/vote.qh"
+ #include "../server/command/getreplies.qh"
+ #include "../server/command/cmd.qh"
+ #include "../server/command/sv_cmd.qh"
+#endif
+
// define this if svqc code wants to use .frame2 and .lerpfrac
//#define CSQCMODEL_HAVE_TWO_FRAMES
#endif
#define CSQCMODEL_EF_RESPAWNGHOST EF_SELECTABLE
+#endif
\ No newline at end of file
+#ifndef DEATHTYPES_H
+#define DEATHTYPES_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "weapons/weapons.qh"
+ #include "mapinfo.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "urllib.qh"
+ #include "animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+ #include "notifications.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "net_notice.qh"
+ #include "animdecide.qh"
+ #include "monsters/monsters.qh"
+ #include "monsters/sv_monsters.qh"
+ #include "monsters/spawn.qh"
+ #include "weapons/config.qh"
+ #include "weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "notifications.qh"
+#endif
+
// ================================
// Deathtypes, reworked by Samual
// ================================
const int HITTYPE_BOUNCE = 0x400;
const int HITTYPE_RESERVED2 = 0x800;
const int HITTYPE_RESERVED = 0x1000; // unused yet
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "util.qh"
+ #include "buffs.qh"
+ #include "weapons/weapons.qh"
+ #include "mapinfo.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "util.qh"
+ #include "buffs.qh"
+ #include "monsters/monsters.qh"
+ #include "mapinfo.qh"
+#endif
+
// generic string stuff
float _MapInfo_Cache_Active;
+#ifndef MAPINFO_H
+#define MAPINFO_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "weapons/weapons.qh"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "test.qh"
+ #include "../menu/oo/base.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "constants.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "net_notice.qh"
+ #include "animdecide.qh"
+ #include "monsters/monsters.qh"
+ #include "monsters/sv_monsters.qh"
+ #include "monsters/spawn.qh"
+ #include "weapons/config.qh"
+ #include "weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "notifications.qh"
+ #include "deathtypes.qh"
+ #include "../server/mutators/mutators_include.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../server/vehicles/vehicles_def.qh"
+ #include "../server/campaign.qh"
+ #include "campaign_common.qh"
+#endif
+
float MAPINFO_TYPE_ALL;
entity MapInfo_Type_first;
entity MapInfo_Type_last;
#define MAPINFO_SETTEMP_ACL_USER cvar_string("g_mapinfo_settemp_acl")
#define MAPINFO_SETTEMP_ACL_SYSTEM "-g_mapinfo_* -rcon_* -_* -g_ban* +*"
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../weapons/weapons.qh"
+ #include "monsters.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../util.qh"
+ #include "monsters.qh"
+ #include "sv_monsters.qh"
+ #include "../weapons/weapons.qh"
+ #include "../../server/t_items.qh"
+ #include "../../server/autocvars.qh"
+ #include "../../server/constants.qh"
+ #include "../../server/defs.qh"
+ #include "../deathtypes.qh"
+ #include "../../server/mutators/mutators_include.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+#endif
#include "all.qh"
// MONSTER PLUGIN SYSTEM
+#ifndef MONSTERS_H
+#define MONSTERS_H
+
+#if defined(CSQC)
+ #include "../util-pre.qh"
+ #include "../../client/sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/sys-post.qh"
+ #include "../../client/Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../weapons/weapons.qh"
+ #include "../mapinfo.qh"
+ #include "../command/markup.qh"
+ #include "../command/rpn.qh"
+ #include "../command/generic.qh"
+ #include "../command/shared_defs.qh"
+ #include "../urllib.qh"
+ #include "../animdecide.qh"
+ #include "../../client/command/cl_cmd.qh"
+#elif defined(MENUQC)
+ #include "../util-pre.qh"
+ #include "../../menu/sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../menu/sys-post.qh"
+ #include "../../menu/config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "../test.qh"
+ #include "../../menu/oo/base.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../constants.qh"
+ #include "../mapinfo.qh"
+ #include "../campaign_common.qh"
+ #include "../weapons/weapons.qh"
+ #include "../counting.qh"
+ #include "../command/markup.qh"
+ #include "../command/rpn.qh"
+ #include "../command/generic.qh"
+ #include "../command/shared_defs.qh"
+ #include "../urllib.qh"
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "../command/markup.qh"
+ #include "../command/rpn.qh"
+ #include "../command/generic.qh"
+ #include "../command/shared_defs.qh"
+ #include "../net_notice.qh"
+ #include "../animdecide.qh"
+#endif
+
// monster requests
const int MR_SETUP = 1; // (SERVER) setup monster data
const int MR_THINK = 2; // (SERVER) logic to run every frame
#undef REGISTER_MONSTER
ACCUMULATE_FUNCTION(RegisterMonsters, register_monsters_done);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../util.qh"
+ #include "monsters.qh"
+ #include "sv_monsters.qh"
+ #include "spawn.qh"
+ #include "../../server/autocvars.qh"
+ #include "../../server/defs.qh"
+#endif
entity spawnmonster (string monster, float monster_id, entity spawnedby, entity own, vector orig, float respwn, float invincible, float moveflag)
{
// ensure spawnfunc database is initialized
+#ifndef SPAWN_H
+#define SPAWN_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "../command/markup.qh"
+ #include "../command/rpn.qh"
+ #include "../command/generic.qh"
+ #include "../command/shared_defs.qh"
+ #include "../net_notice.qh"
+ #include "../animdecide.qh"
+ #include "monsters.qh"
+ #include "sv_monsters.qh"
+#endif
entity spawnmonster (string monster, float monster_id, entity spawnedby, entity own, vector orig, float respwn, float invincible, float moveflag);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../constants.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "monsters.qh"
+ #include "sv_monsters.qh"
+ #include "../weapons/weapons.qh"
+ #include "../../server/autocvars.qh"
+ #include "../../server/defs.qh"
+ #include "../deathtypes.qh"
+ #include "../../server/mutators/mutators_include.qh"
+ #include "../../server/tturrets/include/turrets_early.qh"
+ #include "../../server/vehicles/vehicles_def.qh"
+ #include "../../server/campaign.qh"
+ #include "../../server/command/common.qh"
+ #include "../../server/command/cmd.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+ #include "../../server/round_handler.qh"
+ #include "../../server/tturrets/include/turrets.qh"
+#endif
+
// =========================
// SVQC Monster Properties
// =========================
+#ifndef SV_MONSTERS_H
+#define SV_MONSTERS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "../command/markup.qh"
+ #include "../command/rpn.qh"
+ #include "../command/generic.qh"
+ #include "../command/shared_defs.qh"
+ #include "../net_notice.qh"
+ #include "../animdecide.qh"
+ #include "monsters.qh"
+#endif
+
.string spawnmob;
.float monster_attack;
const int MONSTER_STATE_ATTACK_LEAP = 1;
const int MONSTER_STATE_ATTACK_MELEE = 2;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "../client/movetypes.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../client/main.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "constants.qh"
+ #include "../server/constants.qh"
+#endif
+
.float healer_lifetime;
.float healer_radius;
+#ifndef NADES_H
+#define NADES_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+#endif
+
// use slots 70-100
const int PROJECTILE_NADE = 71;
const int PROJECTILE_NADE_BURN = 72;
// misc functions
void ent_healer();
#endif // CSQC
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "constants.qh"
+ #include "net_notice.qh"
+ #include "../server/defs.qh"
+#endif
+
#ifdef SVQC
void sv_notice_join_think()
{
+#ifndef NET_NOTICE_H
+#define NET_NOTICE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+#endif
+
#ifdef CSQC
void cl_notice_read();
void sv_notice_to(entity _to, string _notice, float _howlong, float _modal);
void sv_notice_toall(string _notice, float _howlong, float _modal);
void sv_notice_join();
#endif
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "buffs.qh"
+ #include "counting.qh"
+ #include "weapons/weapons.qh"
+ #include "../client/autocvars.qh"
+ #include "notifications.qh"
+ #include "../client/main.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "constants.qh"
+ #include "teams.qh"
+ #include "counting.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "notifications.qh"
+ #include "../server/mutators/mutators_include.qh"
+#endif
+
// ================================================
// Unified notification system, written by Samual
// Last updated: August, 2013
+#ifndef NOTIFICATIONS_H
+#define NOTIFICATIONS_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "weapons/weapons.qh"
+ #include "mapinfo.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "urllib.qh"
+ #include "animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "net_notice.qh"
+ #include "animdecide.qh"
+ #include "monsters/monsters.qh"
+ #include "monsters/sv_monsters.qh"
+ #include "monsters/spawn.qh"
+ #include "weapons/config.qh"
+ #include "weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+#endif
+
// ================================================
// Unified notification system, written by Samual
// Last updated: March, 2013
#undef MSG_CHOICE_NOTIF
#undef NOTIF_ADD_AUTOCVAR
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "constants.qh"
+ #include "util.qh"
+ #include "urllib.qh"
+ #include "weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/defs.qh"
+ #include "playerstats.qh"
+ #include "../server/scores.qh"
+#endif
+
#ifdef SVQC
void PlayerStats_Prematch(void)
{
+#ifndef PLAYERSTATS_H
+#define PLAYERSTATS_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "test.qh"
+ #include "../menu/oo/base.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "urllib.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+ #include "net_notice.qh"
+ #include "animdecide.qh"
+ #include "monsters/monsters.qh"
+ #include "monsters/sv_monsters.qh"
+ #include "monsters/spawn.qh"
+ #include "weapons/config.qh"
+ #include "weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "notifications.qh"
+ #include "deathtypes.qh"
+ #include "../server/mutators/mutators_include.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../server/vehicles/vehicles_def.qh"
+ #include "../server/campaign.qh"
+ #include "campaign_common.qh"
+ #include "mapinfo.qh"
+ #include "../server/command/common.qh"
+ #include "../server/command/banning.qh"
+ #include "../server/command/radarmap.qh"
+ #include "../server/command/vote.qh"
+ #include "../server/command/getreplies.qh"
+ #include "../server/command/cmd.qh"
+ #include "../server/command/sv_cmd.qh"
+ #include "csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "../server/anticheat.qh"
+ #include "../server/cheats.qh"
+#endif
+
#ifdef SVQC
//float PS_PM_IN_DB = -1; // playerstats_prematch_in_db // db for info COLLECTED at the beginning of a match
float PS_GR_OUT_DB = -1; // playerstats_gamereport_out_db // db of info SENT at the end of a match
void PlayerStats_PlayerDetail_CheckUpdate(void);
void PlayerStats_PlayerDetail_Handler(entity fh, entity p, float status);
#endif
+#endif
\ No newline at end of file
-// Full list of all stat constants, icnluded in a single location for easy reference
+#ifndef STATS_H
+#define STATS_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+#endif
+
+// Full list of all stat constants, included in a single location for easy reference
// 255 is the current limit (MAX_CL_STATS - 1), engine will need to be modified if you wish to add more stats
const int MAX_CL_STATS = 256;
const int STAT_MOVEVARS_STEPHEIGHT = 253;
const int STAT_MOVEVARS_AIRACCEL_QW = 254;
const int STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION = 255;
+#endif
\ No newline at end of file
+#ifndef TEAMS_H
+#define TEAMS_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "test.qh"
+ #include "../menu/oo/base.qh"
+ #include "playerstats.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+#endif
+
#ifdef TEAMNUMBERS_THAT_ARENT_STUPID
const int NUM_TEAM_1 = 1; // red
const int NUM_TEAM_2 = 2; // blue
#define APP_TEAM_NUM_4(num,prefix) ((num == NUM_TEAM_1) ? prefix##RED : ((num == NUM_TEAM_2) ? prefix##BLUE : ((num == NUM_TEAM_3) ? prefix##YELLOW : prefix##PINK)))
#define APP_TEAM_ENT_2(ent,prefix) ((ent.team == NUM_TEAM_1) ? prefix##RED : prefix##BLUE)
#define APP_TEAM_ENT_4(ent,prefix) ((ent.team == NUM_TEAM_1) ? prefix##RED : ((ent.team == NUM_TEAM_2) ? prefix##BLUE : ((ent.team == NUM_TEAM_3) ? prefix##YELLOW : prefix##PINK)))
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "test.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/dpextensions.qc"
+ #include "test.qh"
+#endif
+
float TEST_failed;
float TEST_ok;
+#ifndef TEST_H
+#define TEST_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+#endif
+
#define TEST_Check(cond) do { if(!(cond)) TEST_Fail(#cond); } while(0)
void TEST_OK();
float TEST_RunAll();
float TEST_Run(string test);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "constants.qh"
+ #include "util.qh"
+ #include "urllib.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "constants.qh"
+ #include "util.qh"
+ #include "urllib.qh"
+#endif
+
// files
.float url_fh;
const float URL_FH_CURL = -1;
+#ifndef URLLIB_H
+#define URLLIB_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+ #include "weapons/weapons.qh"
+ #include "mapinfo.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "test.qh"
+ #include "../menu/oo/base.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+ #include "constants.qh"
+ #include "mapinfo.qh"
+ #include "campaign_common.qh"
+ #include "weapons/weapons.qh"
+ #include "counting.qh"
+ #include "command/markup.qh"
+ #include "command/rpn.qh"
+ #include "command/generic.qh"
+ #include "command/shared_defs.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+ #include "util.qh"
+ #include "nades.qh"
+ #include "buffs.qh"
+ #include "test.qh"
+ #include "counting.qh"
+#endif
+
const float URL_READY_ERROR = -1;
const float URL_READY_CLOSED = 0;
const float URL_READY_CANWRITE = 1;
#define NUM_URL_ID (URI_GET_URLLIB_END - URI_GET_URLLIB + 1)
void url_multi_fopen(string url, float mode, url_ready_func rdy, entity pass);
+#endif
\ No newline at end of file
+#ifndef UTIL_PRE_H
+#define UTIL_PRE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
#ifndef NOCOMPAT
#define COMPAT_NO_MOD_IS_XONOTIC
#endif
const bool true = 1;
const bool false = 0;
#endif
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "constants.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "util.qh"
+ #include "mapinfo.qh"
+ #include "notifications.qh"
+ #include "deathtypes.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "constants.qh"
+ #include "util.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/defs.qh"
+ #include "notifications.qh"
+ #include "deathtypes.qh"
+ #include "mapinfo.qh"
+#endif
+
string wordwrap_buffer;
void wordwrap_buffer_put(string s)
+#ifndef COMMON_UTIL_H
+#define COMMON_UTIL_H
+
+#if defined(CSQC)
+ #include "util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "playerstats.qh"
+ #include "teams.qh"
+#elif defined(MENUQC)
+ #include "util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+ #include "../warpzonelib/mathlib.qh"
+#elif defined(SVQC)
+ #include "util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "constants.qh"
+ #include "stats.qh"
+ #include "teams.qh"
+#endif
+
#ifdef QCC_SUPPORT_ACCUMULATE
# define ACCUMULATE_FUNCTION(func,otherfunc) \
[[accumulate]] void func() { otherfunc(); }
#define APPEND_TO_STRING(list,sep,add) ((list) = (((list) != "") ? strcat(list, sep, add) : (add)))
// Returns the correct difference between two always increasing numbers
-#define COMPARE_INCREASING(to,from) (to < from ? from + to + 2 : to - from)
\ No newline at end of file
+#define COMPARE_INCREASING(to,from) (to < from ? from + to + 2 : to - from)
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../util.qh"
+ #include "config.qh"
+ #include "weapons.qh"
+#endif
+
// ==========================
// Balance Config Generator
// ==========================
+#ifndef WEAPONS_CONFIG_H
+#define WEAPONS_CONFIG_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "../command/markup.qh"
+ #include "../command/rpn.qh"
+ #include "../command/generic.qh"
+ #include "../command/shared_defs.qh"
+ #include "../net_notice.qh"
+ #include "../animdecide.qh"
+ #include "../monsters/monsters.qh"
+ #include "../monsters/sv_monsters.qh"
+ #include "../monsters/spawn.qh"
+#endif
+
// ==========================
// Balance Config Generator
// ==========================
void Dump_Weapon_Settings(void);
-float wep_config_file;
-float wep_config_alsoprint;
+int wep_config_file;
+bool wep_config_alsoprint;
-const float MAX_WEP_CONFIG = 256;
-float WEP_CONFIG_COUNT;
+const int MAX_WEP_CONFIG = 256;
+int WEP_CONFIG_COUNT;
string wep_config_queue[MAX_WEP_CONFIG];
#define WEP_CONFIG_QUEUE(a) { \
cvar(sprintf("g_balance_%s_%s", #wepname, #name)))) }
#define WEP_CONFIG_WRITE_PROPS(wepid,wepname,type,prop,name) WEP_CONFIG_WRITE_PROPS_##type(wepname,name)
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/Defs.qc"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../util.qh"
+ #include "../buffs.qh"
+ #include "weapons.qh"
+ #include "../../client/autocvars.qh"
+ #include "../deathtypes.qh"
+ #include "../../csqcmodellib/interpolate.qh"
+ #include "../../client/movetypes.qh"
+ #include "../../client/main.qh"
+ #include "../../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../buffs.qh"
+ #include "../monsters/monsters.qh"
+ #include "config.qh"
+ #include "weapons.qh"
+ #include "../../server/weapons/csqcprojectile.qh"
+ #include "../../server/weapons/tracing.qh"
+ #include "../../server/t_items.qh"
+ #include "../../server/autocvars.qh"
+ #include "../../server/constants.qh"
+ #include "../../server/defs.qh"
+ #include "../notifications.qh"
+ #include "../deathtypes.qh"
+ #include "../../server/mutators/mutators_include.qh"
+ #include "../mapinfo.qh"
+ #include "../../server/command/common.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+ #include "../../server/portals.qh"
+ #include "../../server/g_hook.qh"
+#endif
#ifndef MENUQC
#include "calculations.qc"
#endif
+#ifndef WEAPONS_H
+#define WEAPONS_H
+
+#if defined(CSQC)
+ #include "../util-pre.qh"
+ #include "../../client/sys-pre.qh"
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/sys-post.qh"
+ #include "../../client/Defs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/client.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+#elif defined(MENUQC)
+ #include "../util-pre.qh"
+ #include "../../menu/sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../../menu/sys-post.qh"
+ #include "../../menu/config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../util.qh"
+ #include "../test.qh"
+ #include "../../menu/oo/base.qh"
+ #include "../playerstats.qh"
+ #include "../teams.qh"
+ #include "../constants.qh"
+ #include "../mapinfo.qh"
+ #include "../campaign_common.qh"
+#elif defined(SVQC)
+ #include "../util-pre.qh"
+ #include "../../server/sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../server/sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../constants.qh"
+ #include "../stats.qh"
+ #include "../teams.qh"
+ #include "../util.qh"
+ #include "../nades.qh"
+ #include "../buffs.qh"
+ #include "../test.qh"
+ #include "../counting.qh"
+ #include "../urllib.qh"
+ #include "../command/markup.qh"
+ #include "../command/rpn.qh"
+ #include "../command/generic.qh"
+ #include "../command/shared_defs.qh"
+ #include "../net_notice.qh"
+ #include "../animdecide.qh"
+ #include "../monsters/monsters.qh"
+ #include "../monsters/sv_monsters.qh"
+ #include "../monsters/spawn.qh"
+ #include "config.qh"
+#endif
+
#ifndef MENUQC
#include "calculations.qh"
#endif
#undef REGISTER_WEAPON
ACCUMULATE_FUNCTION(RegisterWeapons, register_weapons_done);
+#endif
\ No newline at end of file
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+ #if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "../common/util.qh"
+ #include "../common/animdecide.qh"
+ #include "interpolate.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "common.qh"
+ #include "cl_model.qh"
+ #include "cl_player.qh"
+ #elif defined(MENUQC)
+ #elif defined(SVQC)
+ #endif
float autocvar_cl_lerpanim_maxdelta_framegroups = 0.1;
float autocvar_cl_nolerp = 0;
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#ifndef CL_MODEL_H
+#define CL_MODEL_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../client/damage.qh"
+ #include "interpolate.qh"
+ #include "../client/teamradar.qh"
+ #include "../client/hud.qh"
+ #include "../client/scoreboard.qh"
+ #include "../client/waypointsprites.qh"
+ #include "../client/movetypes.qh"
+ #include "../client/prandom.qh"
+ #include "../client/bgmscript.qh"
+ #include "../client/noise.qh"
+ #include "../client/tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../client/main.qh"
+ #include "../client/vehicles/vehicles.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "common.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
void CSQCModel_Read(float isnew);
void CSQCModel_InterpolateAnimation_2To4_Do();
void CSQCModel_InterpolateAnimation_1To2_Do();
// will overwrite lerpfrac, lerpfrac3, lerpfrac4, and possibly clear frame*time if they are undisplayed according to lerpfracs
+#endif
\ No newline at end of file
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/util.qh"
+ #include "interpolate.qh"
+ #include "../client/main.qh"
+ #include "common.qh"
+ #include "cl_model.qh"
+ #include "cl_player.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
float autocvar_cl_movement_errorcompensation = 0;
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#ifndef CL_PLAYER_H
+#define CL_PLAYER_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../client/damage.qh"
+ #include "interpolate.qh"
+ #include "../client/teamradar.qh"
+ #include "../client/hud.qh"
+ #include "../client/scoreboard.qh"
+ #include "../client/waypointsprites.qh"
+ #include "../client/movetypes.qh"
+ #include "../client/prandom.qh"
+ #include "../client/bgmscript.qh"
+ #include "../client/noise.qh"
+ #include "../client/tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../client/main.qh"
+ #include "../client/vehicles/vehicles.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "common.qh"
+ #include "cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
entity csqcplayer;
float csqcplayer_status;
float CSQCPlayer_PreUpdate();
float CSQCPlayer_PostUpdate();
float CSQCPlayer_IsLocalPlayer();
+#endif
\ No newline at end of file
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#ifndef CSQCMODELLIB_COMMON_H
+#define CSQCMODELLIB_COMMON_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../client/damage.qh"
+ #include "interpolate.qh"
+ #include "../client/teamradar.qh"
+ #include "../client/hud.qh"
+ #include "../client/scoreboard.qh"
+ #include "../client/waypointsprites.qh"
+ #include "../client/movetypes.qh"
+ #include "../client/prandom.qh"
+ #include "../client/bgmscript.qh"
+ #include "../client/noise.qh"
+ #include "../client/tturrets.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../client/main.qh"
+ #include "../client/vehicles/vehicles.qh"
+ #include "../common/csqcmodel_settings.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../server/mutators/mutators_include.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../server/vehicles/vehicles_def.qh"
+ #include "../server/campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "../server/command/common.qh"
+ #include "../server/command/banning.qh"
+ #include "../server/command/radarmap.qh"
+ #include "../server/command/vote.qh"
+ #include "../server/command/getreplies.qh"
+ #include "../server/command/cmd.qh"
+ #include "../server/command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+#endif
noref string csqcmodel_license = "\
Copyright (c) 2011 Rudolf Polzer\
#else
#define ALLPROPERTIES ALLPROPERTIES_COMMON
#endif
+#endif
\ No newline at end of file
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/Defs.qc"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../client/autocvars.qh"
+ #include "interpolate.qh"
+ #include "cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
.vector iorigin1, iorigin2;
.vector ivelocity1, ivelocity2;
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#ifndef INTERPOLATE_H
+#define INTERPOLATE_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../client/damage.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
.int iflags;
const int IFLAG_VELOCITY = 1;
// in case we interpolate that:
.vector v_angle;
+#endif
\ No newline at end of file
* IN THE SOFTWARE.
*/
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/animdecide.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "common.qh"
+ #include "sv_model.qh"
+#endif
+
// generic CSQC model code
float CSQCModel_Send(entity to, float sf)
+#ifndef SV_MODEL_H
+#define SV_MODEL_H
/*
* Copyright (c) 2011 Rudolf Polzer
*
* IN THE SOFTWARE.
*/
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../server/weapons/accuracy.qh"
+ #include "../server/weapons/common.qh"
+ #include "../server/weapons/csqcprojectile.qh"
+ #include "../server/weapons/hitplot.qh"
+ #include "../server/weapons/selection.qh"
+ #include "../server/weapons/spawning.qh"
+ #include "../server/weapons/throwing.qh"
+ #include "../server/weapons/tracing.qh"
+ #include "../server/weapons/weaponstats.qh"
+ #include "../server/weapons/weaponsystem.qh"
+ #include "../server/t_items.qh"
+ #include "../server/autocvars.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../server/mutators/mutators_include.qh"
+ #include "../server/tturrets/include/turrets_early.qh"
+ #include "../server/vehicles/vehicles_def.qh"
+ #include "../server/campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "../server/command/common.qh"
+ #include "../server/command/banning.qh"
+ #include "../server/command/radarmap.qh"
+ #include "../server/command/vote.qh"
+ #include "../server/command/getreplies.qh"
+ #include "../server/command/cmd.qh"
+ #include "../server/command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "common.qh"
+#endif
+
// generic CSQC model code
void CSQCModel_CheckUpdate();
#undef CSQCMODEL_PROPERTY
#undef CSQCMODEL_ENDIF
#undef CSQCMODEL_IF
+#endif
\ No newline at end of file
+#ifndef CSPROGSDEFS_H
+#define CSPROGSDEFS_H
/*
==============================================================================
vector gettaginfo_right;
vector gettaginfo_up;
float checkpvs(vector viewpos, entity viewee) = #240;
+#endif
\ No newline at end of file
+#ifndef DPEXTENSIONS_H
+#define DPEXTENSIONS_H
//DarkPlaces supported extension list, draft version 1.04
//things that don't have extensions yet:
float(string url, float id, string content_type, string delim, float buf, float keyid) crypto_uri_postbuf = #513;
//description:
//use -1 as buffer handle to justs end delim as postdata
+#endif
\ No newline at end of file
+#ifndef KEYCODES_H
+#define KEYCODES_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
///////////////////////////
// key constants
float K_MOUSE14 = 527;
float K_MOUSE15 = 528;
float K_MOUSE16 = 529;
-
+#endif
\ No newline at end of file
+#ifndef MENUDEFS_H
+#define MENUDEFS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
//////////////////////////////////////////////////////////
// sys globals
const string cvar_string(string name) = #71;
const string cvar_defstring(string name) = #89;
float stringwidth(string text, float handleColors, vector size) = #468;
+#endif
\ No newline at end of file
+#ifndef PROGSDEFS_H
+#define PROGSDEFS_H
+
/*
==============================================================================
// for coop respawn
//============================================================================
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../common/util.qh"
+ #include "../oo/base.qh"
+ #include "menu_cmd.qh"
+ #include "../menu.qh"
+#elif defined(SVQC)
+#endif
+
string _dumptree_space;
void _dumptree_open(entity pass, entity me)
{
+#ifndef MENU_CMD_H
+#define MENU_CMD_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../sys-post.qh"
+ #include "../config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../common/util.qh"
+ #include "../../common/test.qh"
+ #include "../oo/base.qh"
+ #include "../../common/playerstats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/monsters/monsters.qh"
+#elif defined(SVQC)
+#endif
+
void GameCommand(string command);
+#endif
\ No newline at end of file
-// build config file
-#define MENUQC // so common/*.qc can check for menu QC or game QC
+#ifndef CONFIG_H
+#define CONFIG_H
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "sys-post.qh"
+#elif defined(SVQC)
+#endif
+
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
string draw_mousepointer;
vector draw_mousepointer_offset;
vector draw_mousepointer_size;
+#ifndef DRAW_H
+#define DRAW_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "sys-post.qh"
+ #include "config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/util.qh"
+ #include "../common/test.qh"
+ #include "oo/base.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/constants.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/counting.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "command/menu_cmd.qh"
+ #include "menu.qh"
+#elif defined(SVQC)
+#endif
+
// from the engine
vector drawfontscale;
#define draw_fontscale drawfontscale
float draw_TextWidth_WithColors(string s, vector size);
float draw_TextWidth_WithoutColors(string s, vector size);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
///////////////////////////////////////////////
// Menu Source File
///////////////////////
+#ifndef MENU_H
+#define MENU_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "sys-post.qh"
+ #include "config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/util.qh"
+ #include "../common/test.qh"
+ #include "oo/base.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/constants.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/counting.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "command/menu_cmd.qh"
+#elif defined(SVQC)
+#endif
+
#define localcmd cmd
#define NULL (null_entity)
void postMenuDraw(); // this is run just after the menu is drawn (or not). Useful to draw something over everything else.
void m_sync();
+#endif
\ No newline at end of file
+#ifndef BASE_H
+#define BASE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../sys-post.qh"
+ #include "../config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../common/util.qh"
+ #include "../../common/test.qh"
+#elif defined(SVQC)
+#endif
+
.string classname;
entity Object_vtbl;
.string vtblname;
Object_vtbl = spawnVtbl(e, null_entity);
return e;
}
+#endif
\ No newline at end of file
+#ifndef IMPLEMENTATION_H
+#define IMPLEMENTATION_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../sys-post.qh"
+ #include "../config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../common/util.qh"
+ #include "../../common/test.qh"
+ #include "base.qh"
+ #include "../../common/playerstats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../command/menu_cmd.qh"
+ #include "../menu.qh"
+ #include "../draw.qh"
+ #include "../skin.qh"
+ #include "../xonotic/util.qh"
+ #include "interface.qh"
+#elif defined(SVQC)
+#endif
+
#ifndef INTERFACE
#define INTERFACE
#endif
// for the implementation
#define SUPER(cname) (cname##_vtbl.vtblbase)
+#endif
\ No newline at end of file
+#ifndef INTERFACE_H
+#define INTERFACE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../sys-post.qh"
+ #include "../config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../common/util.qh"
+ #include "../../common/test.qh"
+ #include "base.qh"
+ #include "../../common/playerstats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../command/menu_cmd.qh"
+ #include "../menu.qh"
+ #include "../draw.qh"
+ #include "../skin.qh"
+ #include "../xonotic/util.qh"
+#elif defined(SVQC)
+#endif
+
#ifndef INTERFACE
#define INTERFACE
#endif
#define ATTRIBARRAY(cname,name,type,cnt) .type name[cnt];
#define ENDCLASS(cname) .float instanceOf##cname;
#define SUPER(cname)
+#endif
\ No newline at end of file
+#ifndef SKIN_H
+#define SKIN_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "sys-post.qh"
+ #include "config.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../common/util.qh"
+ #include "../common/test.qh"
+ #include "oo/base.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/constants.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/counting.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "command/menu_cmd.qh"
+ #include "menu.qh"
+ #include "draw.qh"
+#elif defined(SVQC)
+#endif
+
#define SKINBEGIN
#define SKINVECTOR(name,def) vector SKIN##name = def
#define SKINFLOAT(name,def) float SKIN##name = def
#undef SKINFLOAT
#undef SKINVECTOR
#undef SKINBEGIN
+#endif
\ No newline at end of file
+#ifndef SYS_POST_H
+#define SYS_POST_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+#elif defined(SVQC)
+#endif
+
#pragma noref 0
+#endif
\ No newline at end of file
+#ifndef SYS_PRE_H
+#define SYS_PRE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../common/util-pre.qh"
+#elif defined(SVQC)
+#endif
+
#pragma noref 1
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
float GL_CheckExtension(string ext)
{
return (strstrofs(strcat(" ", cvar_string("gl_info_extensions"), " "), strcat(" ", ext, " "), 0) >= 0);
+#ifndef MENU_UTIL_H
+#define MENU_UTIL_H
+#if defined(CSQC)
+#elif defined(MENUQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/menudefs.qc"
+ #include "../../dpdefs/keycodes.qc"
+ #include "../sys-post.qh"
+ #include "../config.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../common/util.qh"
+ #include "../../common/test.qh"
+ #include "../oo/base.qh"
+ #include "../../common/playerstats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../command/menu_cmd.qh"
+ #include "../menu.qh"
+ #include "../draw.qh"
+ #include "../skin.qh"
+#elif defined(SVQC)
+#endif
+
float GL_CheckExtension(string ext);
float GL_Have_TextureCompression();
float _Nex_ExtResponseSystem_RecommendedServersNeedsRefresh;
void CheckSendCvars(entity me, string cvarnamestring);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "command/common.qh"
+ #include "anticheat.qh"
+#endif
+
.float anticheat_jointime;
void mean_accumulate(entity e, .float a, .float c, float mean, float value, float weight)
+#ifndef ANTICHEAT_H
+#define ANTICHEAT_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+#endif
+
void anticheat_init();
void anticheat_report();
void anticheat_shutdown();
void anticheat_endframe();
void anticheat_fixangle();
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "vehicles/vehicles_def.qh"
+ #include "antilag.qh"
+#endif
+
const float ANTILAG_MAX_ORIGINS = 64;
.vector antilag_origins[ANTILAG_MAX_ORIGINS];
.float antilag_times[ANTILAG_MAX_ORIGINS];
+#ifndef ANTILAG_H
+#define ANTILAG_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "mapvoting.qh"
+ #include "ipban.qh"
+ #include "race.qh"
+#endif
+
void antilag_record(entity e, float t);
vector antilag_takebackorigin(entity e, float t);
vector antilag_takebackavgvelocity(entity e, float t0, float t1);
#define ANTILAG_LATENCY(e) min(0.4, e.ping * 0.001)
// add one ticrate?
+#endif
\ No newline at end of file
+#ifndef SERVER_AUTOCVARS_H
+#define SERVER_AUTOCVARS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+#endif
+
bool autocvar__notarget;
bool autocvar__independent_players;
bool autocvar__campaign_testrun;
float autocvar_g_buffs_invisible_alpha;
float autocvar_g_buffs_flight_gravity;
float autocvar_g_buffs_jump_height;
-
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../campaign.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+ #include "../antilag.qh"
+#endif
+
#include "bot.qh"
#include "aim.qh"
#include "navigation.qh"
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "cheats.qh"
+#endif
+
// campaign cvars:
// _campaign_index: index of CURRENT map
// _campaign_name: name of the current campaign
+#ifndef CAMPAIGN_H
+#define CAMPAIGN_H
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+#endif
+
// this must be included BEFORE campaign_common.h to make this a memory saving
#define CAMPAIGN_MAX_ENTRIES 2
float campaign_bots_may_start;
// campaign mode: bots shall spawn but wait for the player to spawn before they do anything
// in other game modes, this is ignored
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/tracing.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "cheats.qh"
+#endif
+
void CopyBody(float keepvelocity);
#ifdef NOCHEATS
+#ifndef CHEATS_H
+#define CHEATS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+#endif
+
//float autocvar_sv_cheats; // must... declare... global
float cheatcount_total;
float CheatFrame();
void Drag_MoveDrag(entity from, entity to); // call this from CopyBody
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/vote.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "ipban.qh"
+ #include "race.qh"
+ #include "antilag.qh"
+ #include "playerdemo.qh"
+#endif
+
void send_CSQC_teamnagger() {
WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);
WriteByte(MSG_BROADCAST, TE_CSQC_TEAMNAGGER);
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "mutators/mutators_include.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "command/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "cheats.qh"
+ #include "round_handler.qh"
+#endif
+
/*
* Impulse map:
*
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../common/mapinfo.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "g_hook.qh"
+ #include "race.qh"
+ #include "playerdemo.qh"
+#endif
+
.float race_penalty;
.float restart_jump;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+#endif
+
.entity pusher;
.float pushltime;
.float istypefrag;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../common/util.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../autocvars.qh"
+ #include "common.qh"
+ #include "banning.qh"
+ #include "../ipban.qh"
+#endif
// =====================================================
// Banning and kicking command code, written by Samual
// Last updated: December 29th, 2011
+#ifndef BANNING_H
+#define BANNING_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+#endif
+
// ====================================
// Declarations for kick/ban commands
// Last updated: December 29th, 2011
// used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
void BanCommand_macro_write_aliases(float fh);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../warpzonelib/common.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+ #include "vote.qh"
+ #include "cmd.qh"
+ #include "../cheats.qh"
+ #include "../scores.qh"
+ #include "../ipban.qh"
+#endif
+
// =========================================================
// Server side networked commands code, reworked by Samual
// Last updated: December 28th, 2011
+#ifndef CMD_H
+#define CMD_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+ #include "banning.qh"
+ #include "radarmap.qh"
+ #include "vote.qh"
+ #include "getreplies.qh"
+#endif
+
// =================================================
// Declarations for server side networked commands
// Last updated: December 26th, 2011
// used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
void ClientCommand_macro_write_aliases(float fh);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../common/util.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "common.qh"
+ #include "vote.qh"
+ #include "../scores.qh"
+#endif
+
// ====================================================
// Shared code for server commands, written by Samual
// Last updated: December 27th, 2011
+#ifndef COMMAND_COMMON_H
+#define COMMAND_COMMON_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+#endif
+
// ============================================================
// Shared declarations for server commands, written by Samual
// Last updated: December 30th, 2011
void CommonCommand_macro_write_aliases(float fh);
// keep track of the next token to use for argc
-float next_token;
\ No newline at end of file
+float next_token;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../defs.qh"
+ #include "../../common/mapinfo.qh"
+ #include "getreplies.qh"
+ #include "../race.qh"
+#endif
+
// =========================================================
// Reply messages for common commands, re-worked by Samual
// Last updated: December 30th, 2011
+#ifndef GETREPLIES_H
+#define GETREPLIES_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../defs.qh"
+ #include "../../common/mapinfo.qh"
+ #include "getreplies.qh"
+ #include "../race.qh"
+#endif
+
// ======================================================
// Declarations for reply messages, re-worked by Samual
// Last updated: December 30th, 2011
string getmaplist(void);
string getlsmaps(void);
string getmonsterlist(void);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../common/util.qh"
+ #include "../defs.qh"
+ #include "radarmap.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+#endif
+
// ===============================================
// Generates radar map images for use in the HUD
// ===============================================
+#ifndef RADARMAP_H
+#define RADARMAP_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+ #include "banning.qh"
+#endif
+
// ===========================================
// Declarations for radarmap generation code
// ===========================================
string doublehex = "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F404142434445464748494A4B4C4D4E4F505152535455565758595A5B5C5D5E5F606162636465666768696A6B6C6D6E6F707172737475767778797A7B7C7D7E7F808182838485868788898A8B8C8D8E8F909192939495969798999A9B9C9D9E9FA0A1A2A3A4A5A6A7A8A9AAABACADAEAFB0B1B2B3B4B5B6B7B8B9BABBBCBDBEBFC0C1C2C3C4C5C6C7C8C9CACBCCCDCECFD0D1D2D3D4D5D6D7D8D9DADBDCDDDEDFE0E1E2E3E4E5E6E7E8E9EAEBECEDEEEFF0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFFFF";
// FF is contained twice, to map 256 to FF too
// removes the need to bound()
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+ #include "cmd.qh"
+ #include "sv_cmd.qh"
+ #include "../anticheat.qh"
+ #include "../playerdemo.qh"
+#endif
+
// =====================================================
// Server side game commands code, reworked by Samual
// Last updated: December 29th, 2011
+#ifndef SV_CMD_H
+#define SV_CMD_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+ #include "banning.qh"
+ #include "radarmap.qh"
+ #include "vote.qh"
+ #include "getreplies.qh"
+ #include "cmd.qh"
+#endif
+
// =================================================
// Declarations for server side game commands
// Last updated: December 25th, 2011
float shuffleteams_teams[SHUFFLETEAMS_MAX_TEAMS]; // maximum of 4 teams
// used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file
-void GameCommand_macro_write_aliases(float fh);
\ No newline at end of file
+void GameCommand_macro_write_aliases(float fh);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+ #include "vote.qh"
+ #include "../../common/playerstats.qh"
+ #include "../scores.qh"
+ #include "../race.qh"
+ #include "../round_handler.qh"
+#endif
+
// =============================================
// Server side voting code, reworked by Samual
// Last updated: December 27th, 2011
+#ifndef VOTE_H
+#define VOTE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../../common/mapinfo.qh"
+ #include "common.qh"
+ #include "vote.qh"
+ #include "../../common/playerstats.qh"
+ #include "../scores.qh"
+ #include "../race.qh"
+ #include "../round_handler.qh"
+#endif
+
// ================================================
// Declarations for the vote system/vote commands
// Last updated: December 14th, 2011
float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed
.float ready; // flag for if a player is ready
void reset_map(float dorespawn);
-void ReadyCount();
\ No newline at end of file
+void ReadyCount();
+#endif
\ No newline at end of file
+#ifndef SERVER_CONSTANTS_H
+#define SERVER_CONSTANTS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+#endif
+
const float FL_WEAPON = 8192;
const float FL_POWERUP = 16384;
const float FL_PROJECTILE = 32768;
const float ASSAULT_VALUE_INACTIVE = 1000;
const float DOOR_NOSPLASH = 256; // generic anti-splashdamage spawnflag
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../common/constants.qh"
+#endif
+
void te_csqc_lightningarc(vector from,vector to)
{
WriteByte(MSG_BROADCAST, SVC_TEMPENTITY);
+#ifndef SERVER_DEFS_H
+#define SERVER_DEFS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+#endif
+
#define INDEPENDENT_ATTACK_FINISHED
noref float require_spawnfunc_prefix; // if this float exists, only functions with spawnfunc_ name prefix qualify as spawn functions
.string playernick;
.float elos;
.float ranks;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "mutators/mutators_include.qh"
+#endif
+
/**
* The point of these entities is to avoid the problems
* with clientprediction.
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../csqcmodellib/sv_model.qh"
+#endif
+
.entity sprite;
.float dmg;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+#endif
+
float Casing_SendEntity(entity to, float sf)
{
WriteByte(MSG_ENTITY, ENT_CLIENT_CASING);
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/selection.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "../common/playerstats.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+#endif
+
.float dmg;
.float dmg_edge;
.float dmg_force;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "command/common.qh"
+ #include "g_hook.qh"
+ #include "round_handler.qh"
+#endif
+
/*============================================
Wazat's Xonotic Grappling Hook
+#ifndef HOOK_H
+#define HOOK_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "command/common.qh"
+ #include "g_hook.qh"
+ #include "round_handler.qh"
+#endif
+
// Wazat's grappling hook
.entity hook;
void GrapplingHookFrame();
void GrappleHookInit();
vector hook_shotorigin[4];
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../csqcmodellib/sv_model.qh"
+#endif
+
.float modelscale;
void g_model_setcolormaptoactivator (void)
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/common.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "command/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "antilag.qh"
+#endif
+
void SUB_NullThink(void) { }
void() SUB_CalcMoveDone;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "autocvars.qh"
+#endif
+
/*
Installation:
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../common/mapinfo.qh"
+#endif
+
void SUB_DontUseTargets()
{
}
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/mapinfo.qh"
+#endif
+
float Violence_GibSplash_SendEntity(entity to, float sf)
{
WriteByte(MSG_ENTITY, ENT_CLIENT_GIBSPLASH);
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/weaponstats.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "mutators/mutators_include.qh"
+ #include "campaign.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/sv_cmd.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "mapvoting.qh"
+ #include "ipban.qh"
+ #include "race.qh"
+ #include "antilag.qh"
+ #include "secret.qh"
+#endif
+
const float LATENCY_THINKRATE = 10;
.float latency_sum;
.float latency_cnt;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "command/banning.qh"
+ #include "ipban.qh"
+#endif
+
/*
* Protocol of online ban list:
*
+#ifndef IPBAN_H
+#define IPBAN_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "mapvoting.qh"
+#endif
+
void Ban_SaveBans();
void Ban_LoadBans();
float Ban_MaybeEnforceBan(entity client);
float BanCommand(string command);
void OnlineBanList_URI_Get_Callback(float id, float status, string data);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/util.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "item_key.qh"
+#endif
+
/*
TODO:
- add an unlock sound (here to trigger_keylock and to func_door)
+#ifndef ITEM_KEY
+#define ITEM_KEY
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "mapvoting.qh"
+ #include "ipban.qh"
+ #include "race.qh"
+ #include "antilag.qh"
+ #include "playerdemo.qh"
+ #include "round_handler.qh"
+#endif
+
/**
* Returns the bit ID of a key
*/
* Returns a string with a comma separated list of key names, as specified in keylist.
*/
string item_keys_keylist(float keylist);
-
+#endif
\ No newline at end of file
-float GameTypeVote_AvailabilityStatus(string gtname)
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "../common/playerstats.qh"
+ #include "mapvoting.qh"
+#endif
+
+float GameTypeVote_AvailabilityStatus(string gtname)
{
float type = MapInfo_Type_FromString(gtname);
if( type == 0 )
+#ifndef MAPVOTING_H
+#define MAPVOTING_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+#endif
+
// definitions for functions used outside mapvoting.qc
void MapVote_Start();
void MapVote_Spawn();
.float mapvote;
entity mapvote_ent;
+#endif
\ No newline at end of file
-var void remove(entity e);
-void objerror(string s);
-void droptofloor();
-.vector dropped_origin;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "miscfunctions.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/playerstats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/selection.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "ipban.qh"
+#endif
-void traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
void crosshair_trace(entity pl)
{
traceline_antilag(pl, pl.cursor_trace_start, pl.cursor_trace_start + normalize(pl.cursor_trace_endpos - pl.cursor_trace_start) * MAX_SHOT_DISTANCE, MOVE_NORMAL, pl, ANTILAG_LATENCY(pl));
for (e = first; e; e = e.chain)
e.solid = SOLID_TRIGGER;
}
-void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
void WarpZone_crosshair_trace(entity pl)
{
WarpZone_traceline_antilag(pl, pl.cursor_trace_start, pl.cursor_trace_start + normalize(pl.cursor_trace_endpos - pl.cursor_trace_start) * MAX_SHOT_DISTANCE, MOVE_NORMAL, pl, ANTILAG_LATENCY(pl));
}
-void() spawnfunc_info_player_deathmatch; // needed for the other spawnpoints
-void() spawnpoint_use;
-string GetMapname();
string admin_name(void)
{
return "SERVER ADMIN";
}
-float DistributeEvenly_amount;
-float DistributeEvenly_totalweight;
void DistributeEvenly_Init(float amount, float totalweight)
{
if (DistributeEvenly_amount)
return f;
}
-#define move_out_of_solid(e) WarpZoneLib_MoveOutOfSolid(e)
-
-const string STR_PLAYER = "player";
-const string STR_SPECTATOR = "spectator";
-const string STR_OBSERVER = "observer";
-
-#define IS_PLAYER(v) (v.classname == STR_PLAYER)
-#define IS_SPEC(v) (v.classname == STR_SPECTATOR)
-#define IS_OBSERVER(v) (v.classname == STR_OBSERVER)
-#define IS_CLIENT(v) (v.flags & FL_CLIENT)
-#define IS_BOT_CLIENT(v) (clienttype(v) == CLIENTTYPE_BOT)
-#define IS_REAL_CLIENT(v) (clienttype(v) == CLIENTTYPE_REAL)
-#define IS_NOT_A_CLIENT(v) (clienttype(v) == CLIENTTYPE_NOTACLIENT)
-
-#define FOR_EACH_CLIENTSLOT(v) for(v = world; (v = nextent(v)) && (num_for_edict(v) <= maxclients); )
-#define FOR_EACH_CLIENT(v) FOR_EACH_CLIENTSLOT(v) if(IS_CLIENT(v))
-#define FOR_EACH_REALCLIENT(v) FOR_EACH_CLIENT(v) if(IS_REAL_CLIENT(v))
-
-#define FOR_EACH_PLAYER(v) FOR_EACH_CLIENT(v) if(IS_PLAYER(v))
-#define FOR_EACH_SPEC(v) FOR_EACH_CLIENT(v) if (!IS_PLAYER(v)) // Samual: shouldn't this be IS_SPEC(v)? and rather create a separate macro to include observers too
-#define FOR_EACH_REALPLAYER(v) FOR_EACH_REALCLIENT(v) if(IS_PLAYER(v))
-
-#define FOR_EACH_MONSTER(v) for(v = world; (v = findflags(v, flags, FL_MONSTER)) != world; )
-
-#define CENTER_OR_VIEWOFS(ent) (ent.origin + (IS_PLAYER(ent) ? ent.view_ofs : ((ent.mins + ent.maxs) * 0.5)))
-
-// copies a string to a tempstring (so one can strunzone it)
-string strcat1(string s) = #115; // FRIK_FILE
-
-float logfile_open;
-float logfile;
void GameLogEcho(string s)
{
}
}
-#define strstr strstrofs
-/*
-// NOTE: DO NOT USE THIS FUNCTION TOO OFTEN.
-// IT WILL MOST PROBABLY DESTROY _ALL_ OTHER TEMP
-// STRINGS AND TAKE QUITE LONG. haystack and needle MUST
-// BE CONSTANT OR strzoneD!
-float strstr(string haystack, string needle, float offset)
-{
- float len, endpos;
- string found;
- len = strlen(needle);
- endpos = strlen(haystack) - len;
- while(offset <= endpos)
- {
- found = substring(haystack, offset, len);
- if(found == needle)
- return offset;
- offset = offset + 1;
- }
- return -1;
-}
-*/
-
-const float NUM_NEAREST_ENTITIES = 4;
-entity nearest_entity[NUM_NEAREST_ENTITIES];
-float nearest_length[NUM_NEAREST_ENTITIES];
entity findnearest(vector point, .string field, string value, vector axismod)
{
entity localhead;
return v;
}
-//#NO AUTOCVARS START
-
-float g_pickup_shells;
-float g_pickup_shells_max;
-float g_pickup_nails;
-float g_pickup_nails_max;
-float g_pickup_rockets;
-float g_pickup_rockets_max;
-float g_pickup_cells;
-float g_pickup_cells_max;
-float g_pickup_plasma;
-float g_pickup_plasma_max;
-float g_pickup_fuel;
-float g_pickup_fuel_jetpack;
-float g_pickup_fuel_max;
-float g_pickup_armorsmall;
-float g_pickup_armorsmall_max;
-float g_pickup_armorsmall_anyway;
-float g_pickup_armormedium;
-float g_pickup_armormedium_max;
-float g_pickup_armormedium_anyway;
-float g_pickup_armorbig;
-float g_pickup_armorbig_max;
-float g_pickup_armorbig_anyway;
-float g_pickup_armorlarge;
-float g_pickup_armorlarge_max;
-float g_pickup_armorlarge_anyway;
-float g_pickup_healthsmall;
-float g_pickup_healthsmall_max;
-float g_pickup_healthsmall_anyway;
-float g_pickup_healthmedium;
-float g_pickup_healthmedium_max;
-float g_pickup_healthmedium_anyway;
-float g_pickup_healthlarge;
-float g_pickup_healthlarge_max;
-float g_pickup_healthlarge_anyway;
-float g_pickup_healthmega;
-float g_pickup_healthmega_max;
-float g_pickup_healthmega_anyway;
-float g_pickup_ammo_anyway;
-float g_pickup_weapons_anyway;
-float g_weaponarena;
-WepSet g_weaponarena_weapons;
-float g_weaponarena_random;
-float g_weaponarena_random_with_blaster;
-string g_weaponarena_list;
-float g_weaponspeedfactor;
-float g_weaponratefactor;
-float g_weapondamagefactor;
-float g_weaponforcefactor;
-float g_weaponspreadfactor;
-
-WepSet start_weapons;
-WepSet start_weapons_default;
-WepSet start_weapons_defaultmask;
-float start_items;
-float start_ammo_shells;
-float start_ammo_nails;
-float start_ammo_rockets;
-float start_ammo_cells;
-float start_ammo_plasma;
-float start_ammo_fuel;
-float start_health;
-float start_armorvalue;
-WepSet warmup_start_weapons;
-WepSet warmup_start_weapons_default;
-WepSet warmup_start_weapons_defaultmask;
-#define WARMUP_START_WEAPONS ((g_warmup_allguns == 1) ? (warmup_start_weapons & (weaponsInMap | start_weapons)) : warmup_start_weapons)
-float warmup_start_ammo_shells;
-float warmup_start_ammo_nails;
-float warmup_start_ammo_rockets;
-float warmup_start_ammo_cells;
-float warmup_start_ammo_plasma;
-float warmup_start_ammo_fuel;
-float warmup_start_health;
-float warmup_start_armorvalue;
-float g_weapon_stay;
-
-float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still needs done?
-{
- float i = weaponinfo.weapon;
- float d = 0;
-
- if (!i)
- return 0;
-
- if (g_lms || g_ca || allguns)
- {
- if(weaponinfo.spawnflags & WEP_FLAG_NORMAL)
- d = true;
- else
- d = false;
- }
- else if (g_cts)
- d = (i == WEP_SHOTGUN);
- else if (g_nexball)
- d = 0; // weapon is set a few lines later
- else
- d = !(!weaponinfo.weaponstart);
-
- if(g_grappling_hook) // if possible, redirect off-hand hook to on-hand hook
- d |= (i == WEP_HOOK);
- if(!g_cts && (weaponinfo.spawnflags & WEP_FLAG_MUTATORBLOCKED)) // never default mutator blocked guns
- d = 0;
-
- float t = weaponinfo.weaponstartoverride;
-
- //print(strcat("want_weapon: ", weaponinfo.netname, " - d: ", ftos(d), ", t: ", ftos(t), ". \n"));
-
- // bit order in t:
- // 1: want or not
- // 2: is default?
- // 4: is set by default?
- if(t < 0)
- t = 4 | (3 * d);
- else
- t |= (2 * d);
-
- return t;
-}
-
-void readplayerstartcvars()
-{
- entity e;
- float i, j, t;
- string s;
-
- // initialize starting values for players
- start_weapons = '0 0 0';
- start_weapons_default = '0 0 0';
- start_weapons_defaultmask = '0 0 0';
- start_items = 0;
- start_ammo_shells = 0;
- start_ammo_nails = 0;
- start_ammo_rockets = 0;
- start_ammo_cells = 0;
- start_ammo_plasma = 0;
- start_health = cvar("g_balance_health_start");
- start_armorvalue = cvar("g_balance_armor_start");
-
- g_weaponarena = 0;
- g_weaponarena_weapons = '0 0 0';
-
- s = cvar_string("g_weaponarena");
- if (s == "0" || s == "")
- {
- if(g_ca)
- s = "most";
- }
-
- if (s == "0" || s == "")
- {
- // no arena
- }
- else if (s == "off")
- {
- // forcibly turn off weaponarena
- }
- else if (s == "all" || s == "1")
- {
- g_weaponarena = 1;
- g_weaponarena_list = "All Weapons";
- for (j = WEP_FIRST; j <= WEP_LAST; ++j)
- {
- e = get_weaponinfo(j);
- if (!(e.spawnflags & WEP_FLAG_MUTATORBLOCKED))
- g_weaponarena_weapons |= WepSet_FromWeapon(j);
- }
- }
- else if (s == "most")
- {
- g_weaponarena = 1;
- g_weaponarena_list = "Most Weapons";
- for (j = WEP_FIRST; j <= WEP_LAST; ++j)
- {
- e = get_weaponinfo(j);
- if (!(e.spawnflags & WEP_FLAG_MUTATORBLOCKED))
- if (e.spawnflags & WEP_FLAG_NORMAL)
- g_weaponarena_weapons |= WepSet_FromWeapon(j);
- }
- }
- else if (s == "none")
- {
- g_weaponarena = 1;
- g_weaponarena_list = "No Weapons";
- }
- else
- {
- g_weaponarena = 1;
- t = tokenize_console(s);
- g_weaponarena_list = "";
- for (i = 0; i < t; ++i)
- {
- s = argv(i);
- for (j = WEP_FIRST; j <= WEP_LAST; ++j)
- {
- e = get_weaponinfo(j);
- if (e.netname == s)
- {
- g_weaponarena_weapons |= WepSet_FromWeapon(j);
- g_weaponarena_list = strcat(g_weaponarena_list, e.message, " & ");
- break;
- }
- }
- if (j > WEP_LAST)
- {
- print("The weapon mutator list contains an unknown weapon ", s, ". Skipped.\n");
- }
- }
- g_weaponarena_list = strzone(substring(g_weaponarena_list, 0, strlen(g_weaponarena_list) - 3));
- }
-
- if(g_weaponarena)
- g_weaponarena_random = cvar("g_weaponarena_random");
- else
- g_weaponarena_random = 0;
- g_weaponarena_random_with_blaster = cvar("g_weaponarena_random_with_blaster");
-
- if (g_weaponarena)
- {
- g_weapon_stay = 0; // incompatible
- start_weapons = g_weaponarena_weapons;
- start_items |= IT_UNLIMITED_AMMO;
- }
- else
- {
- for (i = WEP_FIRST; i <= WEP_LAST; ++i)
- {
- e = get_weaponinfo(i);
- float w = want_weapon(e, false);
- if(w & 1)
- start_weapons |= WepSet_FromWeapon(i);
- if(w & 2)
- start_weapons_default |= WepSet_FromWeapon(i);
- if(w & 4)
- start_weapons_defaultmask |= WepSet_FromWeapon(i);
- }
- }
-
- if(!cvar("g_use_ammunition"))
- start_items |= IT_UNLIMITED_AMMO;
- if(start_items & IT_UNLIMITED_WEAPON_AMMO)
- {
- start_ammo_shells = 999;
- start_ammo_nails = 999;
- start_ammo_rockets = 999;
- start_ammo_cells = 999;
- start_ammo_plasma = 999;
- start_ammo_fuel = 999;
- }
- else
- {
- start_ammo_shells = cvar("g_start_ammo_shells");
- start_ammo_nails = cvar("g_start_ammo_nails");
- start_ammo_rockets = cvar("g_start_ammo_rockets");
- start_ammo_cells = cvar("g_start_ammo_cells");
- start_ammo_plasma = cvar("g_start_ammo_plasma");
- start_ammo_fuel = cvar("g_start_ammo_fuel");
- }
-
- if (warmup_stage)
- {
- warmup_start_ammo_shells = start_ammo_shells;
- warmup_start_ammo_nails = start_ammo_nails;
- warmup_start_ammo_rockets = start_ammo_rockets;
- warmup_start_ammo_cells = start_ammo_cells;
- warmup_start_ammo_plasma = start_ammo_plasma;
- warmup_start_ammo_fuel = start_ammo_fuel;
- warmup_start_health = start_health;
- warmup_start_armorvalue = start_armorvalue;
- warmup_start_weapons = start_weapons;
- warmup_start_weapons_default = start_weapons_default;
- warmup_start_weapons_defaultmask = start_weapons_defaultmask;
-
- if (!g_weaponarena && !g_ca)
- {
- warmup_start_ammo_shells = cvar("g_warmup_start_ammo_shells");
- warmup_start_ammo_nails = cvar("g_warmup_start_ammo_nails");
- warmup_start_ammo_rockets = cvar("g_warmup_start_ammo_rockets");
- warmup_start_ammo_cells = cvar("g_warmup_start_ammo_cells");
- warmup_start_ammo_plasma = cvar("g_warmup_start_ammo_plasma");
- warmup_start_ammo_fuel = cvar("g_warmup_start_ammo_fuel");
- warmup_start_health = cvar("g_warmup_start_health");
- warmup_start_armorvalue = cvar("g_warmup_start_armor");
- warmup_start_weapons = '0 0 0';
- warmup_start_weapons_default = '0 0 0';
- warmup_start_weapons_defaultmask = '0 0 0';
- for (i = WEP_FIRST; i <= WEP_LAST; ++i)
- {
- e = get_weaponinfo(i);
- float w = want_weapon(e, g_warmup_allguns);
- if(w & 1)
- warmup_start_weapons |= WepSet_FromWeapon(i);
- if(w & 2)
- warmup_start_weapons_default |= WepSet_FromWeapon(i);
- if(w & 4)
- warmup_start_weapons_defaultmask |= WepSet_FromWeapon(i);
- }
- }
- }
-
- if (g_jetpack)
- start_items |= IT_JETPACK;
-
- MUTATOR_CALLHOOK(SetStartItems);
-
- if ((start_items & IT_JETPACK) || (g_grappling_hook && (start_weapons & WEPSET_HOOK)))
- {
- start_items |= IT_FUEL_REGEN;
- start_ammo_fuel = max(start_ammo_fuel, cvar("g_balance_fuel_rotstable"));
- warmup_start_ammo_fuel = max(warmup_start_ammo_fuel, cvar("g_balance_fuel_rotstable"));
- }
-
- WepSet precache_weapons = start_weapons;
- if (g_warmup_allguns != 1)
- precache_weapons |= warmup_start_weapons;
- for (i = WEP_FIRST; i <= WEP_LAST; ++i)
- {
- e = get_weaponinfo(i);
- if(precache_weapons & WepSet_FromWeapon(i))
- WEP_ACTION(i, WR_INIT);
- }
-
- start_ammo_shells = max(0, start_ammo_shells);
- start_ammo_nails = max(0, start_ammo_nails);
- start_ammo_rockets = max(0, start_ammo_rockets);
- start_ammo_cells = max(0, start_ammo_cells);
- start_ammo_plasma = max(0, start_ammo_plasma);
- start_ammo_fuel = max(0, start_ammo_fuel);
-
- warmup_start_ammo_shells = max(0, warmup_start_ammo_shells);
- warmup_start_ammo_nails = max(0, warmup_start_ammo_nails);
- warmup_start_ammo_rockets = max(0, warmup_start_ammo_rockets);
- warmup_start_ammo_cells = max(0, warmup_start_ammo_cells);
- warmup_start_ammo_plasma = max(0, warmup_start_ammo_plasma);
- warmup_start_ammo_fuel = max(0, warmup_start_ammo_fuel);
-}
-
-float g_bugrigs;
-float g_bugrigs_planar_movement;
-float g_bugrigs_planar_movement_car_jumping;
-float g_bugrigs_reverse_spinning;
-float g_bugrigs_reverse_speeding;
-float g_bugrigs_reverse_stopping;
-float g_bugrigs_air_steering;
-float g_bugrigs_angle_smoothing;
-float g_bugrigs_friction_floor;
-float g_bugrigs_friction_brake;
-float g_bugrigs_friction_air;
-float g_bugrigs_accel;
-float g_bugrigs_speed_ref;
-float g_bugrigs_speed_pow;
-float g_bugrigs_steer;
-
-float sv_autotaunt;
-float sv_taunt;
-
-string GetGametype(); // g_world.qc
-void mutators_add(); // mutators.qc
-void readlevelcvars(void)
-{
- // load mutators
- mutators_add();
-
- if(cvar("sv_allow_fullbright"))
- serverflags |= SERVERFLAG_ALLOW_FULLBRIGHT;
-
- g_bugrigs = cvar("g_bugrigs");
- g_bugrigs_planar_movement = cvar("g_bugrigs_planar_movement");
- g_bugrigs_planar_movement_car_jumping = cvar("g_bugrigs_planar_movement_car_jumping");
- g_bugrigs_reverse_spinning = cvar("g_bugrigs_reverse_spinning");
- g_bugrigs_reverse_speeding = cvar("g_bugrigs_reverse_speeding");
- g_bugrigs_reverse_stopping = cvar("g_bugrigs_reverse_stopping");
- g_bugrigs_air_steering = cvar("g_bugrigs_air_steering");
- g_bugrigs_angle_smoothing = cvar("g_bugrigs_angle_smoothing");
- g_bugrigs_friction_floor = cvar("g_bugrigs_friction_floor");
- g_bugrigs_friction_brake = cvar("g_bugrigs_friction_brake");
- g_bugrigs_friction_air = cvar("g_bugrigs_friction_air");
- g_bugrigs_accel = cvar("g_bugrigs_accel");
- g_bugrigs_speed_ref = cvar("g_bugrigs_speed_ref");
- g_bugrigs_speed_pow = cvar("g_bugrigs_speed_pow");
- g_bugrigs_steer = cvar("g_bugrigs_steer");
-
- g_instagib = cvar("g_instagib");
-
- sv_clones = cvar("sv_clones");
- sv_foginterval = cvar("sv_foginterval");
- g_cloaked = cvar("g_cloaked");
- g_footsteps = cvar("g_footsteps");
- g_grappling_hook = cvar("g_grappling_hook");
- g_jetpack = cvar("g_jetpack");
- sv_maxidle = cvar("sv_maxidle");
- sv_maxidle_spectatorsareidle = cvar("sv_maxidle_spectatorsareidle");
- sv_autotaunt = cvar("sv_autotaunt");
- sv_taunt = cvar("sv_taunt");
-
- warmup_stage = cvar("g_warmup");
- g_warmup_limit = cvar("g_warmup_limit");
- g_warmup_allguns = cvar("g_warmup_allguns");
- g_warmup_allow_timeout = cvar("g_warmup_allow_timeout");
-
- if ((g_race && g_race_qualifying == 2) || g_assault || cvar("g_campaign"))
- warmup_stage = 0; // these modes cannot work together, sorry
-
- g_pickup_respawntime_weapon = cvar("g_pickup_respawntime_weapon");
- g_pickup_respawntime_superweapon = cvar("g_pickup_respawntime_superweapon");
- g_pickup_respawntime_ammo = cvar("g_pickup_respawntime_ammo");
- g_pickup_respawntime_short = cvar("g_pickup_respawntime_short");
- g_pickup_respawntime_medium = cvar("g_pickup_respawntime_medium");
- g_pickup_respawntime_long = cvar("g_pickup_respawntime_long");
- g_pickup_respawntime_powerup = cvar("g_pickup_respawntime_powerup");
- g_pickup_respawntimejitter_weapon = cvar("g_pickup_respawntimejitter_weapon");
- g_pickup_respawntimejitter_superweapon = cvar("g_pickup_respawntimejitter_superweapon");
- g_pickup_respawntimejitter_ammo = cvar("g_pickup_respawntimejitter_ammo");
- g_pickup_respawntimejitter_short = cvar("g_pickup_respawntimejitter_short");
- g_pickup_respawntimejitter_medium = cvar("g_pickup_respawntimejitter_medium");
- g_pickup_respawntimejitter_long = cvar("g_pickup_respawntimejitter_long");
- g_pickup_respawntimejitter_powerup = cvar("g_pickup_respawntimejitter_powerup");
-
- g_weaponspeedfactor = cvar("g_weaponspeedfactor");
- g_weaponratefactor = cvar("g_weaponratefactor");
- g_weapondamagefactor = cvar("g_weapondamagefactor");
- g_weaponforcefactor = cvar("g_weaponforcefactor");
- g_weaponspreadfactor = cvar("g_weaponspreadfactor");
-
- g_pickup_shells = cvar("g_pickup_shells");
- g_pickup_shells_max = cvar("g_pickup_shells_max");
- g_pickup_nails = cvar("g_pickup_nails");
- g_pickup_nails_max = cvar("g_pickup_nails_max");
- g_pickup_rockets = cvar("g_pickup_rockets");
- g_pickup_rockets_max = cvar("g_pickup_rockets_max");
- g_pickup_cells = cvar("g_pickup_cells");
- g_pickup_cells_max = cvar("g_pickup_cells_max");
- g_pickup_plasma = cvar("g_pickup_plasma");
- g_pickup_plasma_max = cvar("g_pickup_plasma_max");
- g_pickup_fuel = cvar("g_pickup_fuel");
- g_pickup_fuel_jetpack = cvar("g_pickup_fuel_jetpack");
- g_pickup_fuel_max = cvar("g_pickup_fuel_max");
- g_pickup_armorsmall = cvar("g_pickup_armorsmall");
- g_pickup_armorsmall_max = cvar("g_pickup_armorsmall_max");
- g_pickup_armorsmall_anyway = cvar("g_pickup_armorsmall_anyway");
- g_pickup_armormedium = cvar("g_pickup_armormedium");
- g_pickup_armormedium_max = cvar("g_pickup_armormedium_max");
- g_pickup_armormedium_anyway = cvar("g_pickup_armormedium_anyway");
- g_pickup_armorbig = cvar("g_pickup_armorbig");
- g_pickup_armorbig_max = cvar("g_pickup_armorbig_max");
- g_pickup_armorbig_anyway = cvar("g_pickup_armorbig_anyway");
- g_pickup_armorlarge = cvar("g_pickup_armorlarge");
- g_pickup_armorlarge_max = cvar("g_pickup_armorlarge_max");
- g_pickup_armorlarge_anyway = cvar("g_pickup_armorlarge_anyway");
- g_pickup_healthsmall = cvar("g_pickup_healthsmall");
- g_pickup_healthsmall_max = cvar("g_pickup_healthsmall_max");
- g_pickup_healthsmall_anyway = cvar("g_pickup_healthsmall_anyway");
- g_pickup_healthmedium = cvar("g_pickup_healthmedium");
- g_pickup_healthmedium_max = cvar("g_pickup_healthmedium_max");
- g_pickup_healthmedium_anyway = cvar("g_pickup_healthmedium_anyway");
- g_pickup_healthlarge = cvar("g_pickup_healthlarge");
- g_pickup_healthlarge_max = cvar("g_pickup_healthlarge_max");
- g_pickup_healthlarge_anyway = cvar("g_pickup_healthlarge_anyway");
- g_pickup_healthmega = cvar("g_pickup_healthmega");
- g_pickup_healthmega_max = cvar("g_pickup_healthmega_max");
- g_pickup_healthmega_anyway = cvar("g_pickup_healthmega_anyway");
-
- g_pickup_ammo_anyway = cvar("g_pickup_ammo_anyway");
- g_pickup_weapons_anyway = cvar("g_pickup_weapons_anyway");
-
- g_weapon_stay = cvar(strcat("g_", GetGametype(), "_weapon_stay"));
- if(!g_weapon_stay)
- g_weapon_stay = cvar("g_weapon_stay");
-
- if (!warmup_stage)
- game_starttime = time + cvar("g_start_delay");
-
- readplayerstartcvars();
-}
-
-//#NO AUTOCVARS END
-
-// Sound functions
-//string precache_sound (string s) = #19;
-// hack
-float precache_sound_index (string s) = #19;
-
-const float SND_VOLUME = 1;
-const float SND_ATTENUATION = 2;
-const float SND_LARGEENTITY = 8;
-const float SND_LARGESOUND = 16;
float sound_allowed(float dest, entity e)
{
#include "precache-for-csqc.inc"
}
-// WARNING: this kills the trace globals
-#define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return
-#define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init()
-
-const float INITPRIO_FIRST = 0;
-const float INITPRIO_GAMETYPE = 0;
-const float INITPRIO_GAMETYPE_FALLBACK = 1;
-const float INITPRIO_FINDTARGET = 10;
-const float INITPRIO_DROPTOFLOOR = 20;
-const float INITPRIO_SETLOCATION = 90;
-const float INITPRIO_LINKDOORS = 91;
-const float INITPRIO_LAST = 99;
-
-.void(void) initialize_entity;
-.float initialize_entity_order;
-.entity initialize_entity_next;
-entity initialize_entity_first;
void make_safe_for_remove(entity e)
{
--- /dev/null
+#ifndef MISCFUNCTIONS_H
+#define MISCFUNCTIONS_H
+
+var void remove(entity e);
+void objerror(string s);
+void droptofloor();
+.vector dropped_origin;
+
+void traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
+void WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonst, entity forent, float lag);
+
+void() spawnfunc_info_player_deathmatch; // needed for the other spawnpoints
+void() spawnpoint_use;
+string GetMapname();
+
+float DistributeEvenly_amount;
+float DistributeEvenly_totalweight;
+
+#define move_out_of_solid(e) WarpZoneLib_MoveOutOfSolid(e)
+
+const string STR_PLAYER = "player";
+const string STR_SPECTATOR = "spectator";
+const string STR_OBSERVER = "observer";
+
+#define IS_PLAYER(v) (v.classname == STR_PLAYER)
+#define IS_SPEC(v) (v.classname == STR_SPECTATOR)
+#define IS_OBSERVER(v) (v.classname == STR_OBSERVER)
+#define IS_CLIENT(v) (v.flags & FL_CLIENT)
+#define IS_BOT_CLIENT(v) (clienttype(v) == CLIENTTYPE_BOT)
+#define IS_REAL_CLIENT(v) (clienttype(v) == CLIENTTYPE_REAL)
+#define IS_NOT_A_CLIENT(v) (clienttype(v) == CLIENTTYPE_NOTACLIENT)
+
+#define FOR_EACH_CLIENTSLOT(v) for(v = world; (v = nextent(v)) && (num_for_edict(v) <= maxclients); )
+#define FOR_EACH_CLIENT(v) FOR_EACH_CLIENTSLOT(v) if(IS_CLIENT(v))
+#define FOR_EACH_REALCLIENT(v) FOR_EACH_CLIENT(v) if(IS_REAL_CLIENT(v))
+
+#define FOR_EACH_PLAYER(v) FOR_EACH_CLIENT(v) if(IS_PLAYER(v))
+#define FOR_EACH_SPEC(v) FOR_EACH_CLIENT(v) if (!IS_PLAYER(v)) // Samual: shouldn't this be IS_SPEC(v)? and rather create a separate macro to include observers too
+#define FOR_EACH_REALPLAYER(v) FOR_EACH_REALCLIENT(v) if(IS_PLAYER(v))
+
+#define FOR_EACH_MONSTER(v) for(v = world; (v = findflags(v, flags, FL_MONSTER)) != world; )
+
+#define CENTER_OR_VIEWOFS(ent) (ent.origin + (IS_PLAYER(ent) ? ent.view_ofs : ((ent.mins + ent.maxs) * 0.5)))
+
+// copies a string to a tempstring (so one can strunzone it)
+string strcat1(string s) = #115; // FRIK_FILE
+
+float logfile_open;
+float logfile;
+
+#define strstr strstrofs
+/*
+// NOTE: DO NOT USE THIS FUNCTION TOO OFTEN.
+// IT WILL MOST PROBABLY DESTROY _ALL_ OTHER TEMP
+// STRINGS AND TAKE QUITE LONG. haystack and needle MUST
+// BE CONSTANT OR strzoneD!
+float strstr(string haystack, string needle, float offset)
+{
+ float len, endpos;
+ string found;
+ len = strlen(needle);
+ endpos = strlen(haystack) - len;
+ while(offset <= endpos)
+ {
+ found = substring(haystack, offset, len);
+ if(found == needle)
+ return offset;
+ offset = offset + 1;
+ }
+ return -1;
+}
+*/
+
+const float NUM_NEAREST_ENTITIES = 4;
+entity nearest_entity[NUM_NEAREST_ENTITIES];
+float nearest_length[NUM_NEAREST_ENTITIES];
+
+
+//#NO AUTOCVARS START
+
+float g_pickup_shells;
+float g_pickup_shells_max;
+float g_pickup_nails;
+float g_pickup_nails_max;
+float g_pickup_rockets;
+float g_pickup_rockets_max;
+float g_pickup_cells;
+float g_pickup_cells_max;
+float g_pickup_plasma;
+float g_pickup_plasma_max;
+float g_pickup_fuel;
+float g_pickup_fuel_jetpack;
+float g_pickup_fuel_max;
+float g_pickup_armorsmall;
+float g_pickup_armorsmall_max;
+float g_pickup_armorsmall_anyway;
+float g_pickup_armormedium;
+float g_pickup_armormedium_max;
+float g_pickup_armormedium_anyway;
+float g_pickup_armorbig;
+float g_pickup_armorbig_max;
+float g_pickup_armorbig_anyway;
+float g_pickup_armorlarge;
+float g_pickup_armorlarge_max;
+float g_pickup_armorlarge_anyway;
+float g_pickup_healthsmall;
+float g_pickup_healthsmall_max;
+float g_pickup_healthsmall_anyway;
+float g_pickup_healthmedium;
+float g_pickup_healthmedium_max;
+float g_pickup_healthmedium_anyway;
+float g_pickup_healthlarge;
+float g_pickup_healthlarge_max;
+float g_pickup_healthlarge_anyway;
+float g_pickup_healthmega;
+float g_pickup_healthmega_max;
+float g_pickup_healthmega_anyway;
+float g_pickup_ammo_anyway;
+float g_pickup_weapons_anyway;
+float g_weaponarena;
+WepSet g_weaponarena_weapons;
+float g_weaponarena_random;
+float g_weaponarena_random_with_blaster;
+string g_weaponarena_list;
+float g_weaponspeedfactor;
+float g_weaponratefactor;
+float g_weapondamagefactor;
+float g_weaponforcefactor;
+float g_weaponspreadfactor;
+
+WepSet start_weapons;
+WepSet start_weapons_default;
+WepSet start_weapons_defaultmask;
+float start_items;
+float start_ammo_shells;
+float start_ammo_nails;
+float start_ammo_rockets;
+float start_ammo_cells;
+float start_ammo_plasma;
+float start_ammo_fuel;
+float start_health;
+float start_armorvalue;
+WepSet warmup_start_weapons;
+WepSet warmup_start_weapons_default;
+WepSet warmup_start_weapons_defaultmask;
+#define WARMUP_START_WEAPONS ((g_warmup_allguns == 1) ? (warmup_start_weapons & (weaponsInMap | start_weapons)) : warmup_start_weapons)
+float warmup_start_ammo_shells;
+float warmup_start_ammo_nails;
+float warmup_start_ammo_rockets;
+float warmup_start_ammo_cells;
+float warmup_start_ammo_plasma;
+float warmup_start_ammo_fuel;
+float warmup_start_health;
+float warmup_start_armorvalue;
+float g_weapon_stay;
+
+float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still needs done?
+{
+ float i = weaponinfo.weapon;
+ float d = 0;
+
+ if (!i)
+ return 0;
+
+ if (g_lms || g_ca || allguns)
+ {
+ if(weaponinfo.spawnflags & WEP_FLAG_NORMAL)
+ d = true;
+ else
+ d = false;
+ }
+ else if (g_cts)
+ d = (i == WEP_SHOTGUN);
+ else if (g_nexball)
+ d = 0; // weapon is set a few lines later
+ else
+ d = !(!weaponinfo.weaponstart);
+
+ if(g_grappling_hook) // if possible, redirect off-hand hook to on-hand hook
+ d |= (i == WEP_HOOK);
+ if(!g_cts && (weaponinfo.spawnflags & WEP_FLAG_MUTATORBLOCKED)) // never default mutator blocked guns
+ d = 0;
+
+ float t = weaponinfo.weaponstartoverride;
+
+ //print(strcat("want_weapon: ", weaponinfo.netname, " - d: ", ftos(d), ", t: ", ftos(t), ". \n"));
+
+ // bit order in t:
+ // 1: want or not
+ // 2: is default?
+ // 4: is set by default?
+ if(t < 0)
+ t = 4 | (3 * d);
+ else
+ t |= (2 * d);
+
+ return t;
+}
+
+void readplayerstartcvars()
+{
+ entity e;
+ float i, j, t;
+ string s;
+
+ // initialize starting values for players
+ start_weapons = '0 0 0';
+ start_weapons_default = '0 0 0';
+ start_weapons_defaultmask = '0 0 0';
+ start_items = 0;
+ start_ammo_shells = 0;
+ start_ammo_nails = 0;
+ start_ammo_rockets = 0;
+ start_ammo_cells = 0;
+ start_ammo_plasma = 0;
+ start_health = cvar("g_balance_health_start");
+ start_armorvalue = cvar("g_balance_armor_start");
+
+ g_weaponarena = 0;
+ g_weaponarena_weapons = '0 0 0';
+
+ s = cvar_string("g_weaponarena");
+ if (s == "0" || s == "")
+ {
+ if(g_ca)
+ s = "most";
+ }
+
+ if (s == "0" || s == "")
+ {
+ // no arena
+ }
+ else if (s == "off")
+ {
+ // forcibly turn off weaponarena
+ }
+ else if (s == "all" || s == "1")
+ {
+ g_weaponarena = 1;
+ g_weaponarena_list = "All Weapons";
+ for (j = WEP_FIRST; j <= WEP_LAST; ++j)
+ {
+ e = get_weaponinfo(j);
+ if (!(e.spawnflags & WEP_FLAG_MUTATORBLOCKED))
+ g_weaponarena_weapons |= WepSet_FromWeapon(j);
+ }
+ }
+ else if (s == "most")
+ {
+ g_weaponarena = 1;
+ g_weaponarena_list = "Most Weapons";
+ for (j = WEP_FIRST; j <= WEP_LAST; ++j)
+ {
+ e = get_weaponinfo(j);
+ if (!(e.spawnflags & WEP_FLAG_MUTATORBLOCKED))
+ if (e.spawnflags & WEP_FLAG_NORMAL)
+ g_weaponarena_weapons |= WepSet_FromWeapon(j);
+ }
+ }
+ else if (s == "none")
+ {
+ g_weaponarena = 1;
+ g_weaponarena_list = "No Weapons";
+ }
+ else
+ {
+ g_weaponarena = 1;
+ t = tokenize_console(s);
+ g_weaponarena_list = "";
+ for (i = 0; i < t; ++i)
+ {
+ s = argv(i);
+ for (j = WEP_FIRST; j <= WEP_LAST; ++j)
+ {
+ e = get_weaponinfo(j);
+ if (e.netname == s)
+ {
+ g_weaponarena_weapons |= WepSet_FromWeapon(j);
+ g_weaponarena_list = strcat(g_weaponarena_list, e.message, " & ");
+ break;
+ }
+ }
+ if (j > WEP_LAST)
+ {
+ print("The weapon mutator list contains an unknown weapon ", s, ". Skipped.\n");
+ }
+ }
+ g_weaponarena_list = strzone(substring(g_weaponarena_list, 0, strlen(g_weaponarena_list) - 3));
+ }
+
+ if(g_weaponarena)
+ g_weaponarena_random = cvar("g_weaponarena_random");
+ else
+ g_weaponarena_random = 0;
+ g_weaponarena_random_with_blaster = cvar("g_weaponarena_random_with_blaster");
+
+ if (g_weaponarena)
+ {
+ g_weapon_stay = 0; // incompatible
+ start_weapons = g_weaponarena_weapons;
+ start_items |= IT_UNLIMITED_AMMO;
+ }
+ else
+ {
+ for (i = WEP_FIRST; i <= WEP_LAST; ++i)
+ {
+ e = get_weaponinfo(i);
+ float w = want_weapon(e, false);
+ if(w & 1)
+ start_weapons |= WepSet_FromWeapon(i);
+ if(w & 2)
+ start_weapons_default |= WepSet_FromWeapon(i);
+ if(w & 4)
+ start_weapons_defaultmask |= WepSet_FromWeapon(i);
+ }
+ }
+
+ if(!cvar("g_use_ammunition"))
+ start_items |= IT_UNLIMITED_AMMO;
+
+ if(start_items & IT_UNLIMITED_WEAPON_AMMO)
+ {
+ start_ammo_shells = 999;
+ start_ammo_nails = 999;
+ start_ammo_rockets = 999;
+ start_ammo_cells = 999;
+ start_ammo_plasma = 999;
+ start_ammo_fuel = 999;
+ }
+ else
+ {
+ start_ammo_shells = cvar("g_start_ammo_shells");
+ start_ammo_nails = cvar("g_start_ammo_nails");
+ start_ammo_rockets = cvar("g_start_ammo_rockets");
+ start_ammo_cells = cvar("g_start_ammo_cells");
+ start_ammo_plasma = cvar("g_start_ammo_plasma");
+ start_ammo_fuel = cvar("g_start_ammo_fuel");
+ }
+
+ if (warmup_stage)
+ {
+ warmup_start_ammo_shells = start_ammo_shells;
+ warmup_start_ammo_nails = start_ammo_nails;
+ warmup_start_ammo_rockets = start_ammo_rockets;
+ warmup_start_ammo_cells = start_ammo_cells;
+ warmup_start_ammo_plasma = start_ammo_plasma;
+ warmup_start_ammo_fuel = start_ammo_fuel;
+ warmup_start_health = start_health;
+ warmup_start_armorvalue = start_armorvalue;
+ warmup_start_weapons = start_weapons;
+ warmup_start_weapons_default = start_weapons_default;
+ warmup_start_weapons_defaultmask = start_weapons_defaultmask;
+
+ if (!g_weaponarena && !g_ca)
+ {
+ warmup_start_ammo_shells = cvar("g_warmup_start_ammo_shells");
+ warmup_start_ammo_nails = cvar("g_warmup_start_ammo_nails");
+ warmup_start_ammo_rockets = cvar("g_warmup_start_ammo_rockets");
+ warmup_start_ammo_cells = cvar("g_warmup_start_ammo_cells");
+ warmup_start_ammo_plasma = cvar("g_warmup_start_ammo_plasma");
+ warmup_start_ammo_fuel = cvar("g_warmup_start_ammo_fuel");
+ warmup_start_health = cvar("g_warmup_start_health");
+ warmup_start_armorvalue = cvar("g_warmup_start_armor");
+ warmup_start_weapons = '0 0 0';
+ warmup_start_weapons_default = '0 0 0';
+ warmup_start_weapons_defaultmask = '0 0 0';
+ for (i = WEP_FIRST; i <= WEP_LAST; ++i)
+ {
+ e = get_weaponinfo(i);
+ float w = want_weapon(e, g_warmup_allguns);
+ if(w & 1)
+ warmup_start_weapons |= WepSet_FromWeapon(i);
+ if(w & 2)
+ warmup_start_weapons_default |= WepSet_FromWeapon(i);
+ if(w & 4)
+ warmup_start_weapons_defaultmask |= WepSet_FromWeapon(i);
+ }
+ }
+ }
+
+ if (g_jetpack)
+ start_items |= IT_JETPACK;
+
+ MUTATOR_CALLHOOK(SetStartItems);
+
+ if ((start_items & IT_JETPACK) || (g_grappling_hook && (start_weapons & WEPSET_HOOK)))
+ {
+ start_items |= IT_FUEL_REGEN;
+ start_ammo_fuel = max(start_ammo_fuel, cvar("g_balance_fuel_rotstable"));
+ warmup_start_ammo_fuel = max(warmup_start_ammo_fuel, cvar("g_balance_fuel_rotstable"));
+ }
+
+ WepSet precache_weapons = start_weapons;
+ if (g_warmup_allguns != 1)
+ precache_weapons |= warmup_start_weapons;
+ for (i = WEP_FIRST; i <= WEP_LAST; ++i)
+ {
+ e = get_weaponinfo(i);
+ if(precache_weapons & WepSet_FromWeapon(i))
+ WEP_ACTION(i, WR_INIT);
+ }
+
+ start_ammo_shells = max(0, start_ammo_shells);
+ start_ammo_nails = max(0, start_ammo_nails);
+ start_ammo_rockets = max(0, start_ammo_rockets);
+ start_ammo_cells = max(0, start_ammo_cells);
+ start_ammo_plasma = max(0, start_ammo_plasma);
+ start_ammo_fuel = max(0, start_ammo_fuel);
+
+ warmup_start_ammo_shells = max(0, warmup_start_ammo_shells);
+ warmup_start_ammo_nails = max(0, warmup_start_ammo_nails);
+ warmup_start_ammo_rockets = max(0, warmup_start_ammo_rockets);
+ warmup_start_ammo_cells = max(0, warmup_start_ammo_cells);
+ warmup_start_ammo_plasma = max(0, warmup_start_ammo_plasma);
+ warmup_start_ammo_fuel = max(0, warmup_start_ammo_fuel);
+}
+
+float g_bugrigs;
+float g_bugrigs_planar_movement;
+float g_bugrigs_planar_movement_car_jumping;
+float g_bugrigs_reverse_spinning;
+float g_bugrigs_reverse_speeding;
+float g_bugrigs_reverse_stopping;
+float g_bugrigs_air_steering;
+float g_bugrigs_angle_smoothing;
+float g_bugrigs_friction_floor;
+float g_bugrigs_friction_brake;
+float g_bugrigs_friction_air;
+float g_bugrigs_accel;
+float g_bugrigs_speed_ref;
+float g_bugrigs_speed_pow;
+float g_bugrigs_steer;
+
+float sv_autotaunt;
+float sv_taunt;
+
+string GetGametype(); // g_world.qc
+void mutators_add(); // mutators.qc
+void readlevelcvars(void)
+{
+ // load mutators
+ mutators_add();
+
+ if(cvar("sv_allow_fullbright"))
+ serverflags |= SERVERFLAG_ALLOW_FULLBRIGHT;
+
+ g_bugrigs = cvar("g_bugrigs");
+ g_bugrigs_planar_movement = cvar("g_bugrigs_planar_movement");
+ g_bugrigs_planar_movement_car_jumping = cvar("g_bugrigs_planar_movement_car_jumping");
+ g_bugrigs_reverse_spinning = cvar("g_bugrigs_reverse_spinning");
+ g_bugrigs_reverse_speeding = cvar("g_bugrigs_reverse_speeding");
+ g_bugrigs_reverse_stopping = cvar("g_bugrigs_reverse_stopping");
+ g_bugrigs_air_steering = cvar("g_bugrigs_air_steering");
+ g_bugrigs_angle_smoothing = cvar("g_bugrigs_angle_smoothing");
+ g_bugrigs_friction_floor = cvar("g_bugrigs_friction_floor");
+ g_bugrigs_friction_brake = cvar("g_bugrigs_friction_brake");
+ g_bugrigs_friction_air = cvar("g_bugrigs_friction_air");
+ g_bugrigs_accel = cvar("g_bugrigs_accel");
+ g_bugrigs_speed_ref = cvar("g_bugrigs_speed_ref");
+ g_bugrigs_speed_pow = cvar("g_bugrigs_speed_pow");
+ g_bugrigs_steer = cvar("g_bugrigs_steer");
+
+ g_instagib = cvar("g_instagib");
+
+ sv_clones = cvar("sv_clones");
+ sv_foginterval = cvar("sv_foginterval");
+ g_cloaked = cvar("g_cloaked");
+ g_footsteps = cvar("g_footsteps");
+ g_grappling_hook = cvar("g_grappling_hook");
+ g_jetpack = cvar("g_jetpack");
+ sv_maxidle = cvar("sv_maxidle");
+ sv_maxidle_spectatorsareidle = cvar("sv_maxidle_spectatorsareidle");
+ sv_autotaunt = cvar("sv_autotaunt");
+ sv_taunt = cvar("sv_taunt");
+
+ warmup_stage = cvar("g_warmup");
+ g_warmup_limit = cvar("g_warmup_limit");
+ g_warmup_allguns = cvar("g_warmup_allguns");
+ g_warmup_allow_timeout = cvar("g_warmup_allow_timeout");
+
+ if ((g_race && g_race_qualifying == 2) || g_assault || cvar("g_campaign"))
+ warmup_stage = 0; // these modes cannot work together, sorry
+
+ g_pickup_respawntime_weapon = cvar("g_pickup_respawntime_weapon");
+ g_pickup_respawntime_superweapon = cvar("g_pickup_respawntime_superweapon");
+ g_pickup_respawntime_ammo = cvar("g_pickup_respawntime_ammo");
+ g_pickup_respawntime_short = cvar("g_pickup_respawntime_short");
+ g_pickup_respawntime_medium = cvar("g_pickup_respawntime_medium");
+ g_pickup_respawntime_long = cvar("g_pickup_respawntime_long");
+ g_pickup_respawntime_powerup = cvar("g_pickup_respawntime_powerup");
+ g_pickup_respawntimejitter_weapon = cvar("g_pickup_respawntimejitter_weapon");
+ g_pickup_respawntimejitter_superweapon = cvar("g_pickup_respawntimejitter_superweapon");
+ g_pickup_respawntimejitter_ammo = cvar("g_pickup_respawntimejitter_ammo");
+ g_pickup_respawntimejitter_short = cvar("g_pickup_respawntimejitter_short");
+ g_pickup_respawntimejitter_medium = cvar("g_pickup_respawntimejitter_medium");
+ g_pickup_respawntimejitter_long = cvar("g_pickup_respawntimejitter_long");
+ g_pickup_respawntimejitter_powerup = cvar("g_pickup_respawntimejitter_powerup");
+
+ g_weaponspeedfactor = cvar("g_weaponspeedfactor");
+ g_weaponratefactor = cvar("g_weaponratefactor");
+ g_weapondamagefactor = cvar("g_weapondamagefactor");
+ g_weaponforcefactor = cvar("g_weaponforcefactor");
+ g_weaponspreadfactor = cvar("g_weaponspreadfactor");
+
+ g_pickup_shells = cvar("g_pickup_shells");
+ g_pickup_shells_max = cvar("g_pickup_shells_max");
+ g_pickup_nails = cvar("g_pickup_nails");
+ g_pickup_nails_max = cvar("g_pickup_nails_max");
+ g_pickup_rockets = cvar("g_pickup_rockets");
+ g_pickup_rockets_max = cvar("g_pickup_rockets_max");
+ g_pickup_cells = cvar("g_pickup_cells");
+ g_pickup_cells_max = cvar("g_pickup_cells_max");
+ g_pickup_plasma = cvar("g_pickup_plasma");
+ g_pickup_plasma_max = cvar("g_pickup_plasma_max");
+ g_pickup_fuel = cvar("g_pickup_fuel");
+ g_pickup_fuel_jetpack = cvar("g_pickup_fuel_jetpack");
+ g_pickup_fuel_max = cvar("g_pickup_fuel_max");
+ g_pickup_armorsmall = cvar("g_pickup_armorsmall");
+ g_pickup_armorsmall_max = cvar("g_pickup_armorsmall_max");
+ g_pickup_armorsmall_anyway = cvar("g_pickup_armorsmall_anyway");
+ g_pickup_armormedium = cvar("g_pickup_armormedium");
+ g_pickup_armormedium_max = cvar("g_pickup_armormedium_max");
+ g_pickup_armormedium_anyway = cvar("g_pickup_armormedium_anyway");
+ g_pickup_armorbig = cvar("g_pickup_armorbig");
+ g_pickup_armorbig_max = cvar("g_pickup_armorbig_max");
+ g_pickup_armorbig_anyway = cvar("g_pickup_armorbig_anyway");
+ g_pickup_armorlarge = cvar("g_pickup_armorlarge");
+ g_pickup_armorlarge_max = cvar("g_pickup_armorlarge_max");
+ g_pickup_armorlarge_anyway = cvar("g_pickup_armorlarge_anyway");
+ g_pickup_healthsmall = cvar("g_pickup_healthsmall");
+ g_pickup_healthsmall_max = cvar("g_pickup_healthsmall_max");
+ g_pickup_healthsmall_anyway = cvar("g_pickup_healthsmall_anyway");
+ g_pickup_healthmedium = cvar("g_pickup_healthmedium");
+ g_pickup_healthmedium_max = cvar("g_pickup_healthmedium_max");
+ g_pickup_healthmedium_anyway = cvar("g_pickup_healthmedium_anyway");
+ g_pickup_healthlarge = cvar("g_pickup_healthlarge");
+ g_pickup_healthlarge_max = cvar("g_pickup_healthlarge_max");
+ g_pickup_healthlarge_anyway = cvar("g_pickup_healthlarge_anyway");
+ g_pickup_healthmega = cvar("g_pickup_healthmega");
+ g_pickup_healthmega_max = cvar("g_pickup_healthmega_max");
+ g_pickup_healthmega_anyway = cvar("g_pickup_healthmega_anyway");
+
+ g_pickup_ammo_anyway = cvar("g_pickup_ammo_anyway");
+ g_pickup_weapons_anyway = cvar("g_pickup_weapons_anyway");
+
+ g_weapon_stay = cvar(strcat("g_", GetGametype(), "_weapon_stay"));
+ if(!g_weapon_stay)
+ g_weapon_stay = cvar("g_weapon_stay");
+
+ if (!warmup_stage)
+ game_starttime = time + cvar("g_start_delay");
+
+ readplayerstartcvars();
+}
+
+//#NO AUTOCVARS END
+
+
+// Sound functions
+//string precache_sound (string s) = #19;
+// hack
+float precache_sound_index (string s) = #19;
+
+const float SND_VOLUME = 1;
+const float SND_ATTENUATION = 2;
+const float SND_LARGEENTITY = 8;
+const float SND_LARGESOUND = 16;
+
+// WARNING: this kills the trace globals
+#define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return
+#define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init()
+
+const float INITPRIO_FIRST = 0;
+const float INITPRIO_GAMETYPE = 0;
+const float INITPRIO_GAMETYPE_FALLBACK = 1;
+const float INITPRIO_FINDTARGET = 10;
+const float INITPRIO_DROPTOFLOOR = 20;
+const float INITPRIO_SETLOCATION = 90;
+const float INITPRIO_LINKDOORS = 91;
+const float INITPRIO_LAST = 99;
+
+.void(void) initialize_entity;
+.float initialize_entity_order;
+.entity initialize_entity_next;
+entity initialize_entity_first;
+
+
+
+
+
+float sound_allowed(float dest, entity e);
+void InitializeEntity(entity e, void(void) func, float order);
+void SetCustomizer(entity e, float(void) customizer, void(void) uncustomizer);
+void Net_LinkEntity(entity e, float docull, float dt, float(entity, float) sendfunc);
+
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../csqcmodellib/sv_model.qh"
+#endif
+
#ifdef SVQC
.vector moveto;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../sys-post.qh"
+ #include "mutators_include.qh"
+ #include "../../common/mapinfo.qh"
+#endif
+
void mutators_add()
{
#define CHECK_MUTATOR_ADD(mut_cvar,mut_name,dependence) \
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../command/common.qh"
+ #include "../command/banning.qh"
+ #include "../command/radarmap.qh"
+ #include "../command/vote.qh"
+ #include "../command/getreplies.qh"
+ #include "../command/cmd.qh"
+ #include "../command/sv_cmd.qh"
+ #include "../../common/csqcmodel_settings.qh"
+ #include "../../csqcmodellib/common.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+ #include "../anticheat.qh"
+ #include "../cheats.qh"
+ #include "../../common/playerstats.qh"
+ #include "../portals.qh"
+ #include "../g_hook.qh"
+ #include "../scores.qh"
+ #include "../spawnpoints.qh"
+ #include "../mapvoting.qh"
+ #include "../ipban.qh"
+ #include "../race.qh"
+ #include "../antilag.qh"
+ #include "../playerdemo.qh"
+ #include "../round_handler.qh"
+ #include "../item_key.qh"
+ #include "../secret.qh"
+ #include "../pathlib/pathlib.qh"
+ #include "../tturrets/include/turrets.qh"
+ #include "../vehicles/vehicles.qh"
+#endif
+
#include "base.qc"
#include "gamemode_assault.qc"
#include "gamemode_ca.qc"
+#ifndef MUTATORS_INCLUDE_H
+#define MUTATORS_INCLUDE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+#endif
+
#include "base.qh"
#include "mutators.qh"
#include "gamemode_assault.qh"
#include "mutator_overkill.qh"
#include "mutator_nades.qh"
#include "mutator_buffs.qh"
+#endif
\ No newline at end of file
+#ifndef PATHLIB_H
+#define PATHLIB_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "../vehicles/vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../command/common.qh"
+ #include "../command/banning.qh"
+ #include "../command/radarmap.qh"
+ #include "../command/vote.qh"
+ #include "../command/getreplies.qh"
+ #include "../command/cmd.qh"
+ #include "../command/sv_cmd.qh"
+ #include "../../common/csqcmodel_settings.qh"
+ #include "../../csqcmodellib/common.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+ #include "../anticheat.qh"
+ #include "../cheats.qh"
+ #include "../../common/playerstats.qh"
+ #include "../portals.qh"
+ #include "../g_hook.qh"
+ #include "../scores.qh"
+ #include "../spawnpoints.qh"
+ #include "../mapvoting.qh"
+ #include "../ipban.qh"
+ #include "../race.qh"
+ #include "../antilag.qh"
+ #include "../playerdemo.qh"
+ #include "../round_handler.qh"
+ #include "../item_key.qh"
+ #include "../secret.qh"
+#endif
+
+
.entity pathlib_list;
.entity path_next;
.entity path_prev;
#include "expandnode.qc"
#include "main.qc"
#include "path_waypoint.qc"
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "defs.qh"
+ #include "playerdemo.qh"
+#endif
+
.float playerdemo_fh;
.float playerdemo_mode;
.float playerdemo_starttime;
+#ifndef PLAYERDEMO_H
+#define PLAYERDEMO_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "mapvoting.qh"
+ #include "ipban.qh"
+ #include "race.qh"
+ #include "antilag.qh"
+#endif
+
void playerdemo_init();
void playerdemo_shutdown();
void playerdemo_write();
void playerdemo_open_read(string f);
void playerdemo_open_write(string f);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+#endif
+
#define PORTALS_ARE_NOT_SOLID
const vector SAFENUDGE = '1 1 1';
+#ifndef PORTALS_H
+#define PORTALS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+#endif
+
.float portal_id;
.entity portal_in, portal_out;
vector Portal_ApplyTransformToPlayerAngle(vector transform, vector vangle);
void Portal_ClearAll_PortalsOnly(entity own);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/sv_cmd.qh"
+ #include "portals.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "race.qh"
+#endif
+
float race_readTime(string map, float pos)
{
string rr = (g_cts) ? CTS_RECORD : RACE_RECORD;
+#ifndef RACE_H
+#define RACE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "mapvoting.qh"
+ #include "ipban.qh"
+#endif
+
float race_spawns;
float race_highest_place_spawn; // number of places; a place higher gets spawned at 0
float race_lowest_place_spawn; // where to spawn in qualifying
float race_readTime(string map, float pos);
string race_readUID(string map, float pos);
string race_readName(string map, float pos);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/util.qh"
+ #include "defs.qh"
+ #include "round_handler.qh"
+#endif
+
void round_handler_Think()
{
float f;
+#ifndef ROUND_HANDLER_H
+#define ROUND_HANDLER_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "mapvoting.qh"
+ #include "ipban.qh"
+ #include "race.qh"
+ #include "antilag.qh"
+ #include "playerdemo.qh"
+#endif
+
entity round_handler;
.float delay; // stores delay from round end to countdown start
.float count; // stores initial number of the countdown
#define round_handler_IsRoundStarted() (!round_handler.wait && !round_handler.cnt)
#define round_handler_GetEndTime() (round_handler.round_endtime)
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/playerstats.qh"
+ #include "scores.qh"
+#endif
+
.entity scorekeeper;
entity teamscorekeepers[16];
string scores_label[MAX_SCORE];
+#ifndef SCORES_H
+#define SCORES_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+#endif
+
entity scores_initialized; // non-world when scores labels/rules have been set
.float scores[MAX_SCORE];
.float teamscores[MAX_TEAMSCORE];
* nospectators: exclude spectators
*/
entity PlayerScore_Sort(.float field, float teams, float strict, float nospectators);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../common/constants.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "scores.qh"
+#endif
+
float c1, c2, c3, c4;
void CheckAllowedTeams (entity for_whom);
ScoreRules_basics(0, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_PRIMARY, true);
ScoreRules_basics_end();
}
-
-
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../common/util.qh"
+ #include "defs.qh"
+ #include "secret.qh"
+#endif
void secrets_setstatus() {
self.stat_secrets_total = secrets_total;
+#ifndef SECRET_H
+#define SECRET_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+ #include "spawnpoints.qh"
+ #include "mapvoting.qh"
+ #include "ipban.qh"
+ #include "race.qh"
+ #include "antilag.qh"
+ #include "playerdemo.qh"
+ #include "round_handler.qh"
+ #include "item_key.qh"
+#endif
+
/**
* Total number of secrets on the map.
*/
* update secrets status.
*/
void secrets_setstatus();
-
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "mutators/mutators_include.qh"
+ #include "spawnpoints.qh"
+ #include "race.qh"
+#endif
+
float SpawnPoint_Send(entity to, float sf)
{
WriteByte(MSG_ENTITY, ENT_CLIENT_SPAWNPOINT);
+#ifndef SPAWNPOINTS_H
+#define SPAWNPOINTS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "campaign.qh"
+ #include "../common/campaign_common.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "command/banning.qh"
+ #include "command/radarmap.qh"
+ #include "command/vote.qh"
+ #include "command/getreplies.qh"
+ #include "command/cmd.qh"
+ #include "command/sv_cmd.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "cheats.qh"
+ #include "../common/playerstats.qh"
+ #include "portals.qh"
+ #include "g_hook.qh"
+ #include "scores.qh"
+#endif
+
.vector spawnpoint_score;
float spawnpoint_nag;
float SpawnEvent_Send(entity to, float sf);
entity Spawn_FilterOutBadSpots(entity firstspot, float mindist, float teamcheck);
entity SelectSpawnPoint (float anypoint);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+#endif
+
.vector steerto;
/**
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+ #include "anticheat.qh"
+ #include "g_hook.qh"
+#endif
+
void CreatureFrame (void)
{
entity oldself;
+#ifndef SERVER_SYS_POST_H
+#define SERVER_SYS_POST_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+#endif
+
#pragma noref 0
#undef ATTEN_NORM
var float(string name) cvar;
var string(string name) cvar_string;
var void(string name, string value) cvar_set;
+#endif
\ No newline at end of file
-#define SVQC
+#ifndef SERVER_SYS_PRE_H
+#define SERVER_SYS_PRE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+#endif
#define ATTEN_NORM builtin_ATTEN_NORM
#define objerror builtin_objerror
#define cvar builtin_cvar
#pragma noref 1
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../warpzonelib/util_server.qh"
+ #include "defs.qh"
+ #include "vehicles/vehicles_def.qh"
+#endif
.float roomtype;
.float radius;
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../common/util.qh"
+ #include "../common/buffs.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../client/autocvars.qh"
+ #include "../client/movetypes.qh"
+ #include "../client/main.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/weaponsystem.qh"
+ #include "t_items.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+#endif
+
#ifdef CSQC
void ItemDraw()
{
+#ifndef T_ITEMS_H
+#define T_ITEMS_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/client.qh"
+ #include "../common/playerstats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "../common/mapinfo.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/urllib.qh"
+ #include "../common/animdecide.qh"
+ #include "../client/command/cl_cmd.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../client/autocvars.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "../client/damage.qh"
+ #include "../csqcmodellib/interpolate.qh"
+ #include "../client/teamradar.qh"
+ #include "../client/hud.qh"
+ #include "../client/scoreboard.qh"
+ #include "../client/waypointsprites.qh"
+ #include "../client/movetypes.qh"
+ #include "../client/prandom.qh"
+ #include "../client/bgmscript.qh"
+ #include "../client/noise.qh"
+ #include "../client/tturrets.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "../client/main.qh"
+ #include "../client/vehicles/vehicles.qh"
+ #include "../common/csqcmodel_settings.qh"
+ #include "../csqcmodellib/common.qh"
+ #include "../csqcmodellib/cl_model.qh"
+ #include "../csqcmodellib/cl_player.qh"
+ #include "../client/weapons/projectile.qh"
+ #include "../client/player_skeleton.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/anglestransform.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "../common/nades.qh"
+ #include "../common/buffs.qh"
+ #include "../common/test.qh"
+ #include "../common/counting.qh"
+ #include "../common/urllib.qh"
+ #include "../common/command/markup.qh"
+ #include "../common/command/rpn.qh"
+ #include "../common/command/generic.qh"
+ #include "../common/command/shared_defs.qh"
+ #include "../common/net_notice.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/monsters/monsters.qh"
+ #include "../common/monsters/sv_monsters.qh"
+ #include "../common/monsters/spawn.qh"
+ #include "../common/weapons/config.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/accuracy.qh"
+ #include "weapons/common.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "weapons/hitplot.qh"
+ #include "weapons/selection.qh"
+ #include "weapons/spawning.qh"
+ #include "weapons/throwing.qh"
+ #include "weapons/tracing.qh"
+ #include "weapons/weaponstats.qh"
+ #include "weapons/weaponsystem.qh"
+#endif
+
// constants
const int IT_UNLIMITED_WEAPON_AMMO = 1; // when this bit is set, using a weapon does not reduce ammo. Checkpoints can give this powerup.
const int IT_UNLIMITED_SUPERWEAPONS = 2; // when this bit is set, superweapons don't expire. Checkpoints can give this powerup.
float GiveItems(entity e, float beginarg, float endarg);
#endif
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/animdecide.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+#endif
+
const float PUSH_ONCE = 1;
const float PUSH_SILENT = 2;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../warpzonelib/mathlib.qh"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "command/common.qh"
+ #include "../csqcmodellib/sv_model.qh"
+#endif
+
.float dmgtime2;
void generic_plat_blocked()
{
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+#endif
+
//***********************
//QUAKE 1 ENTITIES - So people can play quake1 maps with the xonotic weapons
//***********************
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/buffs.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "defs.qh"
+ #include "../common/mapinfo.qh"
+#endif
+
//***********************
//QUAKE 3 ENTITIES - So people can play quake3 maps with the xonotic weapons
//***********************
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../warpzonelib/util_server.qh"
+ #include "../common/weapons/weapons.qh"
+ #include "defs.qh"
+ #include "../common/deathtypes.qh"
+#endif
+
/*
* t_swamp.c
* Adds spawnfunc_trigger_swamp and suppoart routines for xonotic 1.2.1+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../warpzonelib/common.qh"
+ #include "../warpzonelib/util_server.qh"
+ #include "../warpzonelib/server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "weapons/csqcprojectile.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/deathtypes.qh"
+ #include "tturrets/include/turrets_early.qh"
+ #include "vehicles/vehicles_def.qh"
+ #include "../common/mapinfo.qh"
+ #include "anticheat.qh"
+#endif
+
void trigger_teleport_use()
{
if(teamplay)
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+#endif
+
.float lifetime;
// values:
// volume
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/util.qh"
+ #include "defs.qh"
+#endif
+
// spawner entity
// "classname" "target_spawn"
// "message" "fieldname value fieldname value ..."
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "sys-post.qh"
+ #include "../common/constants.qh"
+ #include "../common/teams.qh"
+ #include "../common/util.qh"
+ #include "autocvars.qh"
+ #include "defs.qh"
+ #include "../common/notifications.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../common/mapinfo.qh"
+ #include "command/vote.qh"
+ #include "scores.qh"
+ #include "race.qh"
+#endif
+
string cache_mutatormsg;
string cache_lastmutatormsg;
+#ifndef TURRETS_H
+#define TURRETS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../../common/util-pre.qh"
+ #include "../../sys-pre.qh"
+ #include "../../../dpdefs/progsdefs.qc"
+ #include "../../../dpdefs/dpextensions.qc"
+ #include "../../sys-post.qh"
+ #include "../../../warpzonelib/anglestransform.qh"
+ #include "../../../warpzonelib/mathlib.qh"
+ #include "../../../warpzonelib/common.qh"
+ #include "../../../warpzonelib/util_server.qh"
+ #include "../../../warpzonelib/server.qh"
+ #include "../../../common/constants.qh"
+ #include "../../../common/stats.qh"
+ #include "../../../common/teams.qh"
+ #include "../../../common/util.qh"
+ #include "../../../common/nades.qh"
+ #include "../../../common/buffs.qh"
+ #include "../../../common/test.qh"
+ #include "../../../common/counting.qh"
+ #include "../../../common/urllib.qh"
+ #include "../../../common/command/markup.qh"
+ #include "../../../common/command/rpn.qh"
+ #include "../../../common/command/generic.qh"
+ #include "../../../common/command/shared_defs.qh"
+ #include "../../../common/net_notice.qh"
+ #include "../../../common/animdecide.qh"
+ #include "../../../common/monsters/monsters.qh"
+ #include "../../../common/monsters/sv_monsters.qh"
+ #include "../../../common/monsters/spawn.qh"
+ #include "../../../common/weapons/config.qh"
+ #include "../../../common/weapons/weapons.qh"
+ #include "../../weapons/accuracy.qh"
+ #include "../../weapons/common.qh"
+ #include "../../weapons/csqcprojectile.qh"
+ #include "../../weapons/hitplot.qh"
+ #include "../../weapons/selection.qh"
+ #include "../../weapons/spawning.qh"
+ #include "../../weapons/throwing.qh"
+ #include "../../weapons/tracing.qh"
+ #include "../../weapons/weaponstats.qh"
+ #include "../../weapons/weaponsystem.qh"
+ #include "../../t_items.qh"
+ #include "../../autocvars.qh"
+ #include "../../constants.qh"
+ #include "../../defs.qh"
+ #include "../../../common/notifications.qh"
+ #include "../../../common/deathtypes.qh"
+ #include "../../mutators/mutators_include.qh"
+ #include "turrets_early.qh"
+ #include "../../vehicles/vehicles_def.qh"
+ #include "../../campaign.qh"
+ #include "../../../common/campaign_common.qh"
+ #include "../../../common/mapinfo.qh"
+ #include "../../command/common.qh"
+ #include "../../command/banning.qh"
+ #include "../../command/radarmap.qh"
+ #include "../../command/vote.qh"
+ #include "../../command/getreplies.qh"
+ #include "../../command/cmd.qh"
+ #include "../../command/sv_cmd.qh"
+ #include "../../../common/csqcmodel_settings.qh"
+ #include "../../../csqcmodellib/common.qh"
+ #include "../../../csqcmodellib/sv_model.qh"
+ #include "../../anticheat.qh"
+ #include "../../cheats.qh"
+ #include "../../../common/playerstats.qh"
+ #include "../../portals.qh"
+ #include "../../g_hook.qh"
+ #include "../../scores.qh"
+ #include "../../spawnpoints.qh"
+ #include "../../mapvoting.qh"
+ #include "../../ipban.qh"
+ #include "../../race.qh"
+ #include "../../antilag.qh"
+ #include "../../playerdemo.qh"
+ #include "../../round_handler.qh"
+ #include "../../item_key.qh"
+ #include "../../secret.qh"
+#endif
+
+
#ifdef TTURRETS_ENABLED
// Include section.
//#include "../units/unit_hive.qc" /// Swarm AI
#endif // TTURRETS_ENABLED
+#endif
\ No newline at end of file
+#ifndef TURRETS_EARLY_H
+#define TURRETS_EARLY_H
+
+#if defined(CSQC)
+ #include "../../../common/util-pre.qh"
+ #include "../../../client/sys-pre.qh"
+ #include "../../../dpdefs/csprogsdefs.qc"
+ #include "../../../client/sys-post.qh"
+ #include "../../../client/Defs.qc"
+ #include "../../../dpdefs/keycodes.qc"
+ #include "../../../common/constants.qh"
+ #include "../../../common/stats.qh"
+ #include "../../../warpzonelib/anglestransform.qh"
+ #include "../../../warpzonelib/mathlib.qh"
+ #include "../../../warpzonelib/common.qh"
+ #include "../../../warpzonelib/client.qh"
+ #include "../../../common/playerstats.qh"
+ #include "../../../common/teams.qh"
+ #include "../../../common/util.qh"
+ #include "../../../common/nades.qh"
+ #include "../../../common/buffs.qh"
+ #include "../../../common/test.qh"
+ #include "../../../common/counting.qh"
+ #include "../../../common/weapons/weapons.qh"
+ #include "../../../common/mapinfo.qh"
+ #include "../../../common/command/markup.qh"
+ #include "../../../common/command/rpn.qh"
+ #include "../../../common/command/generic.qh"
+ #include "../../../common/command/shared_defs.qh"
+ #include "../../../common/urllib.qh"
+ #include "../../../common/animdecide.qh"
+ #include "../../../client/command/cl_cmd.qh"
+ #include "../../../common/monsters/monsters.qh"
+ #include "../../../client/autocvars.qh"
+ #include "../../../common/notifications.qh"
+ #include "../../../common/deathtypes.qh"
+ #include "../../../client/damage.qh"
+ #include "../../../csqcmodellib/interpolate.qh"
+ #include "../../../client/teamradar.qh"
+ #include "../../../client/hud.qh"
+ #include "../../../client/scoreboard.qh"
+ #include "../../../client/waypointsprites.qh"
+ #include "../../../client/movetypes.qh"
+ #include "../../../client/prandom.qh"
+ #include "../../../client/bgmscript.qh"
+ #include "../../../client/noise.qh"
+ #include "../../../client/tturrets.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../../common/util-pre.qh"
+ #include "../../sys-pre.qh"
+ #include "../../../dpdefs/progsdefs.qc"
+ #include "../../../dpdefs/dpextensions.qc"
+ #include "../../sys-post.qh"
+ #include "../../../warpzonelib/anglestransform.qh"
+ #include "../../../warpzonelib/mathlib.qh"
+ #include "../../../warpzonelib/common.qh"
+ #include "../../../warpzonelib/util_server.qh"
+ #include "../../../warpzonelib/server.qh"
+ #include "../../../common/constants.qh"
+ #include "../../../common/stats.qh"
+ #include "../../../common/teams.qh"
+ #include "../../../common/util.qh"
+ #include "../../../common/nades.qh"
+ #include "../../../common/buffs.qh"
+ #include "../../../common/test.qh"
+ #include "../../../common/counting.qh"
+ #include "../../../common/urllib.qh"
+ #include "../../../common/command/markup.qh"
+ #include "../../../common/command/rpn.qh"
+ #include "../../../common/command/generic.qh"
+ #include "../../../common/command/shared_defs.qh"
+ #include "../../../common/net_notice.qh"
+ #include "../../../common/animdecide.qh"
+ #include "../../../common/monsters/monsters.qh"
+ #include "../../../common/monsters/sv_monsters.qh"
+ #include "../../../common/monsters/spawn.qh"
+ #include "../../../common/weapons/config.qh"
+ #include "../../../common/weapons/weapons.qh"
+ #include "../../weapons/accuracy.qh"
+ #include "../../weapons/common.qh"
+ #include "../../weapons/csqcprojectile.qh"
+ #include "../../weapons/hitplot.qh"
+ #include "../../weapons/selection.qh"
+ #include "../../weapons/spawning.qh"
+ #include "../../weapons/throwing.qh"
+ #include "../../weapons/tracing.qh"
+ #include "../../weapons/weaponstats.qh"
+ #include "../../weapons/weaponsystem.qh"
+ #include "../../t_items.qh"
+ #include "../../autocvars.qh"
+ #include "../../constants.qh"
+ #include "../../defs.qh"
+ #include "../../../common/notifications.qh"
+ #include "../../../common/deathtypes.qh"
+ #include "../../mutators/mutators_include.qh"
+#endif
+
// Comment out below to skip turrets
#define TTURRETS_ENABLED
const int TNSF_FULL_UPDATE = 16777215;
#endif // TTURRETS_ENABLED
-
-
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../../dpdefs/csprogsdefs.qc"
+ #include "../../client/Defs.qc"
+ #include "../../common/buffs.qh"
+ #include "../../client/damage.qh"
+ #include "../../client/movetypes.qh"
+ #include "../../client/main.qh"
+ #include "../../csqcmodellib/cl_model.qh"
+ #include "../../client/weapons/projectile.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
const float BRG_SETUP = 2;
const float BRG_START = 4;
const float BRG_END = 8;
+#ifndef VEHICLES_H
+#define VEHICLES_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+ #include "vehicles_def.qh"
+ #include "../campaign.qh"
+ #include "../../common/campaign_common.qh"
+ #include "../../common/mapinfo.qh"
+ #include "../command/common.qh"
+ #include "../command/banning.qh"
+ #include "../command/radarmap.qh"
+ #include "../command/vote.qh"
+ #include "../command/getreplies.qh"
+ #include "../command/cmd.qh"
+ #include "../command/sv_cmd.qh"
+ #include "../../common/csqcmodel_settings.qh"
+ #include "../../csqcmodellib/common.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+ #include "../anticheat.qh"
+ #include "../cheats.qh"
+ #include "../../common/playerstats.qh"
+ #include "../portals.qh"
+ #include "../g_hook.qh"
+ #include "../scores.qh"
+ #include "../spawnpoints.qh"
+ #include "../mapvoting.qh"
+ #include "../ipban.qh"
+ #include "../race.qh"
+ #include "../antilag.qh"
+ #include "../playerdemo.qh"
+ #include "../round_handler.qh"
+ #include "../item_key.qh"
+ #include "../secret.qh"
+ #include "../pathlib/pathlib.qh"
+ #include "../tturrets/include/turrets.qh"
+#endif
+
#ifdef VEHICLES_ENABLED
#include "vehicles.qc"
#include "bumblebee.qc"
#endif
#endif
+#endif
\ No newline at end of file
+#ifndef VEHICLES_DEF_H
+#define VEHICLES_DEF_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "../weapons/accuracy.qh"
+ #include "../weapons/common.qh"
+ #include "../weapons/csqcprojectile.qh"
+ #include "../weapons/hitplot.qh"
+ #include "../weapons/selection.qh"
+ #include "../weapons/spawning.qh"
+ #include "../weapons/throwing.qh"
+ #include "../weapons/tracing.qh"
+ #include "../weapons/weaponstats.qh"
+ #include "../weapons/weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../tturrets/include/turrets_early.qh"
+#endif
+
// #define VEHICLES_USE_ODE
#define VEHICLES_ENABLED
#ifdef VEHICLES_ENABLED
void(entity e, vector torque) physics_addtorque = #542; // add relative torque
#endif // VEHICLES_USE_ODE
#endif // VEHICLES_ENABLED
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../common/buffs.qh"
+ #include "autocvars.qh"
+ #include "constants.qh"
+ #include "defs.qh"
+ #include "../common/deathtypes.qh"
+ #include "mutators/mutators_include.qh"
+ #include "../common/mapinfo.qh"
+ #include "miscfunctions.qh"
+#endif
+
..entity owned_by_field;
.float rule;
.string model1;
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../mutators/mutators_include.qh"
+#endif
+
float accuracy_byte(float n, float d)
{
//printf("accuracy: %d / %d\n", n, d);
+#ifndef ACCURACY_H
+#define ACCURACY_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+#endif
+
.float cvar_cl_accuracy_data_share;
.float cvar_cl_accuracy_data_receive;
// helper
float accuracy_isgooddamage(entity attacker, entity targ);
float accuracy_canbegooddamage(entity attacker);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "common.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../../common/deathtypes.qh"
+#endif
void W_GiveWeapon (entity e, float wep)
{
+#ifndef WEAPONS_COMMON_H
+#define WEAPONS_COMMON_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+#endif
void W_GiveWeapon (entity e, float wep);
.float prevstrengthsound;
void W_PlayStrengthSound(entity player);
float W_CheckProjectileDamage(entity inflictor, entity projowner, float deathtype, float exception);
void W_PrepareExplosionByDamage(entity attacker, void() explode);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "csqcprojectile.qh"
+ #include "../t_items.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../command/common.qh"
+#endif
+
.float csqcprojectile_type;
float CSQCProjectile_SendEntity(entity to, float sf)
+#ifndef CSQCPROJECTILE_H
+#define CSQCPROJECTILE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+#endif
+
.float csqcprojectile_clientanimate;
void CSQCProjectile(entity e, float clientanimate, float type, float docull);
void UpdateCSQCProjectile(entity e);
void UpdateCSQCProjectileAfterTeleport(entity e);
void CSQCProjectile_Check(entity e);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../common/weapons/weapons.qh"
+ #include "hitplot.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+ #include "../antilag.qh"
+#endif
+
vector W_HitPlotUnnormalizedUntransform(vector screenforward, vector screenright, vector screenup, vector v)
{
vector ret;
+#ifndef HITPLOT_H
+#define HITPLOT_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+ #include "csqcprojectile.qh"
+#endif
+
.float hitplotfh;
void W_HitPlotAnalysis(entity player, vector screenforward, vector screenright, vector screenup);
void W_HitPlotOpen(entity player);
void W_HitPlotClose(entity player);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "selection.qh"
+ #include "weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+#endif
+
// switch between weapons
void Send_WeaponComplain(entity e, float wpn, float type)
{
+#ifndef SELECTION_H
+#define SELECTION_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+ #include "csqcprojectile.qh"
+ #include "hitplot.qh"
+#endif
+
// switch between weapons
void Send_WeaponComplain(entity e, float wpn, float type);
// previously used if exists and has ammo, (second) best otherwise
void W_LastWeapon(void);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "spawning.qh"
+ #include "weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../mutators/mutators_include.qh"
+#endif
+
string W_Apply_Weaponreplace(string in)
{
float n = tokenize_console(in);
+#ifndef SPAWNING_H
+#define SPAWNING_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+ #include "csqcprojectile.qh"
+ #include "hitplot.qh"
+ #include "selection.qh"
+#endif
+
string W_Apply_Weaponreplace(string in);
void weapon_defaultspawnfunc(float wpn);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../common/util.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "throwing.qh"
+ #include "weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../constants.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../../common/mapinfo.qh"
+#endif
+
void thrown_wep_think()
{
self.nextthink = time;
+#ifndef THROWING_H
+#define THROWING_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+ #include "csqcprojectile.qh"
+ #include "hitplot.qh"
+ #include "selection.qh"
+ #include "spawning.qh"
+#endif
+
.float savenextthink;
void thrown_wep_think();
void W_ThrowWeapon(vector velo, vector delta, float doreduce);
void SpawnThrownWeapon(vector org, float w);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../warpzonelib/common.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "tracing.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+ #include "../antilag.qh"
+#endif
+
// this function calculates w_shotorg and w_shotdir based on the weapon model
// offset, trueaim and antilag, and won't put w_shotorg inside a wall.
// make sure you call makevectors first (FIXME?)
+#ifndef TRACING_H
+#define TRACING_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+ #include "csqcprojectile.qh"
+ #include "hitplot.qh"
+ #include "selection.qh"
+ #include "spawning.qh"
+ #include "throwing.qh"
+#endif
+
vector w_shotorg;
vector w_shotdir;
vector w_shotend;
entity fireBullet_last_hit;
void fireBullet_trace_callback(vector start, vector hit, vector end);
void fireBullet(vector start, vector dir, float spread, float max_solid_penetration, float damage, float force, float dtype, float tracereffects);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../../common/urllib.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "weaponstats.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+#endif
+
void WeaponStats_Init()
{
weaponstats_buffer = ((autocvar_sv_weaponstats_file != "") ? buf_create() : -1);
+#ifndef WEAPONSTATS_H
+#define WEAPONSTATS_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+ #include "csqcprojectile.qh"
+ #include "hitplot.qh"
+ #include "selection.qh"
+ #include "spawning.qh"
+ #include "throwing.qh"
+ #include "tracing.qh"
+#endif
+
float weaponstats_buffer;
void WeaponStats_Init();
void WeaponStats_LogKill(float awep, float abot, float vwep, float vbot);
#define WEAPONSTATS_GETINDEX(awep,abot,vwep,vbot) (((vwep) + (awep) * (WEP_LAST - WEP_FIRST + 1) - (WEP_FIRST + WEP_FIRST * (WEP_LAST - WEP_FIRST + 1))) * 4 + (abot) * 2 + (vbot))
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/util.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "weaponsystem.qh"
+ #include "../t_items.qh"
+ #include "../autocvars.qh"
+ #include "../defs.qh"
+ #include "../../common/notifications.qh"
+ #include "../mutators/mutators_include.qh"
+ #include "../command/common.qh"
+ #include "../../csqcmodellib/sv_model.qh"
+ #include "../round_handler.qh"
+#endif
+
/*
===========================================================================
+#ifndef WEAPONSYSTEM_H
+#define WEAPONSYSTEM_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../../common/util-pre.qh"
+ #include "../sys-pre.qh"
+ #include "../../dpdefs/progsdefs.qc"
+ #include "../../dpdefs/dpextensions.qc"
+ #include "../sys-post.qh"
+ #include "../../warpzonelib/anglestransform.qh"
+ #include "../../warpzonelib/mathlib.qh"
+ #include "../../warpzonelib/common.qh"
+ #include "../../warpzonelib/util_server.qh"
+ #include "../../warpzonelib/server.qh"
+ #include "../../common/constants.qh"
+ #include "../../common/stats.qh"
+ #include "../../common/teams.qh"
+ #include "../../common/util.qh"
+ #include "../../common/nades.qh"
+ #include "../../common/buffs.qh"
+ #include "../../common/test.qh"
+ #include "../../common/counting.qh"
+ #include "../../common/urllib.qh"
+ #include "../../common/command/markup.qh"
+ #include "../../common/command/rpn.qh"
+ #include "../../common/command/generic.qh"
+ #include "../../common/command/shared_defs.qh"
+ #include "../../common/net_notice.qh"
+ #include "../../common/animdecide.qh"
+ #include "../../common/monsters/monsters.qh"
+ #include "../../common/monsters/sv_monsters.qh"
+ #include "../../common/monsters/spawn.qh"
+ #include "../../common/weapons/config.qh"
+ #include "../../common/weapons/weapons.qh"
+ #include "accuracy.qh"
+ #include "common.qh"
+ #include "csqcprojectile.qh"
+ #include "hitplot.qh"
+ #include "selection.qh"
+ #include "spawning.qh"
+ #include "throwing.qh"
+ #include "tracing.qh"
+ #include "weaponstats.qh"
+#endif
+
float weaponswapping;
float internalteam;
void W_DropEvent(float event, entity player, float weapon_type, entity weapon_item);
float forbidWeaponUse();
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "anglestransform.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "anglestransform.qh"
+#endif
+
#ifdef POSITIVE_PITCH_IS_DOWN
vector fixedvectoangles(vector a)
{
+#ifndef ANGLETRANSFORM_H
+#define ANGLETRANSFORM_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+#endif
+
#define POSITIVE_PITCH_IS_DOWN
#ifdef POSITIVE_PITCH_IS_DOWN
// transformed = original * transform + postshift
vector AnglesTransform_Multiply_GetPostShift(vector sf0, vector st0, vector t1, vector st1);
vector AnglesTransform_PrePostShift_GetPostShift(vector sf, vector t, vector st);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "common.qh"
+ #include "client.qh"
+ #include "../client/autocvars.qh"
+ #include "../csqcmodellib/cl_model.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void WarpZone_Fade_PreDraw()
{
vector org;
+#ifndef CLIENT_H
+#define CLIENT_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "anglestransform.qh"
+ #include "mathlib.qh"
+ #include "common.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
void WarpZone_Read(float bIsNewEntity);
void WarpZone_Camera_Read(float bIsNewEntity);
void WarpZone_Teleported_Read(float bIsNewEntity);
vector warpzone_save_view_origin;
vector warpzone_save_view_angles;
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "common.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "common.qh"
+ #include "../common/weapons/weapons.qh"
+#endif
+
void WarpZone_Accumulator_Clear(entity acc)
{
acc.warpzone_transform = '0 0 0';
+#ifndef WARPZONELIB_COMMON_H
+#define WARPZONELIB_COMMON_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "anglestransform.qh"
+ #include "mathlib.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "anglestransform.qh"
+ #include "mathlib.qh"
+#endif
+
// uncomment this if your mod uses the roll angle in fixangle
// #define KEEP_ROLL
#ifndef BITXOR_ASSIGN
# define BITXOR_ASSIGN(a,b) ((a) = ((a) | (b)) - ((a) & (b)))
#endif
+#endif
\ No newline at end of file
+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "mathlib.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "mathlib.qh"
+#endif
+
int fpclassify(float x)
{
if(isnan(x))
+#ifndef MATHLIB_H
+#define MATHLIB_H
+
+#if defined(CSQC)
+ #include "../common/util-pre.qh"
+ #include "../client/sys-pre.qh"
+ #include "../dpdefs/csprogsdefs.qc"
+ #include "../client/sys-post.qh"
+ #include "../client/Defs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../common/constants.qh"
+ #include "../common/stats.qh"
+ #include "anglestransform.qh"
+#elif defined(MENUQC)
+ #include "../common/util-pre.qh"
+ #include "../menu/sys-pre.qh"
+ #include "../dpdefs/menudefs.qc"
+ #include "../dpdefs/keycodes.qc"
+ #include "../menu/sys-post.qh"
+ #include "../menu/config.qh"
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "anglestransform.qh"
+#endif
+
// <math.h>
// The commented-out functions need no implementation because DarkPlaces offers
const float M_2_SQRTPI = 1.12837916709551257390; /* 2/sqrt(pi) */
const float M_SQRT2 = 1.41421356237309504880; /* sqrt(2) */
const float M_SQRT1_2 = 0.70710678118654752440; /* 1/sqrt(2) */
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "common.qh"
+ #include "server.qh"
+ #include "../common/constants.qh"
+ #include "../common/util.qh"
+ #include "../server/constants.qh"
+ #include "../server/defs.qh"
+ #include "../server/command/common.qh"
+#endif
+
#ifdef WARPZONELIB_KEEPDEBUG
#define WARPZONELIB_REMOVEHACK
#endif
+#ifndef SERVER_H
+#define SERVER_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "anglestransform.qh"
+ #include "mathlib.qh"
+ #include "common.qh"
+ #include "util_server.qh"
+#endif
+
void WarpZone_StartFrame();
float WarpZone_Projectile_Touch();
void WarpZone_PlayerPhysics_FixVAngle(void);
void WarpZone_PostInitialize_Callback(void);
+#endif
\ No newline at end of file
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "common.qh"
+ #include "util_server.qh"
+ #include "../csqcmodellib/sv_model.qh"
+#endif
+
void WarpZoneLib_MoveOutOfSolid_Expand(entity e, vector by)
{
float eps = 0.0625;
+#ifndef UTIL_SERVER_H
+#define UTIL_SERVER_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../common/util-pre.qh"
+ #include "../server/sys-pre.qh"
+ #include "../dpdefs/progsdefs.qc"
+ #include "../dpdefs/dpextensions.qc"
+ #include "../server/sys-post.qh"
+ #include "anglestransform.qh"
+ #include "mathlib.qh"
+ #include "common.qh"
+#endif
+
float WarpZoneLib_MoveOutOfSolid(entity e);
float WarpZoneLib_ExactTrigger_Touch();
void WarpZoneLib_ExactTrigger_Init();
+#endif
\ No newline at end of file