- if(
-#ifdef COMPAT_XON060_DONTCRASH_CHECKPVS
- cvar_string("g_xonoticversion") != "0.5.0" &&
- cvar_string("g_xonoticversion") != "0.6.0" &&
-#endif
- !checkpvs(org, self)) // this makes sense as long as we don't support recursive warpzones
+ if(!checkpvs(org, self)) // this makes sense as long as we don't support recursive warpzones
self.alpha = 0;
else if(self.warpzone_fadestart)
self.alpha = bound(0, (self.warpzone_fadeend - vlen(org - self.origin - 0.5 * (self.mins + self.maxs))) / (self.warpzone_fadeend - self.warpzone_fadestart), 1);
else
self.alpha = 1;
self.alpha = 0;
else if(self.warpzone_fadestart)
self.alpha = bound(0, (self.warpzone_fadeend - vlen(org - self.origin - 0.5 * (self.mins + self.maxs))) / (self.warpzone_fadeend - self.warpzone_fadestart), 1);
else
self.alpha = 1;
- mi_x = min(o_x, c0_x, c1_x, c2_x, c3_x);
- ma_x = max(o_x, c0_x, c1_x, c2_x, c3_x);
- mi_y = min(o_y, c0_y, c1_y, c2_y, c3_y);
- ma_y = max(o_y, c0_y, c1_y, c2_y, c3_y);
- mi_z = min(o_z, c0_z, c1_z, c2_z, c3_z);
- ma_z = max(o_z, c0_z, c1_z, c2_z, c3_z);
+ mi.x = min(o.x, c0_x, c1_x, c2_x, c3_x);
+ ma.x = max(o.x, c0_x, c1_x, c2_x, c3_x);
+ mi.y = min(o.y, c0_y, c1_y, c2_y, c3_y);
+ ma.y = max(o.y, c0_y, c1_y, c2_y, c3_y);
+ mi.z = min(o.z, c0_z, c1_z, c2_z, c3_z);
+ ma.z = max(o.z, c0_z, c1_z, c2_z, c3_z);
vector org, ang, nearclip, corner0, corner1, corner2, corner3, o;
float f;
vector org, ang, nearclip, corner0, corner1, corner2, corner3, o;
float f;
- org = getpropertyvec(VF_ORIGIN);
- ang = getpropertyvec(VF_ANGLES);
-#ifdef WORKAROUND_XON010
- float dirty;
- dirty = checkextension("DP_CSQC_ROTATEMOVES");
-#endif
+ warpzone_save_view_origin = org = getpropertyvec(VF_ORIGIN);
+ warpzone_save_view_angles = ang = getpropertyvec(VF_ANGLES);
e = WarpZone_Find(org, org);
if(e)
{
org = WarpZone_TransformOrigin(e, org);
ang = WarpZone_TransformVAngles(e, ang);
e = WarpZone_Find(org, org);
if(e)
{
org = WarpZone_TransformOrigin(e, org);
ang = WarpZone_TransformVAngles(e, ang);
rick = getproperty(VF_CL_VIEWANGLES_Z);
rick *= f;
setproperty(VF_CL_VIEWANGLES_Z, rick);
rick = getproperty(VF_CL_VIEWANGLES_Z);
rick *= f;
setproperty(VF_CL_VIEWANGLES_Z, rick);
setproperty(VF_ORIGIN, org);
setproperty(VF_ANGLES, ang);
setproperty(VF_ORIGIN, org);
setproperty(VF_ANGLES, ang);