Incomplete data
| 1689 | |
| 1690 | // Incomplete data |
| 1691 | static void genericTikiRender(xEnt* ent) |
| 1692 | { |
| 1693 | if (!ent->model || !xEntIsVisible(ent)) |
| 1694 | { |
| 1695 | return; |
| 1696 | } |
| 1697 | |
| 1698 | F32 dot = 2.0f; |
| 1699 | xVec3 tmp; |
| 1700 | |
| 1701 | if ((globals.player.ControlOff & 0x23f3) == 0) |
| 1702 | { |
| 1703 | xVec3Sub(&tmp, &ent->bound.box.center, &globals.camera.mat.pos); |
| 1704 | dot = xVec3Dot(&tmp, &globals.camera.mat.at); |
| 1705 | } |
| 1706 | |
| 1707 | if (dot < 1.5f) |
| 1708 | { |
| 1709 | ent->model->Alpha -= 3.0f * globals.update_dt; |
| 1710 | } |
| 1711 | else |
| 1712 | { |
| 1713 | ent->model->Alpha += 3.0f * globals.update_dt; |
| 1714 | if (ent->model->Alpha > 1.0f) |
| 1715 | { |
| 1716 | ent->model->Alpha = 1.0f; |
| 1717 | } |
| 1718 | } |
| 1719 | |
| 1720 | if (ent->model->Alpha < 0.0f) |
| 1721 | { |
| 1722 | ent->model->Alpha = 0.0f; |
| 1723 | return; |
| 1724 | } |
| 1725 | |
| 1726 | xModelRender(ent->model); |
| 1727 | } |
| 1728 | |
| 1729 | static void loveyTikiRender(xEnt* ent) |
| 1730 | { |
nothing calls this directly
no test coverage detected