#ifdef SVQC
str = min(self.radius, vlen(self.origin - other.origin));
#elif defined(CSQC)
- str = min(self.radius, vlen(self.move_origin - other.move_origin));
+ str = min(self.radius, vlen(self.origin - other.move_origin));
#endif
if(self.falloff == 1)
other.velocity += accelspeed * normalize(targ.origin - self.origin);
}
#elif defined(CSQC)
- float addspeed = str - other.move_velocity * normalize(targ.move_origin - self.move_origin);
+ float addspeed = str - other.move_velocity * normalize(targ.origin - self.origin);
if (addspeed > 0)
{
float accelspeed = min(8 * pushdeltatime * str, addspeed);
- other.move_velocity += accelspeed * normalize(targ.move_origin - self.move_origin);
+ other.move_velocity += accelspeed * normalize(targ.origin - self.origin);
}
#endif
}
#ifdef SVQC
other.velocity = other.velocity + normalize(targ.origin - self.origin) * str * pushdeltatime;
#elif defined(CSQC)
- other.move_velocity = other.move_velocity + normalize(targ.move_origin - self.move_origin) * str * pushdeltatime;
+ other.move_velocity = other.move_velocity + normalize(targ.origin - self.origin) * str * pushdeltatime;
#endif
#ifdef SVQC
- other.flags &= ~FL_ONGROUND;
+ UNSET_ONGROUND(other);
UpdateCSQCProjectile(other);
#elif defined(CSQC)
#ifdef SVQC
str = min(self.radius, vlen(self.origin - other.origin));
#elif defined(CSQC)
- str = min(self.radius, vlen(self.move_origin - other.move_origin));
+ str = min(self.radius, vlen(self.origin - other.move_origin));
#endif
if(self.falloff == 1)
UpdateCSQCProjectile(other);
#elif defined(CSQC)
- other.move_velocity = other.move_velocity + normalize(other.move_origin - self.move_origin) * str * pushdeltatime;
+ other.move_velocity = other.move_velocity + normalize(other.move_origin - self.origin) * str * pushdeltatime;
#endif
}
void trigger_push_link()
{
+ BITSET_ASSIGN(self.effects, EF_NODEPTHTEST);
Net_LinkEntity(self, false, 0, trigger_push_send);
}
#endif
WriteCoord(MSG_ENTITY, self.origin_y);
WriteCoord(MSG_ENTITY, self.origin_z);
+ WriteAngle(MSG_ENTITY, self.angles_x);
+ WriteAngle(MSG_ENTITY, self.angles_y);
+ WriteAngle(MSG_ENTITY, self.angles_z);
+
return true;
}
void target_push_link()
{SELFPARAM();
+ BITSET_ASSIGN(self.effects, EF_NODEPTHTEST);
Net_LinkEntity(self, false, 0, target_push_send);
//self.SendFlags |= 1; // update
}
self.origin_y = ReadCoord();
self.origin_z = ReadCoord();
+ self.angles_x = ReadAngle();
+ self.angles_y = ReadAngle();
+ self.angles_z = ReadAngle();
+
return = true;
setorigin(self, self.origin);