Prop hallucination: Difference between revisions
Jump to navigation
Jump to search
Gatelych83 (talk | contribs) m (Removed peacock) |
(-added class hierarchy, concise page) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{screenshot}} | ||
{{CD|CProp_Hallucination|file1=prop_hallucination.cpp}} | |||
{{this is a|model entity|name=prop_hallucination|since=Alien Swarm}} It is a prop that disappears after being looked at. | |||
{{note|This entity is not present in {{Game link|Portal 2}}'s [[FGD]], but still exists in-engine.}} | |||
{{ | |||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV | {{KV|Enabled Chance|intn=EnabledChance|float|Percentage chance the hallucination starts enabled. 0 is always off, 100 is always on.}} | ||
{{KV | {{KV|Visible Time|intn=VisibleTime|float|Number of seconds the hallucination stays visible from the first frame it can be seen.}} | ||
{{KV | {{KV|Recharge Time|intn=RechargeTime|float|Number of seconds the hallucination stays invisible before it can be seen again. 0 to disable recharging.}} | ||
== Inputs == | == Inputs == | ||
{{ | {{I|Enable|Enable the hallucination algorithm.}} | ||
{{ | {{I|Disable|Disable the hallucination algorithm.}} | ||
{{ | {{I|SetVisibleTime|Set Visible Time.|param=float}} | ||
{{ | {{I|SetRechargeTime|Set Recharge Time.|param=float}} | ||
[[Category:Prop entities|hallucination]] | |||
Latest revision as of 05:22, 19 May 2025

This article or section needs a screenshot to help visually convey the subject.
You can upload screenshots at Special:Upload. For help, see Help:Images.
You can upload screenshots at Special:Upload. For help, see Help:Images.
![]() |
---|
CProp_Hallucination |
![]() |
prop_hallucination
is a model entity available in all Source games since
Alien Swarm. It is a prop that disappears after being looked at.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Enabled Chance (EnabledChance) <float>
- Percentage chance the hallucination starts enabled. 0 is always off, 100 is always on.
- Visible Time (VisibleTime) <float>
- Number of seconds the hallucination stays visible from the first frame it can be seen.
- Recharge Time (RechargeTime) <float>
- Number of seconds the hallucination stays invisible before it can be seen again. 0 to disable recharging.
Inputs
- Enable
- Enable the hallucination algorithm.
- Disable
- Disable the hallucination algorithm.
- SetVisibleTime <float >
- Set Visible Time.
- SetRechargeTime <float >
- Set Recharge Time.