//Net_LinkEntity(self, 0, false, train_send);
}
+void train_use()
+{
+ self.SUB_NEXTTHINK = self.SUB_LTIME + 1;
+ self.SUB_THINK = train_next;
+ self.use = func_null; // not again
+}
+
void func_train_find()
{SELFPARAM();
entity targ;
if (self.target == "")
objerror("func_train_find: no next target");
SUB_SETORIGIN(self, targ.origin - self.view_ofs);
- self.SUB_NEXTTHINK = self.SUB_LTIME + 1;
- self.SUB_THINK = train_next;
+
+ if(!(self.spawnflags & 4))
+ {
+ self.SUB_NEXTTHINK = self.SUB_LTIME + 1;
+ self.SUB_THINK = train_next;
+ }
train_link();
}
return;
self.effects |= EF_LOWPRECISION;
+ if(self.spawnflags & 4)
+ self.use = train_use;
+
if (self.spawnflags & 2)
{
self.platmovetype_turn = true;