// these are needed since mutators are compiled last
+#ifdef SVQC
// used in cheats.qc
-void ctf_RespawnFlag(entity flag)
+void ctf_RespawnFlag(entity flag);
// score rule declarations
#define ST_CTF_CAPS 1
#define WPCOLOR_FLAGCARRIER(t) ('0.8 0.8 0')
#define WPCOLOR_DROPPEDFLAG(t) (('0.25 0.25 0.25' + colormapPaletteColor(t - 1, FALSE)) * 0.5)
-// sounds
+// sounds
#define snd_flag_taken noise
#define snd_flag_returned noise1
#define snd_flag_capture noise2
// waypoint sprites
.entity bot_basewaypoint; // flag waypointsprite
.entity wps_helpme;
-.entity wps_flagbase;
+.entity wps_flagbase;
.entity wps_flagcarrier;
.entity wps_flagdropped;
.entity wps_enemyflagcarrier;
+.float wps_helpme_time;
float wpforenemy_announced;
float wpforenemy_nextthink;
.float max_flag_health;
.float next_take_time;
-// passing properties
+// passing/throwing properties
.float pass_distance;
.entity pass_sender;
.entity pass_target;
.float throw_prevtime;
.float throw_count;
-// passing macros
-#define PLAYER_CENTER(ent) (ent.origin + ((ent.classname == "player") ? ent.view_ofs : ((ent.mins + ent.maxs) * 0.5)))
-
// CaptureShield: If the player is too bad to be allowed to capture, shield them from taking the flag.
.float ctf_captureshielded; // set to 1 if the player is too bad to be allowed to capture
float ctf_captureshield_min_negscore; // punish at -20 points
float havocbot_ctf_middlepoint_radius;
void havocbot_role_ctf_setrole(entity bot, float role);
+#endif