X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=9068fa75bf53e95400df5e635e8551faa3ae3a2c;hb=9fd3e715c41327d67779a2049e25a0c883abb4bd;hp=22d9e54d6c71d4c8ea4a007a157354eb23b7e6d4;hpb=39c5a2ddb560b76d6134ee27da5096eb784eac25;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index 22d9e54d6..9068fa75b 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -16,14 +16,10 @@ noref float require_spawnfunc_prefix; // if this float exists, only functions wi // Globals -float ctf_score_value(string parameter); - float g_cloaked, g_footsteps, g_jump_grunt, g_grappling_hook, g_midair, g_minstagib, g_pinata, g_norecoil, g_minstagib_invis_alpha, g_bloodloss; float g_warmup_limit; float g_warmup_allguns; float g_warmup_allow_timeout; -float g_ctf_ignore_frags; -float g_ctf_reverse; float g_race_qualifying; float inWarmupStage; float g_pickup_respawntime_weapon; @@ -100,6 +96,7 @@ float maxclients; .float t_length, t_width; .vector destvec; // for rain +.vector destvec2; // for train .float cnt; // for rain .float count; //.float cnt2; @@ -200,6 +197,9 @@ void setanim(entity e, vector anim, float looping, float override, float restart .float watersound_finished; .float iscreature; .float damagedbycontents; +.float damagedbytriggers; +.float pushable; +.float teleportable; .vector oldvelocity; .float pauseregen_finished; @@ -276,11 +276,12 @@ float blockSpectators; //if set, new or existing spectators or observers will be .float spectatortime; //point in time since the client is spectating or observing void checkSpectatorBlock(); +float game_completion_ratio; // 0 at start, 1 near end .float winning; .float jointime; // time of joining .float alivetime; // time of being alive -float nJoinAllowed(float includeMe); +float nJoinAllowed(entity ignore); #define PREVENT_JOIN_TEXT "^1You may not join the game at this time.\n\nThe player limit reached maximum capacity." .float spawnshieldtime; @@ -341,8 +342,6 @@ string gamemode_name; float startitem_failed; -void DropFlag(entity flag, entity penalty_receiver, entity attacker); -void DropBall(entity ball, vector org, vector vel); void DropAllRunes(entity pl); @@ -350,13 +349,13 @@ typedef .float floatfield; floatfield Item_CounterField(float it); float W_AmmoItemCode(float wpn); -float W_WeaponBit(float wpn); string W_Name(float weaponid); +string W_Apply_Weaponreplace(string in); void FixIntermissionClient(entity e); void FixClientCvars(entity e); -float weaponsInMap; +WEPSET_DECLARE_A(weaponsInMap); .float respawn_countdown; // next number to count @@ -491,7 +490,6 @@ float independent_players; string clientstuff; .float phase; -.float weapons; .float pressedkeys; .float porto_forbidden; @@ -545,7 +543,7 @@ void SUB_UseTargets(); void ClientData_Touch(entity e); -vector debug_shotorg; // if non-zero, overrides the shot origin of all weapons +//vector debug_shotorg; // if non-zero, overrides the shot origin of all weapons .float wasplayer; @@ -570,7 +568,6 @@ float servertime, serverprevtime, serverframetime; string matchid; .float hitplotfh; -.string noise4; .float last_pickup; @@ -642,6 +639,8 @@ float serverflags; .float team_forced; // can be a team number to force a team, or 0 for default action, or -1 for forced spectator +.float player_blocked; + .float freezetag_frozen; .float freezetag_revive_progress; @@ -654,3 +653,22 @@ typedef vector(entity player, entity spot, vector current) spawn_evalfunc_t; .spawn_evalfunc_t spawn_evalfunc; .entity conveyor; + +string modname; + +.float missile_flags; +#define MIF_SPLASH 2 +#define MIF_ARC 4 +#define MIF_PROXY 8 +#define MIF_GUIDED_MANUAL 16 +#define MIF_GUIDED_HEAT 32 +#define MIF_GUIDED_LASER 64 +#define MIF_GUIDED_AI 128 +#define MIF_GUIDED_TAG 128 +#define MIF_GUIDED_ALL (MIF_GUIDED_MANUAL | MIF_GUIDED_HEAT | MIF_GUIDED_LASER | MIF_GUIDED_AI | MIF_GUIDED_TAG) +#define MIF_GUIDED_TRACKING (MIF_GUIDED_HEAT | MIF_GUIDED_LASER | MIF_GUIDED_AI | MIF_GUIDED_TAG) +#define MIF_GUIDED_CONFUSABLE (MIF_GUIDED_HEAT | MIF_GUIDED_AI) + +#define MISSILE_IS_CONFUSABLE(m) ((m.missile_flags & MIF_GUIDED_CONFUSABLE) ? TRUE : FALSE) +#define MISSILE_IS_GUIDED(m) ((m.missile_flags & MIF_GUIDED_ALL) ? TRUE : FALSE) +#define MISSILE_IS_TRACKING(m) ((m.missile_flags & MIF_GUIDED_TRACKING) ? TRUE : FALSE)