Func tanktrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added tip about turning)
(I had to read the code to figure out my map didn't work. Frustrating...)
Line 5: Line 5:


{{in code|class=class_c_func_tank_train.html CFuncTankTrain|file=tanktrain_8cpp-source.html hl2_dll\tanktrain.cpp}}
{{in code|class=class_c_func_tank_train.html CFuncTankTrain|file=tanktrain_8cpp-source.html hl2_dll\tanktrain.cpp}}
:{{bug|This entity has a hard-coded damage filter and will never die as is not properly configured to take damage in the first place. (See talk page)}}


== Keyvalues ==
== Keyvalues ==
Line 18: Line 19:
== Outputs ==
== Outputs ==
{{IO|OnDeath|Fired when the tank is killed.}}
{{IO|OnDeath|Fired when the tank is killed.}}
:{{bug|This entity can never die without code modification. (See talk page)}}
{{O BaseTrain}}
{{O BaseTrain}}

Revision as of 17:40, 2 June 2015

Template:Base brush It is a moving train that follows a path of path_track entities, shoots at the player, and can be killed.

Note.pngNote:Build your train so that the front of the train is facing down the X axis. When it spawns it will automatically rotate to face the next path_track on the path.
Tip.pngTip:Increase the Distance Between the Wheels keyvalue for smoother turns.

Template:In code

Icon-Bug.pngBug:This entity has a hard-coded damage filter and will never die as is not properly configured to take damage in the first place. (See talk page)  [todo tested in ?]

Keyvalues

Health ([todo internal name (i)]) <integer>
Health of the tank.

Template:KV BaseTrain

Flags

Template:Fl BaseTrain

Inputs

Template:I BaseTrain

Outputs

OnDeath
Fired when the tank is killed.
Icon-Bug.pngBug:This entity can never die without code modification. (See talk page)  [todo tested in ?]

Template:O BaseTrain