revolucas / CoC-Xray

Modified X-Ray engine for Call of Chernobyl
Other
74 stars 33 forks source link

[Bugs] CCar #10

Closed revolucas closed 6 years ago

revolucas commented 7 years ago

I cannot figure out how to fix vehicle spawning. If you spawn by script, the vehicle is fine until it goes offline, the pshell/mesh xform seem to be unaligned. If you spawn through all.spawn and vehicle is not facing the exact direction it faces in Actor Editor, it will be unaligned. Which means that, if not appropriately aligned, that car will drive backwards when you accelerate forward and visa versa. This carries over to AI car, to the point were it don't work at all because ph_car.script gets stuck and stops.

I tried using correct_spawn_pos method on net spawn and net update, it doesn't seem to fix it.

revolucas commented 6 years ago

https://github.com/revolucas/CoC-Xray/commit/958add4b554e908729321133c63276a2f7bad2ee