if(warpzone_warpzones_exist)
WarpZone_StoreProjectileData(it);
- if((IS_OBSERVER(it) || it.solid == SOLID_NOT) && IS_REAL_CLIENT(it))
+ if((IS_OBSERVER(it) || it.solid == SOLID_NOT))
+ if(IS_REAL_CLIENT(it))
{
other = it; // player
float LOD_customize()
{SELFPARAM();
- float d;
-
if(autocvar_loddebug)
{
- d = autocvar_loddebug;
+ int d = autocvar_loddebug;
if(d == 1)
self.modelindex = self.lodmodelindex0;
else if(d == 2 || !self.lodmodelindex2)
}
// TODO csqc network this so it only gets sent once
- d = vlen(NearestPointOnBox(self, other.origin) - other.origin);
- if(d < self.loddistance1)
+ vector near_point = NearestPointOnBox(self, other.origin);
+ if(vdist(near_point - other.origin, <, self.loddistance1))
self.modelindex = self.lodmodelindex0;
- else if(!self.lodmodelindex2 || d < self.loddistance2)
+ else if(!self.lodmodelindex2 || vdist(near_point - other.origin, <, self.loddistance2))
self.modelindex = self.lodmodelindex1;
else
self.modelindex = self.lodmodelindex2;