Template:Archived Page History/Template:KV BaseTrain: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Add internal names) |
||
Line 1: | Line 1: | ||
{{ScrollBox|title=BaseTrain| | {{ScrollBox|title=BaseTrain| | ||
{{KV|First Stop Target|target_destination|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.}} | {{KV|First Stop Target|intn=target|target_destination|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.}} | ||
{{KV|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 <code>SetSpeed</code> inputs, will be clipped to this maximum value.}} | {{KV|Max Speed (units / second)|intn=startspeed|integer|The maximum speed that this train can move. Any speeds applied to this train, such as by path_tracks or <code>SetSpeed</code> inputs, will be clipped to this maximum value.}} | ||
{{KV|Initial Speed (units / second)|integer|The speed that the train will move at after it spawns, 0 {{=}} stopped.}} | {{KV|Initial Speed (units / second)|intn=speed|integer|The speed that the train will move at after it spawns, 0 {{=}} stopped.}} | ||
{{KV|Change Velocity|choices|The method through which this train changes its velocity as it moves along the path.}} | {{KV|Change Velocity|intn=velocitytype|choices|The method through which this train changes its velocity as it moves along the path.}} | ||
:* 0 : Instantaneously | :* 0 : Instantaneously | ||
:* 1 : Linear blend | :* 1 : Linear blend | ||
:* 2 : Ease in/ease out | :* 2 : Ease in/ease out | ||
{{KV|Change angles|choices|The method through which this train changes its orientation as it moves along the path.}} | {{KV|Change angles|intn=orientationtype|choices|The method through which this train changes its orientation as it moves along the path.}} | ||
:* 0 : Never (always fixed orientation) | :* 0 : Never (always fixed orientation) | ||
:* 1 : Near paths | :* 1 : Near paths | ||
:* 2 : Linear blend | :* 2 : Linear blend | ||
:* 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|intn=wheels|integer|Used for turning and stopping.}} | ||
:{{tip|Increase the value for smoother turns.}} | :{{tip|Increase the value for smoother turns.}} | ||
{{KV|Height above track|integer|The height above the track that this train moves.}} | {{KV|Height above track|intn=height|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|intn=bank|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|Damage on Crush|integer|The amount of damage this train does to entities that block it.}} | {{KV|Damage on Crush|intn=dmg|integer|The amount of damage this train does to entities that block it.}} | ||
{{KV|Minimum Light Level|string|The minimum level of ambient light that hits this brush.}} | {{KV|Minimum Light Level|intn=_minlight|string|The minimum level of ambient light that hits this brush.}} | ||
{{KV|Move Sound|sound|A sound that is played (and looped) while the train is moving.}} | {{KV|Move Sound|intn=MoveSound|sound|A sound that is played (and looped) while the train is moving.}} | ||
{{KV|Move Ping Sound|sound|A sound that is played more frequently as the train speeds up.}} | {{KV|Move Ping Sound|intn=MovePingSound|sound|A sound that is played more frequently as the train speeds up.}} | ||
{{KV|Start Sound|sound|A sound played when the train starts moving.}} | {{KV|Start Sound|intn=StartSound|sound|A sound played when the train starts moving.}} | ||
{{KV|Stop Sound|sound|A sound played when the train stops moving.}} | {{KV|Stop Sound|intn=StopSound|sound|A sound played when the train stops moving.}} | ||
{{KV|Volume (10 {{=}} loudest)|integer|Volume of the sound when the train is moving.}} | {{KV|Volume (10 {{=}} loudest)|intn=volume|integer|Volume of the sound when the train is moving.}} | ||
{{KV|Min pitch (1-255, > 100 {{=}} higher)|integer|The sound pitch value that the train will approach as it comes to a stop.}} | {{KV|Min pitch (1-255, > 100 {{=}} higher)|intn=MoveSoundMinPitch|integer|The sound pitch value that the train will approach as it comes to a stop.}} | ||
{{KV|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).}} | {{KV|Max pitch (1-255, > 100 {{=}} higher)|intn=MoveSoundMaxPitch|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).}} | ||
{{KV|Min move sound interval|float|Minimum interval at which to play the move ping sound.}} | {{KV|Min move sound interval|intn=MoveSoundMinTime|float|Minimum interval at which to play the move ping sound.}} | ||
{{KV|Max move sound interval|float|Maximum interval at which to play the move ping sound.}} | {{KV|Max move sound interval|intn=MoveSoundMaxTime|float|Maximum interval at which to play the move ping sound.}} | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV Parentname}} | {{KV Parentname}} |
Revision as of 11:05, 17 March 2021
BaseTrain:
- First Stop Target (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) (startspeed) <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) (speed) <integer>
- The speed that the train will move at after it spawns, 0 = stopped.
- Change Velocity (velocitytype) <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 (orientationtype) <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 (wheels) <integer>
- Used for turning and stopping.
Tip:Increase the value for smoother turns.
- Height above track (height) <integer>
- The height above the track that this train moves.
- Bank Angle on Turns (bank) <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 (dmg) <integer>
- The amount of damage this train does to entities that block it.
- Minimum Light Level (_minlight) <string>
- The minimum level of ambient light that hits this brush.
- Move Sound (MoveSound) <sound>
- A sound that is played (and looped) while the train is moving.
- Move Ping Sound (MovePingSound) <sound>
- A sound that is played more frequently as the train speeds up.
- Start Sound (StartSound) <sound>
- A sound played when the train starts moving.
- Stop Sound (StopSound) <sound>
- A sound played when the train stops moving.
- Volume (10 = loudest) (volume) <integer>
- Volume of the sound when the train is moving.
- Min pitch (1-255, > 100 = higher) (MoveSoundMinPitch) <integer>
- The sound pitch value that the train will approach as it comes to a stop.
- Max pitch (1-255, > 100 = higher) (MoveSoundMaxPitch) <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 (MoveSoundMinTime) <float>
- Minimum interval at which to play the move ping sound.
- Max move sound interval (MoveSoundMaxTime) <float>
- Maximum interval at which to play the move ping sound.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
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) <origin>
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
RenderFields:
- Render Mode (rendermode) <byte choices>
- Set a non-standard rendering mode on this entity.
Render Modes
- Render FX (renderfx) <byte choices>
- Various somewhat legacy alpha effects. See render effects.
- Render Amount / Transparency (renderamt) <byte>
- 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.
Global:
- Global Entity Name (globalname) <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>
- Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
- Disable Receiving Shadows (disablereceiveshadows) <boolean>
- Prevent the entity from receiving dynamic shadows on itself.
- Shadow Cast Distance (shadowcastdist) <integer> !FGD
- Sets how far the entity casts dynamic shadows. 0 means default distance from the shadow_control entity.
- Disable Shadow Depth (disableshadowdepth) <boolean> (in all games since
)
- Used to disable rendering into shadow depth (for projected textures) for this entity.
- Disable flashlight (disableflashlight) <boolean> (in all games since
)
- Used to disable projected texture lighting and shadows on this entity.
- Projected Texture Cache (shadowdepthnocache) <integer choices> (in all games since
)
- 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.
Choices - 0 : Default
- 1 : No cache - render every frame
- 2 : Cache it - render only once