Vehicle Track Asset: Difference between revisions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
[[Category:MW3]] | [[Category:MW3]] | ||
[[Category:Ghosts]] | [[Category:Ghosts]] | ||
The vehicle_track asset was added on Modern Warfare 3 and remained completely unchanged on Ghosts. | The vehicle_track asset was added on Modern Warfare 3 and remained completely unchanged on Ghosts. It clearly holds pathing information for particular vehicles to be bound to on a particular map. It is part of the D3DBSP system produced by Radiant. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
struct VehicleTrackObstacle | struct VehicleTrackObstacle | ||
Latest revision as of 21:30, 22 December 2014
The vehicle_track asset was added on Modern Warfare 3 and remained completely unchanged on Ghosts. It clearly holds pathing information for particular vehicles to be bound to on a particular map. It is part of the D3DBSP system produced by Radiant.
struct VehicleTrackObstacle
{
float origin[2];
float radius;
};
struct __declspec(align(8)) VehicleTrackSector
{
float startEdgeDir[2];
float startEdgeDist;
float leftEdgeDir[2];
float leftEdgeDist;
float rightEdgeDir[2];
float rightEdgeDist;
float sectorLength;
float sectorWidth;
float totalPriorLength;
float totalFollowingLength;
VehicleTrackObstacle *obstacles;
unsigned int obstacleCount;
};
const struct __declspec(align(8)) VehicleTrackSegment
{
const char * targetName;
VehicleTrackSector *sectors;
unsigned int sectorCount;
VehicleTrackSegment **nextBranches;
unsigned int nextBranchesCount;
VehicleTrackSegment **prevBranches;
unsigned int prevBranchesCount;
float endEdgeDir[2];
float endEdgeDist;
float totalLength;
};
struct __declspec(align(8)) VehicleTrack
{
const char * name;
VehicleTrackSegment *segments;
unsigned int segmentCount;
};