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 code class and non-SmartEdit names, merged entity description into beginning section)
(-added class hierarchy, concise page)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{screenshot}}
{{screenshot}}
{{base point|prop_hallucination|since=Alien Swarm}} It is a prop that disappears after being looked at.
{{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.}}
{{note|This entity is not present in {{Game link|Portal 2}}'s [[FGD]], but still exists in-engine.}}
{{Code class|CProp_Hallucination|prop_hallucination.cpp}}


== Keyvalues ==
== Keyvalues ==
{{KV|Enabled Chance (EnabledChance)|float|Percentage chance the hallucination starts enabled. 0 is always off, 100 is always on.}}
{{KV|Visible Time (VisibleTime)|float|Number of seconds the hallucination stays visible from the first frame it can be seen.}}
{{KV|Recharge Time (RechargeTime)|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 ==
 
{{O Targetname}}
[[Category:Prop entities|hallucination]]
{{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.