This article's documentation is for anything that uses the Source engine. Click here for more information.

Prop hallucination: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-added class hierarchy, concise page)
No edit summary
 
Line 3: Line 3:
{{this is a|model entity|name=prop_hallucination|since=Alien Swarm}} It is a prop that disappears after being looked at.
{{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.}}
{{note|This entity is not present in {{portal2|1}}'s [[FGD]], but still exists in-engine.}}


== Keyvalues ==
== Keyvalues ==

Latest revision as of 22:49, 23 September 2025

Nuvola apps ksnapshot.png
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.
C++ Class hierarchy
CProp_Hallucination
CBaseAnimating
CBaseEntity
C++ prop_hallucination.cpp

prop_hallucination is a model entity available in all Source Source games since Alien Swarm Alien Swarm. It is a prop that disappears after being looked at.

Note.pngNote:This entity is not present in Portal 2's FGD, but still exists in-engine.

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
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 <floatRedirectInput/float>
Set Visible Time.
SetRechargeTime <floatRedirectInput/float>
Set Recharge Time.