trigger_asw_button_area
Jump to navigation
Jump to search
Code classes:
CASW_Button_Area
CASW_Use_Area
CTriggerMultiple
CBaseTrigger
(triggers)CBaseToggle
CBaseEntity
(all ents)
trigger_asw_button_area
is a brush entity present in Alien Swarm. When a marine is in this volume, they can use a button of some sort, such as a door panel or the Landing Bay lift button.
Keyvalues[edit | edit source]
- Locked
(locked)
<boolean>
- Whether this button is locked (hackable) or not.
Time to charge up(hacklevel)
<integer>
- Not configurable.
- Num Wires
(numwires)
<integer>
- If this button is hackable, how many wires it takes to hack.
- Wire Columns
(wirecolumns)
<integer>
- How big the wires are horizontally. Minimum 3, max 8.
- Wire Rows
(wirerows)
<integer>
- How big the wires are vertically. Minimum 1, max 3.
- Auto-use after hack
(useafterhack)
<boolean>
- If set, the hacking marine will automatically use the button after hacking it.
- Disable After Use
(disableafteruse)
<boolean>
- Removes the trigger after it's been hacked and/or used. Also applies if Delay Before Reset
(wait)
is -1. - Has Power
(nopower)
<choices>
- Buttons without power cannot be used.
- No Power Message
(nopowermessage)
<string>
- Message to display on the HUD when the button has no power. If not specified, defaults to
#asw_no_power
, which says "No Power".
Inputs[edit | edit source]
- PowerOn
- Gives power to the panel.
- PowerOff
- Takes power away from the panel.
- ResetHack
- Relocks the panel and deletes hack progress. Cannot be used when a marine is currently hacking it.
- Unlock
- Unlocks the panel and counts it as hacked.
Outputs[edit | edit source]
- OnButtonHackStarted
- Fires when a marine begins hacking. Activator is that marine.
- OnButtonHackAt25Percent
- Fires when the panel is at least 25% hacked.
- OnButtonHackAt50Percent
- Fires when the panel is at least 50% hacked.
- OnButtonHackAt75Percent
- Fires when the panel is at least 75% hacked.
- OnButtonHackCompleted
- Fires when the panel is fully hacked.
- OnButtonActivated
- Fires when the button is used.