| 372 | { |
| 373 | if (cruise_bubble::active()) |
| 374 | { |
| 375 | if (xEntIsVisible(sTeleportUI)) |
| 376 | { |
| 377 | zEntEvent("mnu4 teleport box", eEventInvisible); |
| 378 | } |
| 379 | } |
| 380 | else |
| 381 | { |
| 382 | if (!xEntIsVisible(sTeleportUI) && target->status == STATUS_CLOSED) |
| 383 | { |
| 384 | zEntEvent("mnu4 teleport box", eEventVisible); |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | xVec3 playerMid; |
| 390 | xVec3Copy(&playerMid, (xVec3*)&globals.player.ent.model->Mat->pos); |
| 391 | |
| 392 | playerMid.y += 0.5f; |
| 393 | |
| 394 | if (xPointInBox(&ent->trig[0], &playerMid) || xPointInBox(&ent->trig[1], &playerMid) || |
no test coverage detected