// TODO: split target_push and put it in the target folder
#ifdef SVQC
#include "jumppads.qh"
+#include "../../movetypes/movetypes.qh"
+#include "../../../server/_all.qh"
void trigger_push_use()
{
if(self.enemy)
{
other.velocity = trigger_push_calculatevelocity(other.origin, self.enemy, self.height);
+ other.move_velocity = other.velocity;
}
else if(self.target)
{
RandomSelection_Add(e, 0, string_null, 1, 1);
}
other.velocity = trigger_push_calculatevelocity(other.origin, RandomSelection_chosen_ent, self.height);
+ other.move_velocity = other.velocity;
}
else
{
other.velocity = self.movedir;
+ other.move_velocity = other.velocity;
}
UNSET_ONGROUND(other);
+ other.move_flags &= ~FL_ONGROUND;
+
#ifdef SVQC
if (IS_PLAYER(other))
{
// first calculate a typical start point for the jump
org = (self.absmin + self.absmax) * 0.5;
- org_z = self.absmax.z - PL_MIN_z;
+ org_z = self.absmax.z - PL_MIN.z;
if (self.target)
{
void trigger_push_link()
{
- Net_LinkEntity(self, false, 0, trigger_push_send);
+ //Net_LinkEntity(self, false, 0, trigger_push_send);
}
#endif
#ifdef SVQC