vgui_neurotoxin_countdown

From Valve Developer Community
Revision as of 21:38, 23 July 2024 by Luke18033 (talk | contribs) (document bug I discovered in PEE)
Jump to navigation Jump to search

vgui_neurotoxin_countdown is a point entity available in Portal series Portal series. It is a neurotoxin countdown display. In Portal, the time to countdown (in seconds) is set by using the startneurotoxins console command. In Portal 2, it is set with the countdown KeyValue.

Note.pngNote:Portal 2 does not automatically hurt/kill the player when the timer reaches 0. Use a point_hurt instead.
Icon-Bug.pngBug:The game will crash on Linux if a timer attempts to display a very large value. Since large values such as 99999 are often used in Portal to effectively disable neurotoxin, you will need to ensure the displays are always turned off while the value is this high.  [todo tested in ?]

Keyvalues

Countdown ([todo internal name (i)]) <integer> (in all games since Portal 2)
Time (in seconds) to countdown.
Panel width (width) <integer>
Width of the panel in units.
Panel height (height) <integer>
Height of the panel in units.

Inputs

Enable
Make slideshow visible.
Disable
Make slideshow invisible.


Outputs