Перейти к содержимому


LOKIOLR

Регистрация: 21 Oct 2010
Offline Активность: 05 Feb 2012 00:05
-----

Мои темы

CAR rotation values in IPL (.WPL / .XPL) files?

27 January 2012 - 16:24

So I've been trying to figure this out for a few days now. It doesn't look exactly like a quaternion, radeon, or eular measurement. Here's what I think it might be: WPL (Stream section) Unknown 4 - quaternion real (expressed in an unusual way?) Unknown 5 - quaternion j (expressed in an unusual way?) Unknown 6 - degree of variation I think Unknown 4 & 5 could be a single axis of quaternion set since cars would only need to be rotated along the Z axis (they're kind of rotated then dropped by the game since spawning a vehicle at a higher elevation always results with it being on the next solid object below it). The other values would be static which is why they aren't defined like they are with object placements. I believe Unknown 6 has to do with some sort of randomization or variation since I can record the heading angle using the simple native trainer on certain vehicle spawns with the exact same values in the WPL and the heading angles are all very different (within a few degrees =/-) Any thoughts on this? I'm trying to develop something to take vehicles objects placed via the simple native trainer's object spawner and translate them into something that can be imported into a WPL file. I have everything done except for the rotations. I just have to find how they are expressed in the WPL files so I can setup the translating. Any ideas? On another related note, I did figure out that UNKNKOWN 3 in SECTION 0 is an object draw distance distance override. -1 will default to the defined draw distance in the IDE files and any other number will set the draw distance of that particular item. GTA IV uses this mainly for interior sets.