Merge pull request #43 from tyleryoung88/main

[Server] Allow mystery box to teleport on non-FTE platforms
This commit is contained in:
Ian 2023-02-22 14:31:40 -05:00 committed by GitHub
commit 63fb7c9d07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1456,11 +1456,12 @@ void() Float_Change =
if (self.wait <= time) if (self.wait <= time)
{ {
tpspot = find(world, classname, "mystery_box_tp_spot"); tpspot = find(world, classname, "mystery_box_tp_spot");
if (tpspot && self.owner.spins > 3) { if (tpspot != world && self.owner.spins > 3) {
teddygen = random(); teddygen = random();
//bprint(PRINT_HIGH, "found tp spot\n");
} else { } else {
teddygen = 0; teddygen = 0;
//bprint(PRINT_HIGH, "no spots\n"); //bprint(PRINT_HIGH, "no tp spot or spins < 3\n");
} }
self.velocity = '0 0 0'; self.velocity = '0 0 0';
@ -1470,6 +1471,7 @@ void() Float_Change =
self.weapon = r; self.weapon = r;
self.nextthink = time + 5; self.nextthink = time + 5;
self.think = Float_Decrease; self.think = Float_Decrease;
//bprint(PRINT_HIGH, "spot not found, or teddygun is > 0.7\n");
return; return;
} }
else { else {