From 5bd34bb2accc692caf930048ca840945b18630cf Mon Sep 17 00:00:00 2001 From: Tyler Young Date: Wed, 22 Feb 2023 14:25:42 -0500 Subject: [PATCH] [Server] Allow mystery box to teleport on non-FTE platforms --- source/server/entities/machines.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/server/entities/machines.qc b/source/server/entities/machines.qc index 56372ed..7107561 100644 --- a/source/server/entities/machines.qc +++ b/source/server/entities/machines.qc @@ -1456,11 +1456,12 @@ void() Float_Change = if (self.wait <= time) { tpspot = find(world, classname, "mystery_box_tp_spot"); - if (tpspot && self.owner.spins > 3) { + if (tpspot != world && self.owner.spins > 3) { teddygen = random(); + //bprint(PRINT_HIGH, "found tp spot\n"); } else { teddygen = 0; - //bprint(PRINT_HIGH, "no spots\n"); + //bprint(PRINT_HIGH, "no tp spot or spins < 3\n"); } self.velocity = '0 0 0'; @@ -1470,6 +1471,7 @@ void() Float_Change = self.weapon = r; self.nextthink = time + 5; self.think = Float_Decrease; + //bprint(PRINT_HIGH, "spot not found, or teddygun is > 0.7\n"); return; } else {