Difference between revisions of "PATH (IDE Section)"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "{{IdeSection | game = GTA III, GTA VC | description = Used to define paths for traffic }} '''PATH''' is a section in the item definition file. It is used to...")
 
m
Line 1: Line 1:
 
{{IdeSection
 
{{IdeSection
 +
| name        = PATH
 
| game        = [[GTA III]], [[GTA VC]]
 
| game        = [[GTA III]], [[GTA VC]]
 
| description = Used to define paths for traffic
 
| description = Used to define paths for traffic
Line 8: Line 9:
 
<pre<includeonly></includeonly> style="overflow-x: auto;">
 
<pre<includeonly></includeonly> style="overflow-x: auto;">
 
path
 
path
GroupType, ID, ModelName
+
GroupType, Id, ModelName
 
NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
 
NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
 
NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
 
NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
Line 33: Line 34:
 
|-
 
|-
 
| A || GroupType || string ||
 
| A || GroupType || string ||
* ped = pedestrian traffic
+
* ''ped'' = pedestrian traffic
* car = road traffic
+
* ''car'' = road traffic
 
|-
 
|-
| B || ID || integer || associated to existing object ID defined in [[OBJS]] or [[TOBJ]] section
+
| B || Id || integer || associated to existing object ID defined in [[OBJS]] or [[TOBJ]] section
 
|-
 
|-
 
| C || ModelName || string || associated to existing object model name defined in OBJS or TOBJ section
 
| C || ModelName || string || associated to existing object model name defined in OBJS or TOBJ section
Line 43: Line 44:
 
|-
 
|-
 
| A || NodeType || integer ||
 
| A || NodeType || integer ||
* 0 = Null
+
* ''0'' = Null
* 1 = External
+
* ''1'' = External
* 2 = Internal
+
* ''2'' = Internal
 
|-
 
|-
 
| B || NextNode || integer ||
 
| B || NextNode || integer ||
* -1 = Do not link to any other node in this group
+
* ''-1'' = Do not link to any other node in this group
* 0 to 11 = Link to this node number 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
 
| C || IsCrossRoad || integer || Boolean determining if there is a cross road in the imaginary line joined by two nodes
Line 55: Line 56:
 
| D,E,F || X, Y, Z || float[3] || X, Y, and Z coordinates relative to the center of the object * 16
 
| D,E,F || X, Y, Z || float[3] || X, Y, and Z coordinates relative to the center of the object * 16
 
|-
 
|-
| G || ''unknown'' || float || Always 160
+
| G || ''unknown'' || float || Always ''160''
 
|-
 
|-
 
| H || LeftLanes || integer || Number of lanes left of the node
 
| H || LeftLanes || integer || Number of lanes left of the node

Revision as of 06:26, 6 August 2015

PATH (IDE section)
Supported games:GTA III, GTA VC
Brief description:Used to define paths for traffic
IDE Sections:
2DFX AMAT ANIM CARS HIER HAND MLO OBJS
PATH PEDS TANM TOBJ TREE TXDP WEAP

PATH is a section in the item definition file. It is used to define paths for traffic. Path nodes in GTA III are attached to existing objects in a similar manner to 2DFX. In Vice City, the format of this section is equivalent to its IPL counterpart but this section is unstable and can crash the game unexpectedly.

Format

path
GroupType, Id, ModelName
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
	NodeType, NextNode, IsCrossRoad, X, Y, Z, unknown, LeftLanes, RightLanes
end
GTA III Identifier Type Description
Group
A GroupType string
  • ped = pedestrian traffic
  • car = road traffic
B Id integer associated to existing object ID defined in OBJS or TOBJ section
C ModelName string associated to existing object model name defined in OBJS or TOBJ section
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, and Z coordinates relative to the center of the object * 16
G unknown float Always 160
H LeftLanes integer Number of lanes left of the node
I RightLanes integer Number of lanes right of the node

See also

  • PATH, a similar section in the item placement file for Vice City