Func train: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ent not in fgd}} | {{ent not in fgd}} | ||
{{ | ==Entity Description== | ||
===FGD Code=== | |||
<pre>@SolidClass base(Targetname, Origin, RenderFields) = func_train | |||
[ | |||
spawnflags(flags) = | |||
[ | |||
8 : "Non-solid" : 0 | |||
] | |||
texframeindex(integer) : "Initial Brush Frame Index" : : "Use this to set the initial frame of materials with multiple frames in the brush" | |||
target(target_destination) : "First path_corner" | |||
noise1(sound) : "Movement Sound" : : "The sound to play when the train moves." | |||
noise2(sound) : "Stop Sound" : : "The sound to play when the train stops moving." | |||
speed(float) : "Speed" : "50.000000" : "Speed at which the brush moves." | |||
volume(float) : "Sound volume [0.0, 10.0]" : "0.000000" | |||
dmg(float) : "Crush Damage" : "0.000000" | |||
input Toggle(void) : "Toggle movement" | |||
input Start(void) : "Start movement" | |||
input Stop(void) : "Stop movement" | |||
input Use(void) : "Toggle movement - has a different functionality than Toggle" | |||
]</pre> | |||
==Keyvalues== | |||
*{{kv targetname}} | |||
*{{kv origin}} | |||
*{{kv renderfields}} | |||
* '''texframeindex''' | |||
: <integer> Use this to set the initial frame of materials with multiple frames in the brush | |||
* '''target''' | |||
: <target_destination> First path_corner | |||
* '''noise1''' | |||
: <sound> The sound to play when the train moves. | |||
* '''noise2''' | |||
: <sound> The sound to play when the train stops moving. | |||
* '''speed''' | |||
: <float> Speed at which the brush moves. | |||
* '''volume''' | |||
: <float> Sound volume 0.0 to 10.0 | |||
* '''dmg''' | |||
: <float> Crush Damage | |||
==Flags== | |||
*8 : Non-solid | |||
==Inputs== | |||
*{{i targetname}} | |||
*{{i renderfield}} | |||
* '''Toggle''' | |||
: Toggle movement | |||
* '''Start''' | |||
: Start movement | |||
* '''Stop''' | |||
: Stop movement | |||
* '''Use''' | |||
: Toggle movement - has a different functionality than Toggle | |||
==Outputs== | |||
*{{o targetname}} | |||
[[Category:Entities]] |
Revision as of 20:56, 16 April 2006
Entity Description
FGD Code
@SolidClass base(Targetname, Origin, RenderFields) = func_train [ spawnflags(flags) = [ 8 : "Non-solid" : 0 ] texframeindex(integer) : "Initial Brush Frame Index" : : "Use this to set the initial frame of materials with multiple frames in the brush" target(target_destination) : "First path_corner" noise1(sound) : "Movement Sound" : : "The sound to play when the train moves." noise2(sound) : "Stop Sound" : : "The sound to play when the train stops moving." speed(float) : "Speed" : "50.000000" : "Speed at which the brush moves." volume(float) : "Sound volume [0.0, 10.0]" : "0.000000" dmg(float) : "Crush Damage" : "0.000000" input Toggle(void) : "Toggle movement" input Start(void) : "Start movement" input Stop(void) : "Stop movement" input Use(void) : "Toggle movement - has a different functionality than Toggle" ]
Keyvalues
- Template:Kv targetname
- Template:Kv origin
- Template:Kv renderfields
- texframeindex
- <integer> Use this to set the initial frame of materials with multiple frames in the brush
- target
- <target_destination> First path_corner
- noise1
- <sound> The sound to play when the train moves.
- noise2
- <sound> The sound to play when the train stops moving.
- speed
- <float> Speed at which the brush moves.
- volume
- <float> Sound volume 0.0 to 10.0
- dmg
- <float> Crush Damage
Flags
- 8 : Non-solid
Inputs
- Toggle movement
- Start
- Start movement
- Stop
- Stop movement
- Use
- Toggle movement - has a different functionality than Toggle