X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fmiscfunctions.qh;h=3b5767373629a3d61c87899565b37681e7614b30;hb=bcadfbac06557383ee6d266bb92331d6fb1e9599;hp=12dbe3a2c795a72512c012cf9deaba5cb1dbbfe6;hpb=02e0727816326407cc681dd2d12c67d157e618cf;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/miscfunctions.qh b/qcsrc/server/miscfunctions.qh index 12dbe3a2c..3b5767373 100644 --- a/qcsrc/server/miscfunctions.qh +++ b/qcsrc/server/miscfunctions.qh @@ -3,11 +3,12 @@ #include "t_items.qh" -#include "mutators/base.qh" +#include "mutators/events.qh" #include "mutators/gamemode_race.qh" #include "../common/constants.qh" #include "../common/mapinfo.qh" +#include "../common/turrets/turrets.qh" #ifdef RELEASE #define cvar_string_normal builtin_cvar_string @@ -48,8 +49,6 @@ void modeleffect_spawn(string m, float s, float f, vector o, vector v, vector an void shockwave_spawn(string m, vector org, float sz, float t1, float t2); -vector randompos(vector m1, vector m2); - void play2team(float t, string filename); void GetCvars_handleFloat(string thisname, float f, .float field, string name); @@ -75,7 +74,6 @@ vector shotorg_adjust(vector vecs, float y_is_right, float visual); float DistributeEvenly_amount; float DistributeEvenly_totalweight; -var void remove(entity e); void objerror(string s); void droptofloor(); void() spawnfunc_info_player_deathmatch; // needed for the other spawnpoints @@ -158,6 +156,10 @@ const string STR_OBSERVER = "observer"; #define IS_REAL_CLIENT(v) (clienttype(v) == CLIENTTYPE_REAL) #define IS_NOT_A_CLIENT(v) (clienttype(v) == CLIENTTYPE_NOTACLIENT) +#define IS_MONSTER(v) (v.flags & FL_MONSTER) +#define IS_VEHICLE(v) (v.vehicle_flags & VHF_ISVEHICLE) +#define IS_TURRET(v) (v.turret_flags & TUR_FLAG_ISTURRET) + #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))