| 109 | } |
| 110 | |
| 111 | void NPC_alwaysUseSphere(xEnt* ent, xVec3* value) |
| 112 | { |
| 113 | xNPCBasic* npc = (xNPCBasic*)ent; |
| 114 | const xVec3 vec = { 0, 0, 0 }; |
| 115 | xVec3 bndcent = vec; |
| 116 | |
| 117 | xVec3Copy(&bndcent, xEntGetPos(npc)); |
| 118 | bndcent.y += 0.75f; |
| 119 | |
| 120 | npc->bound.type = XBOUND_TYPE_SPHERE; |
| 121 | xVec3Copy(&npc->bound.sph.center, &bndcent); |
| 122 | npc->bound.sph.r = 0.75f; |
| 123 | if (npc->bound.type != XBOUND_TYPE_NA) |
| 124 | { |
| 125 | xQuickCullForBound(&npc->bound.qcd, &npc->bound); |
| 126 | } |
| 127 | |
| 128 | zGridUpdateEnt(npc); |
| 129 | if (npc->DBG_IsNormLog(eNPCDCAT_Eight, 2) || npc->DBG_IsNormLog(eNPCDCAT_Seven, 2)) |
| 130 | { |
| 131 | xDrawSetColor(g_PIMP_GOLD); |
| 132 | xBoundDraw(&npc->bound); |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | void NPC_spdBasedColFreq(xNPCBasic* npc, F32 dt) |
| 137 | { |
nothing calls this directly
no test coverage detected