This article's documentation is for the "GoldSrc" engine. Click here for more information.

Path track (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{tabs|path_track|goldsrc = 1|source = 1|main = source}} {{This is a|name=path_track|e0|engine=1}} Multiple path_tracks form a path that can be followed by a func_tracktrai...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{tabs|path_track|goldsrc = 1|source = 1|main = source}}  
{{tabs|path_track|goldsrc = 1|source = 1|main = source}}  
{{This is a|name=path_track|e0|engine=1}} Multiple path_tracks form a path that can be followed by a [[func_tracktrain (GoldSrc)|func_tracktrain]].  
{{CD|CPathTrack|goldsrc=1}}
 
{{this is a|point entity|name=path_track|engine=GoldSrc}} Multiple path_tracks form a path that can be followed by a [[func_tracktrain (GoldSrc)|func_tracktrain]].  
{{clarify|{{ent|func_tracktrain|eng=goldsrc}} and {{ent|func_vehicle|eng=goldsrc}} use {{mono|path_track}}; most other entities use {{ent|path_corner|eng=goldsrc}}. }}
==Key Values==
==Key Values==
{{hl1_kv_targetname}}
{{hl1_kv_targetname}}

Latest revision as of 13:45, 28 September 2024

C++ Class hierarchy
CPathTrack
CPointEntity
CBaseEntity
C++ pathcorner.cpp

path_track is a point entity available in all GoldSrc GoldSrc games. Multiple path_tracks form a path that can be followed by a func_tracktrain.

Clarify: func_tracktrain and func_vehicle use path_track; most other entities use path_corner.

Key Values

Name (targetname) <string>
The targetname that other entities refer to this entity by.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Next stop target (target) <targetname>
Name of the next path_corner in the path.
Fire On Pass (message) <targetname>
Trigger an event when this path_corner is passed by the entity using the path.
Branch Path (altpath) <targetname>
The name of a secondary path_track.
Fire on dead end (netnamed) <targetname>
If this path_track is a dead-end, activate this event on reaching.
New Train Speed (speed) <integer>
As the train passes this point, this speed will be assigned to it.

Flags

Disabled : [1]
Fire once : [2]
Branch Reverse : [4]
Disable train : [8]