]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Working untouch code, but delayed by 1 second. I think the only way to fix this would...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 3 May 2010 11:30:28 +0000 (14:30 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 3 May 2010 11:30:28 +0000 (14:30 +0300)
qcsrc/server/g_triggers.qc

index 1ef07d4904047691a19f4954a26f8eb5dde6fd2e..a41315f7186aa262a2c68e6716b6297c9300a8da 100644 (file)
@@ -537,13 +537,16 @@ void spawnfunc_trigger_heal()
 .entity trigger_gravity_check;
 void trigger_gravity_check_think()
 {
-       if(self.owner.triggergravitytime < time + 0.1) // need to figure out a correct formula here
+       // Entity that spawns when you enter a gravity zone, and checks if you left it
+       if(self.owner.triggergravitytime < time - 0.1) // need to figure out a correct formula here
        {
                dprint("XXXXXXXXXXXXXXXXXXXXXXXXXX ");
                self.owner.gravity = 0;
                self.nextthink = self.owner.triggergravity = 0;
                remove(self);
        }
+       else
+               self.nextthink = time + 0.1;
 }
 
 void trigger_gravity_touch()