From: Mario Date: Thu, 9 Jul 2015 06:37:31 +0000 (+1000) Subject: Merge branch 'master' into Mario/ctf_updates X-Git-Tag: xonotic-v0.8.1~29^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc62dfa34fa5b13d63660d5249633af1222d6476;p=xonotic%2Fxonotic-data.pk3dir.git Merge branch 'master' into Mario/ctf_updates Conflicts: qcsrc/client/hud.qc --- fc62dfa34fa5b13d63660d5249633af1222d6476 diff --cc qcsrc/client/hud.qc index 15cc11760,b61fe2a5d..331588200 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@@ -1,12 -1,24 +1,27 @@@ + #include "hud.qh" + #include "_all.qh" + + #include "hud_config.qh" #include "scoreboard.qh" + #include "sortlist.qh" #include "teamradar.qh" + #include "t_items.qh" + #include "../common/buffs.qh" + #include "../common/constants.qh" #include "../common/counting.qh" + #include "../common/deathtypes.qh" #include "../common/mapinfo.qh" #include "../common/nades.qh" - #include "../server/t_items.qh" ++ +#include "../server/mutators/gamemode_ctf.qh" + + #include "../common/stats.qh" + + #include "../csqcmodellib/cl_player.qh" + + #include "../warpzonelib/mathlib.qh" + /* ================== Misc HUD functions diff --cc qcsrc/server/mutators/gamemode_ctf.qh index d2572bc45,302f6ce10..3cac4bd41 --- a/qcsrc/server/mutators/gamemode_ctf.qh +++ b/qcsrc/server/mutators/gamemode_ctf.qh @@@ -74,31 -71,33 +74,33 @@@ bool wpforenemy_announced float wpforenemy_nextthink; // statuses -const float FLAG_BASE = 1; -const float FLAG_DROPPED = 2; -const float FLAG_CARRY = 3; -const float FLAG_PASSING = 4; +const int FLAG_BASE = 1; +const int FLAG_DROPPED = 2; +const int FLAG_CARRY = 3; +const int FLAG_PASSING = 4; -const float DROP_NORMAL = 1; -const float DROP_THROW = 2; -const float DROP_PASS = 3; -const float DROP_RESET = 4; +const int DROP_NORMAL = 1; +const int DROP_THROW = 2; +const int DROP_PASS = 3; +const int DROP_RESET = 4; -const float PICKUP_BASE = 1; -const float PICKUP_DROPPED = 2; +const int PICKUP_BASE = 1; +const int PICKUP_DROPPED = 2; -const float CAPTURE_NORMAL = 1; -const float CAPTURE_DROPPED = 2; +const int CAPTURE_NORMAL = 1; +const int CAPTURE_DROPPED = 2; -const float RETURN_TIMEOUT = 1; -const float RETURN_DROPPED = 2; -const float RETURN_DAMAGE = 3; -const float RETURN_SPEEDRUN = 4; -const float RETURN_NEEDKILL = 5; +const int RETURN_TIMEOUT = 1; +const int RETURN_DROPPED = 2; +const int RETURN_DAMAGE = 3; +const int RETURN_SPEEDRUN = 4; +const int RETURN_NEEDKILL = 5; + void ctf_Handle_Throw(entity player, entity receiver, float droptype); + // flag properties #define ctf_spawnorigin dropped_origin -float ctf_stalemate; // indicates that a stalemate is active +bool ctf_stalemate; // indicates that a stalemate is active float ctf_captimerecord; // record time for capturing the flag .float ctf_pickuptime; .float ctf_droptime;