void WarpZone_Read(float isnew)
{
- float f;
-
warpzone_warpzones_exist = 1;
if (!self.enemy)
{
}
self.classname = "trigger_warpzone";
- f = ReadByte();
+ int f = ReadByte();
self.warpzone_isboxy = (f & 1);
if(f & 4)
{
void WarpZone_Camera_Read(float isnew)
{
- float f;
warpzone_cameras_exist = 1;
self.classname = "func_warpzone_camera";
- f = ReadByte();
+ int f = ReadByte();
if(f & 4)
{
self.origin_x = ReadCoord();
float warpzone_fixingview;
float warpzone_fixingview_drawexteriormodel;
-float autocvar_chase_active;
void WarpZone_View_Outside()
{
entity e;
float pd;
- 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);
e = WarpZone_Find(mi, ma);
if(e)
}
#ifndef KEEP_ROLL
-var float autocvar_cl_rollkillspeed = 10;
+float autocvar_cl_rollkillspeed = 10;
#endif
void WarpZone_FixView()
{
rick = getproperty(VF_CL_VIEWANGLES_Z);
rick *= f;
setproperty(VF_CL_VIEWANGLES_Z, rick);
- ang_z *= f;
+ ang.z *= f;
#endif
setproperty(VF_ORIGIN, org);