Prop dynamic playertouch: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(-added class hierarchy, concise)
Line 1: Line 1:
{{back | Black Mesa Level Creation}}
{{CD|?|base=CDynamicProp}}
[[File:Black Mesa Screenshot 2024.04.08 - 20.29.42.00.jpg|frame|right|One of shields in [[Interloper]] chapter.]]
[[File:Black Mesa Screenshot 2024.04.08 - 20.29.42.00.jpg|frame|right|One of shields in [[Interloper]] chapter.]]
{{this is a|point entity|name=prop_dynamic_playertouch|game=bms}} This is a copy of {{ent|prop_dynamic_override}} that breaks when touched by player. It is also have some additional options. Used as flying shields in the campaign.
{{this is a|point entity|name=prop_dynamic_playertouch|game=Black Mesa}} This is a copy of {{ent|prop_dynamic_override}} that breaks when touched by player. It is also have some additional options. Used as flying shields in the campaign.
{{note|[[NPC|NPCs]] and physics props can't break this prop by touching it.}}
{{note|[[NPC|NPCs]] and physics props can't break this prop by touching it.}}
{{bms}} Represented by class <code>CDynamicProp</code>.
{{back | Black Mesa Level Creation}}


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV|ParticlesOnBreak|intn=m_szParticlesOnBreak|string|When this entity breaks it will create the specified particle system.}}
{{KV|ParticlesOnBreak|intn=m_szParticlesOnBreak|string|When this entity breaks it will create the specified particle system.}}
{{KV|SoundOnBreak|intn=m_szSoundOnBreak|sound|When this entity breaks it will play the specified sound. Support sound name and direct file names.}}
{{KV|SoundOnBreak|intn=m_szSoundOnBreak|sound|When this entity breaks it will play the specified sound. Support sound name and direct file names.}}
{{KV|DamageToPlayerOnTouch|intn=m_FDamageToPlayerOnTouch|float|Amount of damage that player will take when this entity breaks on player touch.}}
{{KV|DamageToPlayerOnTouch|intn=m_FDamageToPlayerOnTouch|float|Amount of damage that player will take when this entity breaks on player touch.}}
{{KV|fGluonDmgMultiplier|intn=fGluonDmgMultiplier|float|Determines how much damage this prop will take from the [[weapon_gluon|gluon gun]]. 1.0 is value from the [[cvar]].}}
{{KV|fGluonDmgMultiplier|intn=fGluonDmgMultiplier|float|Determines how much damage this prop will take from the [[weapon_gluon|gluon gun]]. 1.0 is value from the [[cvar]].}}
{{KV Targetname}}
{{KV DynamicProp}}
{{KV BreakableProp}}
{{KV BaseAnimating}}
==Flags==
{{fl DynamicProp}}


==Inputs==
==Inputs==
{{IO|InputChangePlayerTouchDamge|param=float|Changes <code>DamageToPlayerOnTouch</code> value.}}
{{IO|InputChangePlayerTouchDamge|param=float|Changes <code>DamageToPlayerOnTouch</code> value.}}
{{I DynamicProp}}
{{I BreakableProp}}
{{I BaseAnimating|portal2=1}}


==Outputs==
{{O DynamicProp}}
{{O Breakable|prop=1}}
{{O BaseAnimating|portal2=1}}


{{note|Any other Keyvalues / Inputs / Outputs are equivalent to {{ent|prop_dynamic}}}}
==See also==
==See also==
*[[Prop Types Overview]]
*[[Prop Types Overview]]

Revision as of 12:04, 30 June 2024

Black Mesa Level Creation
C++ Class hierarchy
?
CDynamicProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
One of shields in Interloper chapter.

prop_dynamic_playertouch is a point entity available in Black Mesa Black Mesa. This is a copy of prop_dynamic_override that breaks when touched by player. It is also have some additional options. Used as flying shields in the campaign.

Note.pngNote:NPCs and physics props can't break this prop by touching it.

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

ParticlesOnBreak (m_szParticlesOnBreak) <string>
When this entity breaks it will create the specified particle system.
SoundOnBreak (m_szSoundOnBreak) <sound>
When this entity breaks it will play the specified sound. Support sound name and direct file names.
DamageToPlayerOnTouch (m_FDamageToPlayerOnTouch) <float>
Amount of damage that player will take when this entity breaks on player touch.
fGluonDmgMultiplier (fGluonDmgMultiplier) <float>
Determines how much damage this prop will take from the gluon gun. 1.0 is value from the cvar.

Inputs

InputChangePlayerTouchDamge <floatRedirectInput/float>
Changes DamageToPlayerOnTouch value.


Note.pngNote:Any other Keyvalues / Inputs / Outputs are equivalent to prop_dynamic

See also