X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmiscfunctions.qc;h=88b29fe27123dd2138058b573137baffbea0dab7;hb=90a5b3918920a8235311e850fe239044acefe6c8;hp=060fa62689b721379829763b3701584a202a4846;hpb=2242b9cc6358009eaa7068bd9e58384c4b4092e8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 060fa6268..88b29fe27 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -796,10 +796,6 @@ float want_weapon(string cvarprefix, entity weaponinfo, float allguns) t |= (i == WEP_HOOK); } - // we cannot disable porto in Nexball, we must force it - if(g_nexball && i == WEP_PORTO) - t = 1; - return t; } @@ -1082,6 +1078,8 @@ void readlevelcvars(void) MUTATOR_ADD(mutator_vampire); if(cvar("g_spawn_near_teammate")) MUTATOR_ADD(mutator_spawn_near_teammate); + if(cvar("g_physical_items")) + MUTATOR_ADD(mutator_physical_items); // is this a mutator? is this a mode? if(cvar("g_sandbox")) @@ -1990,6 +1988,9 @@ float WarpZone_Projectile_Touch_ImpactFilter_Callback() } #define PROJECTILE_TOUCH if(WarpZone_Projectile_Touch()) return +#define ITEM_TOUCH_NEEDKILL() (((trace_dpstartcontents | trace_dphitcontents) & DPCONTENTS_NODROP) || (trace_dphitq3surfaceflags & Q3SURFACEFLAG_SKY)) +#define ITEM_DAMAGE_NEEDKILL(dt) (((dt) == DEATH_HURTTRIGGER) || ((dt) == DEATH_SLIME) || ((dt) == DEATH_LAVA) || ((dt) == DEATH_SWAMP)) + void URI_Get_Callback(float id, float status, string data) { if(url_URI_Get_Callback(id, status, data))