12,236
edits
(Redirecting, Marked for deletion) |
(contributions from myself, ALMOST610, Aschratt, Seemann, and Swoorup) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
{{IplSection | |||
| game = {{Icon|VC}} | |||
| description = Adds paths for traffic | |||
}} | |||
'''<code>path</code>''' is a section in the item placement file in [[Grand Theft Auto: Vice City]]. It is used to add paths for foot and vehicular traffic. Paths are grouped into nodes, each with at most 12 sub-nodes. The group nodes define the type of vehicle going to be used by the sub nodes. Sub nodes contain path coordinates which are linked to each other. There are two kinds of links: | |||
* internal links – connecting nodes within the same group. | |||
* external links – connecting nodes over two different groups. | |||
== Format == | |||
{{Pre| | |||
path | |||
GroupType, -1 | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
NodeType, NextNode, IsCrossRoad, X, Y, Z, Median, LeftLanes, RightLanes, SpeedLimit, Flags, SpawnRate | |||
end | |||
}} | |||
{|class="wikitable center-col-1 center-col-2" style="width: 100%;" | |||
!style="width: 3em;" |{{Icon|VC}} | |||
!style="width: 12em;" |Identifier | |||
!style="width: 6em;" |Type | |||
!Description | |||
|- | |||
!colspan="4" |Group | |||
|- | |||
|A ||GroupType ||integer || | |||
* ''0'' = Pedestrian traffic | |||
* ''1'' = Road traffic | |||
* ''2'' = Water traffic | |||
|- | |||
|B ||-1 ||integer ||always ''-1'', used as a delimiter | |||
|- | |||
!colspan="4" |Node | |||
|- | |||
|A ||NodeType ||integer || | |||
* ''0'' = Null | |||
* ''1'' = External | |||
* ''2'' = Internal | |||
|- | |||
|B ||NextNode ||integer || | |||
* ''-1'' = Do not link to any other node in this group | |||
* ''0'' to ''11'' = Link to this node number in this group | |||
|- | |||
|C ||IsCrossRoad ||integer ||Boolean determining if there is a cross road in the imaginary line joined by two nodes | |||
|- | |||
|D,E,F ||X, Y, Z ||float[3] ||X, Y, Z coordinates of the node * 16 | |||
|- | |||
|G ||Median ||float || | |||
* Pedestrian traffic: width of walkway | |||
* Road traffic: width of divider between left and right lanes. | |||
|- | |||
|H ||LeftLanes ||integer ||Number of lanes left of the node. This is ignored for internal nodes | |||
|- | |||
|I ||RightLanes ||integer ||Number of lanes right of the node. This is ignored for internal nodes | |||
|- | |||
|J ||SpeedLimit ||integer ||Sets the speed of vehicles traveling through the path | |||
* ''0'' = Slow | |||
* ''1'' = Medium | |||
* ''2'' = Fast | |||
|- | |||
|K ||Flags ||integer ||General node behavior | |||
* ''0'' = No flags | |||
* ''1'' = Ignored by traffic | |||
* ''2'' = Police roadblock (only for road traffic node) | |||
* ''4'' = Restricted node | |||
* ''8'' = No effect, may be used by water traffic to increase maneuverability | |||
|- | |||
|L ||SpawnRate ||float ||Spawn rate frequency ranging from ''0.0'' to ''1.0'' | |||
|} | |||
== Description == | |||
Consider a small segment of the line in vehicle paths node. The group has to be defined and then there must be 12 nodes inside it. If the total number of internal and external nodes in a group is not 12, then the remaining should be filled with null nodes. | |||
The internal nodes define the connections inside the group whereas the external nodes define the connections to other group. External nodes in a group are connected to other external nodes in different group external sub-nodes by having the same coordinates. | |||
Spawns are always made in internal nodes, and external nodes only act as a link. For vehicles, lane information and the median width inside internal nodes are ignored, those information are only retrieved from external nodes. And also for vehicles, junctions are always kept in a separate group and external nodes of the group must always point to beginning of a connected line segment, whereas pedestrian nodes can mix the two. | |||
One can add a maximum of 4 paths group in Vice City though this limit can be increased by Maxorator's Path hacks. | |||
== External links == | |||
* [http://projectcerbera.com/gta/vc/tutorials/paths Description of the Vice City paths format], by Cerbera | |||
* [http://www.gtaforums.com/index.php?showtopic=490426 In-Game Paths Maker for VC], by Swoorup | |||
* [http://almost610.dmon.com/load/other/vc_paths_multiplier/2-1-0-16 Maxorator's Path Limit Hack], by Maxorator | |||
* [http://www.gtaforums.com/index.php?showtopic=93990&view=findpost&p=4027008 Flags description], by AK-73 | |||
* [http://www.gtaforums.com/index.php?showtopic=93990&view=findpost&p=1856773 Statistics for paths.ipl], by Steve-m | |||
{{VC-navi}} |