Func tanktrain: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(I had to read the code to figure out my map didn't work. Frustrating...)
(Explain in no uncertain terms that this entity class is broken and doesn't work.)
Line 1: Line 1:
{{base brush|func_tanktrain}} It is a moving train that follows a path of [[path_track]] entities, shoots at the player, and can be killed.
{{base brush|func_tanktrain}} It was meant to be a train that follows a target entity (such as the player). It was never finished and doesn't work correctly.


{{note|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.}}
It was meant to be used in combination with a [[tanktrain_ai]] entity.  
{{tip|Increase the '''Distance Between the Wheels''' keyvalue for smoother turns.}}


{{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}}

Revision as of 11:27, 13 March 2019

Template:Base brush It was meant to be a train that follows a target entity (such as the player). It was never finished and doesn't work correctly.

It was meant to be used in combination with a tanktrain_ai entity.

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