func_upgradestation

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
C++ Class hierarchy
CUpgrades
↳CBaseTrigger
↳CBaseToggle
↳CBaseEntity
C++ tf_upgrades.cpp

func_upgradestation is a trigger entity available in Team Fortress 2 Team Fortress 2. Primarily for Mann vs Machine, but can be used outside the game mode with proper parameters set like Freaky Fair for example.

When the player enters the trigger bounds, the Upgrade Menu appears on screen allowing them to use Credits to upgrade their innate abilities, weapons, and Power Up Canteen.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).
Icon-Bug.pngBug:func_upgradestations disabled in this manner cannot be re-enabled with the Enable input, as FSOLID_TRIGGER is not properly re-added by this input.
PlacementTip.pngWorkaround: Stations that should start disabled can be created by firing the Disable input on the station in an OnMapSpawn output of a logic_auto.

Inputs

EnableDisable:

Enable / Disable <void>
Enable/disable this entity from performing its task. It might also disappear from view.