]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_jumppads.qc
Make a generic trigger touch function
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_jumppads.qc
index d45879491525dca01c4c587fcf7c47fcd97b02f5..fa2f4fe50a5ae8c8c4e72fc483c64d6fb8f2eeae 100644 (file)
@@ -456,19 +456,11 @@ void spawnfunc_target_position() { target_push_link(); }
 #ifdef CSQC
 void trigger_push_draw()
 {
-       /*float dt = time - self.move_time;
+       float dt = time - self.move_time;
        self.move_time = time;
-       if(dt <= 0)
-               return;*/
+       if(dt <= 0) { return; }
 
-       tracebox(self.origin, self.mins, self.maxs, self.origin, MOVE_NORMAL, self);
-
-       //if(trace_fraction < 1)
-       if(trace_ent)
-       {
-               other = trace_ent;
-               trigger_push_touch();
-       }
+       trigger_touch_generic(trigger_push_touch);
 }
 
 void ent_trigger_push()