]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
conveyor: make it more clever for regular ents too
authorRudolf Polzer <divverent@alientrap.org>
Fri, 30 Dec 2011 19:15:38 +0000 (20:15 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 30 Dec 2011 19:15:38 +0000 (20:15 +0100)
qcsrc/server/t_plats.qc

index 30f425bfc74a95331da02529f689db09bf428c13..b0450eb2e20583355db0bc0b8c65e853d70c9b40 100644 (file)
@@ -2086,10 +2086,14 @@ void conveyor_think()
                        if(e.flags & FL_CLIENT) // doing it via velocity has quite some advantages
                                continue; // done in SV_PlayerPhysics
 
+                       e.origin += self.movedir * sys_frametime;
+                       move_out_of_solid(e);
+                       /*
                        // stupid conveyor code
                        tracebox(e.origin, e.mins, e.maxs, e.origin + self.movedir * sys_frametime, MOVE_NORMAL, e);
                        if(trace_fraction > 0)
                                setorigin(e, trace_endpos);
+                       */
                }
        }