10.03.2018, 10:29
Thanks for updating, i found one thing that i think must be different:
shouldn't this be:
Without that change i experience that the NPCs set their quaternions with respect to the node behind them.
You wouldn't be needing this part on line 1834 as well anymore:
Code:
CA_RayCastLineAngle(X, Y, Z + 0.75, X, Y, Z - 3.0, waste, waste, waste, surface_rx, surface_ry, waste);
Code:
CA_RayCastLineAngle(DriverPath[driverid][cnode][0], DriverPath[driverid][cnode][1], DriverPath[driverid][cnode][2] + 0.75, DriverPath[driverid][cnode][0], DriverPath[driverid][cnode][1], DriverPath[driverid][cnode][2] - 3.0, waste, waste, waste, surface_rx, surface_ry, waste);
You wouldn't be needing this part on line 1834 as well anymore:
Code:
FCNPC_GetPosition(npcid, X, Y, Z);