]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Partially working trains
authorMario <zacjardine@y7mail.com>
Fri, 20 Feb 2015 03:44:53 +0000 (14:44 +1100)
committerMario <zacjardine@y7mail.com>
Fri, 20 Feb 2015 03:44:53 +0000 (14:44 +1100)
qcsrc/common/triggers/func/train.qc

index 2b4f67cd023a13bde9ef18027183e13d1bde920f..2a5d2fa0c61b2bf3db34043574916f312242a43f 100644 (file)
@@ -210,7 +210,7 @@ void spawnfunc_func_train()
                self.view_ofs = self.mins;
 
        // wait for targets to spawn
-       InitializeEntity(self, func_train_find, INITPRIO_SETLOCATION);
+       InitializeEntity(self, func_train_find, INITPRIO_FINDTARGET);
 
        self.blocked = generic_plat_blocked;
        if(self.dmg && (self.message == ""))
@@ -297,8 +297,9 @@ void ent_train()
                //func_train_find();
 
                // but we will need these
-               self.move_nextthink = self.move_ltime + 0.1;
-               self.move_think = train_next;
+               //self.move_nextthink = self.move_ltime + 0.1;
+               //self.move_think = train_next;
+               train_next();
 
                self.move_movetype = MOVETYPE_PUSH;
                self.move_origin = self.origin;