Difference between revisions of "PATH"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with ' '''INTRODUCTION: ''' Paths in Vice City 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. Su…')
 
Line 1: Line 1:
 
+
== Introduction ==
'''INTRODUCTION: '''
 
  
 
Paths in Vice City 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 both internally(Inside the group) and externally(Outside the group with other group nodes).
 
Paths in Vice City 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 both internally(Inside the group) and externally(Outside the group with other group nodes).
  
  
 +
== How Vice City Stores a Line (Linear path) ==
  
'''HOW VICE CITY STORES A LINE(LINEAR PATH):'''
 
  
 
First of all, consider a small segment of the line in a group node. The group node has to be defined and then there are the 12 sub-nodes inside it. The number of coordinates vary from 2 to 12. If the number of coordinates does not reach 12, then they are filled with null nodes which does not do anything just to make the group node hold always 12 nodes. The internal and external sub nodes are defined each with a special attribute in it. The internal sub nodes are the middle parts of a segment of the line, while the external sub nodes are the end points of the segment of the line. They are used to connect to other external sub-node or end point of another segment(Another group) of the line. To connect the external sub-nodes or end points, they must and always must have the same coordinates. All the other group nodes link up together using this concept, thus you get a path which a vehicle or a ped follows from the beginning and to the end of the line.
 
First of all, consider a small segment of the line in a group node. The group node has to be defined and then there are the 12 sub-nodes inside it. The number of coordinates vary from 2 to 12. If the number of coordinates does not reach 12, then they are filled with null nodes which does not do anything just to make the group node hold always 12 nodes. The internal and external sub nodes are defined each with a special attribute in it. The internal sub nodes are the middle parts of a segment of the line, while the external sub nodes are the end points of the segment of the line. They are used to connect to other external sub-node or end point of another segment(Another group) of the line. To connect the external sub-nodes or end points, they must and always must have the same coordinates. All the other group nodes link up together using this concept, thus you get a path which a vehicle or a ped follows from the beginning and to the end of the line.
Line 12: Line 11:
  
 
One can add a maximum of 24 group nodes in Vice City though this limit can be increased by Maxorator's Path hacks.
 
One can add a maximum of 24 group nodes in Vice City though this limit can be increased by Maxorator's Path hacks.
 +
 +
== Flags ==
 +
 +
The last three numbers at the end of a paths line are the Flags, each ones can define a special function.
 +
 +
 +
 +
'''Flag 1, Node Speed Limit'''
 +
 +
Flag 1 has been identified as a Speed function, that is it specifies the speed vehicles will travel along that Path/Node.
 +
{| {{Prettytable}}
 +
|0 || Slow Vehicle Speed
 +
|-
 +
|1 || Average Vehicle Speed
 +
|-
 +
|2 || Fast Vehicle Speed
 +
|}
 +
 +
'''Flag 2, Vehicle Travel/Roadblock'''
 +
 +
Flag 2 has been identified as a controller for where some vehicle can travel and where Police Roadblock will spawn.
 +
 +
Note, Police Roadblock will only work if it is a Vehicle node with that Flag.
 +
 +
Note, Specified Vehicles Only, means that only Vehicles with a Specified flag will use the Paths.
 +
{| {{Prettytable}}
 +
|0 || Flag Ignored
 +
|-
 +
|1 || Vehicles Wont Use/Spawn
 +
|-
 +
|2 || Police Roadblock Spawns
 +
|-
 +
|4 || Specified Vehicles Only
 +
|-
 +
|8 || (Unknown Purpose)
 +
|}
 +
 +
 +
Setup of a VC Paths Line
 +
{| {{Prettytable}}
 +
|Path Type, Joins to Node _, 0, X, Y, Z, Median, Left, Right, Flag1, Flag2, Flag3
 +
|}

Revision as of 06:44, 1 October 2011

Introduction

Paths in Vice City 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 both internally(Inside the group) and externally(Outside the group with other group nodes).


How Vice City Stores a Line (Linear path)

First of all, consider a small segment of the line in a group node. The group node has to be defined and then there are the 12 sub-nodes inside it. The number of coordinates vary from 2 to 12. If the number of coordinates does not reach 12, then they are filled with null nodes which does not do anything just to make the group node hold always 12 nodes. The internal and external sub nodes are defined each with a special attribute in it. The internal sub nodes are the middle parts of a segment of the line, while the external sub nodes are the end points of the segment of the line. They are used to connect to other external sub-node or end point of another segment(Another group) of the line. To connect the external sub-nodes or end points, they must and always must have the same coordinates. All the other group nodes link up together using this concept, thus you get a path which a vehicle or a ped follows from the beginning and to the end of the line. Spawns are made in the external nodes (Always remember that fact) and then they follow the route of the line.

One can add a maximum of 24 group nodes in Vice City though this limit can be increased by Maxorator's Path hacks.

Flags

The last three numbers at the end of a paths line are the Flags, each ones can define a special function.


Flag 1, Node Speed Limit

Flag 1 has been identified as a Speed function, that is it specifies the speed vehicles will travel along that Path/Node.

0 Slow Vehicle Speed
1 Average Vehicle Speed
2 Fast Vehicle Speed

Flag 2, Vehicle Travel/Roadblock

Flag 2 has been identified as a controller for where some vehicle can travel and where Police Roadblock will spawn.

Note, Police Roadblock will only work if it is a Vehicle node with that Flag.

Note, Specified Vehicles Only, means that only Vehicles with a Specified flag will use the Paths.

0 Flag Ignored
1 Vehicles Wont Use/Spawn
2 Police Roadblock Spawns
4 Specified Vehicles Only
8 (Unknown Purpose)


Setup of a VC Paths Line

Path Type, Joins to Node _, 0, X, Y, Z, Median, Left, Right, Flag1, Flag2, Flag3