mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 03:41:15 +00:00
Merge pull request #43 from tyleryoung88/main
[Server] Allow mystery box to teleport on non-FTE platforms
This commit is contained in:
commit
63fb7c9d07
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue