Func upgradestation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
m (→‎Keyvalues: add bug note + workaround regarding StartDisabled)
 
Line 8: Line 8:
{{KV Targetname}}
{{KV Targetname}}
{{KV EnableDisable}}
{{KV EnableDisable}}
{{bug|hidetested=1|func_upgradestations disabled in this manner cannot be re-enabled with the <code>Enable</code> input, as <code>[[SetSolidFlags()#Flags|FSOLID_TRIGGER]]</code> is not properly re-added by this input.}}
{{Workaround|Stations that should start disabled can be created by firing the <code>Disable</code> input on the station in an <code>OnMapSpawn</code> output of a [[logic_auto]].}}


== Inputs ==
== Inputs ==
{{I EnableDisable}}
{{I EnableDisable}}

Latest revision as of 17:25, 12 August 2025

English (en)Translate (Translate)
C++ Class hierarchy
CUpgrades
CBaseTrigger
CBaseToggle
CBaseEntity
C++ tf_upgrades.cpp

func_upgradestation is a brush entity available in Team Fortress 2 Team Fortress 2.

An upgrade station for the Mann vs. Machine gamemode.

Keyvalues

Name (targetname) <string>[ Edit ]
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
Enable/disable this entity from performing its task. It might also disappear from view.