+#if defined(CSQC)
+ #include "../dpdefs/csprogsdefs.qh"
+ #include "common.qh"
+ #include "../server/t_items.qh"
+#elif defined(MENUQC)
+#elif defined(SVQC)
+ #include "../dpdefs/progsdefs.qh"
+ #include "../dpdefs/dpextensions.qh"
+ #include "common.qh"
+ #include "../common/weapons/weapons.qh"
+#endif
+
void WarpZone_Accumulator_Clear(entity acc)
{
acc.warpzone_transform = '0 0 0';
sol = -1;
frac = 0;
i = 16;
- for(0;;)
+ for (;;)
{
if(--i < 1)
{
}
WarpZone_MakeAllSolid();
i = 16;
- for(0;;)
+ for (;;)
{
if(--i < 1)
{
#ifdef KEEP_ROLL
float roll;
roll = ang.z;
- ang_z = 0;
+ ang.z = 0;
#endif
ang = AnglesTransform_ApplyToVAngles(wz.warpzone_transform, ang);
#ifdef KEEP_ROLL
ang = AnglesTransform_Normalize(ang, true);
ang = AnglesTransform_CancelRoll(ang);
- ang_z = roll;
+ ang.z = roll;
#else
ang = AnglesTransform_Normalize(ang, false);
#endif
float roll;
roll = ang.z;
- ang_z = 0;
+ ang.z = 0;
ang = AnglesTransform_ApplyToVAngles(AnglesTransform_Invert(wz.warpzone_transform), ang);
ang = AnglesTransform_Normalize(ang, true);
ang = AnglesTransform_CancelRoll(ang);
- ang_z = roll;
+ ang.z = roll;
return ang;
}
vector WarpZoneLib_NearestPointOnBox(vector mi, vector ma, vector org)
{
vector nearest;
- nearest_x = bound(mi.x, org.x, ma.x);
- nearest_y = bound(mi.y, org.y, ma.y);
- nearest_z = bound(mi.z, org.z, ma.z);
+ nearest.x = bound(mi.x, org.x, ma.x);
+ nearest.y = bound(mi.y, org.y, ma.y);
+ nearest.z = bound(mi.z, org.z, ma.z);
return nearest;
}