X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmiscfunctions.qh;h=f1f003820d1b8c736c48261847a34a83f4699164;hb=86c9dc7c3696c329496b06375c1e79fb407401ce;hp=860eadcaa29f85852777eecc68150266581187df;hpb=0c94dccee1874645992d3dc192f8cc1671d98f35;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/miscfunctions.qh b/qcsrc/server/miscfunctions.qh index 860eadcaa..f1f003820 100644 --- a/qcsrc/server/miscfunctions.qh +++ b/qcsrc/server/miscfunctions.qh @@ -8,6 +8,7 @@ #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); @@ -77,8 +76,6 @@ float DistributeEvenly_amount; float DistributeEvenly_totalweight; void objerror(string s); void droptofloor(); -void() spawnfunc_info_player_deathmatch; // needed for the other spawnpoints -void() spawnpoint_use; void() SUB_Remove; void attach_sameorigin(entity e, entity to, string tag); @@ -157,6 +154,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))