Difference between revisions of "Template:KV BaseTrain"

From Valve Developer Community
Jump to: navigation, search
Line 13: Line 13:
 
:* 3 : Ease in/ease out
 
:* 3 : Ease in/ease out
 
{{KV|Distance Between the Wheels|integer|Used for turning and stopping.}}
 
{{KV|Distance Between the Wheels|integer|Used for turning and stopping.}}
 +
:{{tip|Increase the '''Distance Between the Wheels''' keyvalue for smoother turns.}}
 
{{KV|Height above track|integer|The height above the track that this train moves.}}
 
{{KV|Height above track|integer|The height above the track that this train moves.}}
 
{{KV|Bank Angle on Turns|string|The angle at which the train will "bank" or tilt when approaching a turn. Use positive or negative angle numbers close to 0 (ie. between -5 and +5, depending on left or right) to achieve realistic tilt angles.}}
 
{{KV|Bank Angle on Turns|string|The angle at which the train will "bank" or tilt when approaching a turn. Use positive or negative angle numbers close to 0 (ie. between -5 and +5, depending on left or right) to achieve realistic tilt angles.}}

Revision as of 23:45, 8 February 2019

BaseTrain:

First Stop Target <targetname>
The name of the first path_track in the train's path. The train will spawn at this path_track. It will also turn to face direction indicated by the 'Orientation Type' setting.
Max Speed (units / second) <integer>
The maximum speed that this train can move. Any speeds applied to this train, such as by path_tracks or SetSpeed inputs, will be clipped to this maximum value.
Initial Speed (units / second) <integer>
The speed that the train will move at after it spawns, 0 = stopped.
Change Velocity <choices>
The method through which this train changes its velocity as it moves along the path.
  • 0 : Instantaneously
  • 1 : Linear blend
  • 2 : Ease in/ease out
Change angles <choices>
The method through which this train changes its orientation as it moves along the path.
  • 0 : Never (always fixed orientation)
  • 1 : Near paths
  • 2 : Linear blend
  • 3 : Ease in/ease out
Distance Between the Wheels <integer>
Used for turning and stopping.
Tip:Increase the Distance Between the Wheels keyvalue for smoother turns.
Height above track <integer>
The height above the track that this train moves.
Bank Angle on Turns <string>
The angle at which the train will "bank" or tilt when approaching a turn. Use positive or negative angle numbers close to 0 (ie. between -5 and +5, depending on left or right) to achieve realistic tilt angles.
Damage on Crush <integer>
The amount of damage this train does to entities that block it.
Minimum Light Level <string>
The minimum level of ambient light that hits this brush.
Move Sound <sound>
A sound that is played (and looped) while the train is moving.
Move Ping Sound <sound>
A sound that is played more frequently as the train speeds up.
Start Sound <sound>
A sound played when the train starts moving.
Stop Sound <sound>
A sound played when the train stops moving.
Volume (10 = loudest) <integer>
Volume of the sound when the train is moving.
Min pitch (1-255, > 100 = higher) <integer>
The sound pitch value that the train will approach as it comes to a stop.
Max pitch (1-255, > 100 = higher) <integer>
The sound pitch value that the train will approach as it approaches its max speed (or 1000 inches/second if the 'Use max speed for pitch shifting move sound' flag is not set).
Min move sound interval <float>
Minimum interval at which to play the move ping sound.
Max move sound interval <float>
Maximum interval at which to play the move ping sound.

Targetname:

Name <string>
The targetname that other entities refer to this entity by.
Entity Scripts <scriptlist> (New with Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function <string> (New with Left 4 Dead 2)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note:Try to avoid expensive operations in this function, as it may cause performance problems.

Parentname:

Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.

Origin:

Origin (X Y Z) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.

RenderFields:

Render Mode (rendermode) <choices>
Set a non-standard rendering mode on this entity.
Render FX / Transparency (0 - 255) (renderamt) <integer>
Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
Render Color (R G B) (rendercolor) <color255>
Color tint.
Disable Receiving Shadows (disablereceiveshadows) <boolean>
Prevent the entity from receiving shadows on itself.

RenderFXChoices:

Render FX (renderfx) <choices>
Preset pattern of appearance effects.
To do: 18-21, 25

Global:

Global Entity Name <string>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.

Shadow:

Disable shadows (disableshadows) <boolean>
Prevent the entity from creating cheap render-to-texture shadows. Does not affect shadow mapping.
Disable ShadowDepth (disableshadowdepth) <boolean> (New with Portal 2)
Used to disable rendering into shadow depth (for projected textures) for this entity.
Projected Texture Cache (shadowdepthnocache) <choices> (New with Portal 2)
Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
  • 0 : Default
  • 1 : No cache - render every frame
  • 2 : Cache it - render only once
Disable flashlight (disableflashlight) <boolean> (New with Portal 2)
Used to disable projected texture lighting and shadows on this entity.