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
(Created page with '{{base point multi|prop_hallucination|game1=Portal 2|game2=Alien Swarm}} == Entity description == A prop that players can't get a good look at, hopefully making them unsure if i…')
 
(-added class hierarchy, concise page)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{base point multi|prop_hallucination|game1=Portal 2|game2=Alien Swarm}}
{{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.


== Entity description ==
{{note|This entity is not present in {{Game link|Portal 2}}'s [[FGD]], but still exists in-engine.}}
A prop that players can't get a good look at, hopefully making them unsure if it's there at all.
 
{{note|In Portal 2, this entity has been removed from the [[FGD]]. However, it is still present in the engine.}}


== Keyvalues ==
== Keyvalues ==
{{KV|Enabled Chance|float|Percentage chance the hallucination starts enabled. 0 is always off, 100 is always on}}
{{KV|Visible Time|float|Number of seconds the hallucination stays visible from the first frame it can be seen}}
{{KV|Recharge Time|float|Number of seconds the hallucination stays invisible before it can be seen again. 0 to disable recharging}}
{{KV Targetname}}
{{KV Targetname}}
{{KV Parentname}}
{{KV|Enabled Chance|intn=EnabledChance|float|Percentage chance the hallucination starts enabled. 0 is always off, 100 is always on.}}
{{KV Studiomodel}}
{{KV|Visible Time|intn=VisibleTime|float|Number of seconds the hallucination stays visible from the first frame it can be seen.}}
{{KV Angles}}
{{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 ==
{{IO|Enable|Enable the hallucination algorithm}}
{{I|Enable|Enable the hallucination algorithm.}}
{{IO|Disable|Disable the hallucination algorithm}}
{{I|Disable|Disable the hallucination algorithm.}}
{{IO|SetVisibleTime|Set Visible Time|param=float}}
{{I|SetVisibleTime|Set Visible Time.|param=float}}
{{IO|SetRechargeTime|Set Recharge Time|param=float}}
{{I|SetRechargeTime|Set Recharge Time.|param=float}}
{{I Targetname}}
 
{{I Parentname}}
{{I Studiomodel}}


== Outputs ==
[[Category:Prop entities|hallucination]]
{{O Targetname}}
{{O Studiomodel}}

Latest revision as of 05:22, 19 May 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 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.