This article is a stub. You can help by adding to it.
The tank used in Mann vs Machine missions. When spawned in by a popfile, it will start at the path_track entity specified by the popfile and continue until it reaches the end of the path, where it will deploy the bomb. When destroyed, it creates a tank_destruction entity.
- Health of the tank.
- Model the tank uses.
- Speed the tank travels at, higher speeds can cause the tank to clip through geometry.
- Start Disabled
- Start disabled.
- Entity Scripts
- 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
- 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.
- Start Fade Dist
- Distance at which the prop starts to fade.
- End Fade Dist
- Max fade distance at which the prop is visible.
- If start fade is <0, the prop will disappear instantly when end fade is hit.
- If end fade is <0, the prop won't disappear at all. (This is the default behaviour.)
- The values will scale appropriately if the prop is in a 3D Skybox.
- Fade Scale
- If you specify so in worldspawn, or if the engine is running below DirectX 8 (DX7 in Ep1), props will fade out even if the fade distances above aren't specified. This value gives you some control over when this happens: numbers smaller than 1 cause the prop to fade out at further distances, and greater than 1 cause it to fade out at closer distances. Using 0 turns off the forced fade altogether. See also the QC command $noforcedfade.
- Set the speed of the tank. Must be a positive value. Note: High values will cause the tank to have difficulties navigating the path_tracks.
- Set the tank's health.
- Set the tank's max health.
- Add health to the tank.
- Remove health from the tank.
- Destructs the tank if it reached its final path_track node.
- Sets the tank's destruction animation name's postfix. Can be used for these destruction animations.
- Changes the entity's team.
- Ignite, burst into flames.
Ignitewith the given lifetime. To do: Before the flames extinguish, or before health reaches zero?
Ignitewith the given number of hitbox fires.
Ignitewith the given hitbox fire scale.
- Removes this entity from the world.
- Removes this entity and its children from the world. Note: Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than
- Adds a keyvalue/output to this entity. It can be potentially very dangerous, use with care.
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
- Fire the
OnUseroutputs; see User Inputs and Outputs.
- Same as a player invoking +use; may not do anything depending on the entity. Can also be invoked by firing an output that does not specify an input.
- Execute a VScript file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.
- Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console. Bug: In , the code is executed in the script scope of the entity that fires the output, not the one receiving the input.Warning: Never try to pass string parameters to a script function with this input. It will corrupt the VMF structure because of the nested quotation marks, which then must be removed manually with a text editor.
- Execute a VScript function in the scope of the receiving entity.
- Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.
- Set this entity's angles.
- Enable/disable this entity from performing its task. It might also disappear from view.
- Changes the model's skin to the specified number.
- Set the model's body group.
- Uses an alternative method for telling which objects are in front of others. Use if this object draws incorrectly when seen through transparent things.
- Sets the model scale. Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over. If there is no second value, the model will scale instantly. Warning: Negative or extremely high values can cause crashes!
- Turns off rendering of this entity in reflections when using
$reflectonlymarkedentitiesin water material.
- Turn on rendering of this entity in reflections when using
$reflectonlymarkedentitiesin water material.
- Add the EF_NODRAW flag to this entity. Some entities manage this on their own so be aware you can override that value.
- Remove the EF_NODRAW flag from this entity. Some entities manage this on their own so be aware you can override that value.
- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its Render Mode (rendermode) set to a number other than
- Sets an RGB color for the entity.
- Move with this entity. See Entity Hierarchy (parenting).
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
- Fired when the tank's health drops below 90 percent.
- Fired when the tank's health drops below 80 percent.
- Fired when the tank's health drops below 70 percent.
- Fired when the tank's health drops below 60 percent.
- Fired when the tank's health drops below 50 percent.
- Fired when the tank's health drops below 40 percent.
- Fired when the tank's health drops below 30 percent.
- Fired when the tank's health drops below 20 percent.
- Fired when the tank's health drops below 10 percent.
- Fired when the tank's health drops to 0.
- Fired when this object catches fire.
- These outputs each fire in response to the firing of the like-numbered
FireUser4Input; see User Inputs and Outputs.