Skip to content

prop_dynamic_ornament

Entity I/O / prop_dynamic_ornament

A way to attach one model to another as an ornament. It will render in the way that player/NPC weapons render.

  • FGD @PointClass in game/core/base.fgd, bases prop_dynamic_base.

CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2

Inputs (55)

NameParameterFromDescription
SetParentapiParentname
SetParentWithOffsetapiParentname
SetParentMaintainOffsetapiParentname
SetParentAttachmentstringParentnameChange this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
SetParentAttachmentMaintainOffsetstringParentnameChange this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the parent at the time it is attached.
ClearParentParentnameRemoves this entity from the the movement hierarchy, leaving it free to move independently.
FollowEntitystringParentnameBone merges this entity to a parent entity. Call again passing nothing to end the bone merge.
SkinintegerStudiomodelChanges the model skin to the specified number.
DisableShadowShadowTurn shadow off.
EnableShadowShadowTurn shadow on.
AlternativeSortingboolStudiomodelUsed to attempt to fix sorting problems when rendering. True activates, false deactivates
SetRenderAttributestringStudiomodelSet the value of a render attribute used in material dynamic expressions. Examples: $myfloat=0.25 $myfloat4=1.0,0.0,1.0,1.0
ClearRenderAttributestringStudiomodelRemove a render attribute previously set by SetRenderAttribute, restoring it to its previous value.
RunScriptFilestringVScriptLoad and execute a script file
RunScriptCodestringVScriptExecute a fragment of script code
CallScriptFunctionstringVScriptCall a script function
CallPrivateScriptFunctionstringVScriptCalls a script function from this entity's private script scope.
CallGlobalScriptFunctionstringVScriptCalls a script function in the global script scope.
KillGameEntityRemoves this entity from the world.
KillHierarchyGameEntityRemoves this entity and all its children from the world.
KillConstrainedGameEntityRemoves this entity, all its children, and anything constrained to it, from the world.
AddOutputstringGameEntityAdds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care.
FireUser1GameEntityCauses this entity's OnUser1 output to be fired.
FireUser2GameEntityCauses this entity's OnUser2 output to be fired.
FireUser3GameEntityCauses this entity's OnUser3 output to be fired.
FireUser4GameEntityCauses this entity's OnUser4 output to be fired.
EnableAutoSleepingGameEntityEnable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest.
DisableAutoSleepingGameEntityDisable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep.
SetDamageFilterstringDamageFilterSets the entity to use as damage filter. Pass in an empty string to clear the damage filter.
BreakBreakableBreaks the breakable.
SetEnableBreakingbooleanBreakableSets whether or not the breakable can break.
SetEnableCollisionsbooleanBreakableSets whether or not the breakable has collision at all.
SetHealthintegerBreakableSets a new value for the breakable's health. If the breakable's health reaches zero it will break.
AddHealthintegerBreakableAdds health to the breakable. If the breakable's health reaches zero it will break.
RemoveHealthintegerBreakableRemoves health from the breakable. If the breakable's health reaches zero it will break.
SetMassfloatBreakableSet mass of this object.
AlphaintegerRenderFieldsSet the sprite's alpha (0 - 255).
Colorcolor255RenderFieldsSet the sprite's color (R G B).
StartGlowingGlowTurn on a permanent glow effect for this prop.
StopGlowingGlowTurn off this prop's glow effect.
SetAnimationLoopingstringprop_dynamic_baseForce the prop to play an animation and force it to loop. The parameter should be the name of the animation.
SetAnimationNoResetLoopingstringprop_dynamic_baseForce the prop to play an animation and force it to loop unless the prop is already playing the animation. The parameter should be the name of the animation.
SetIdleAnimationLoopingstringprop_dynamic_baseChanges the Idle Animation to the one specified in the parameter and force it to loop.
SetAnimationNotLoopingstringprop_dynamic_baseForce the prop to play an animation and force it to not loop. The parameter should be the name of the animation.
SetAnimationNoResetNotLoopingstringprop_dynamic_baseForce the prop to play an animation and force it to not loop unless the prop is already playing the animation. The parameter should be the name of the animation.
SetIdleAnimationNotLoopingstringprop_dynamic_baseChanges the Idle Animation to the one specified in the parameter and force it to not loop.
SetPlaybackRatefloatprop_dynamic_baseSet the playback rate for the animation.
SetBodyGroupstringprop_dynamic_baseSets bodygroup. Format is <BodygroupName,index>
TurnOnprop_dynamic_baseMake the prop visible.
TurnOffprop_dynamic_baseMake the prop invisible.
EnableCollisionprop_dynamic_baseEnable collision on the prop.
DisableCollisionprop_dynamic_baseDisable collision on the prop.
SetNavIgnorebooleanprop_dynamic_baseEnable and disable NAVIgnore on the prop.
SetAttachedstringAttach the ornament to a different entity. Parameter should be the name of entity to attach to.
DetachstringDetach from the Target Entity and become invisible. The ornament can be re-attached with the SetAttached input.

Outputs (16)

NameParameterFromDescription
OnIgniteStudiomodelFired when this object catches fire.
OnDestructibleHitGroupDamageLevelChangedapiStudiomodel
OnUser1GameEntityFired in response to FireUser1 input.
OnUser2GameEntityFired in response to FireUser2 input.
OnUser3GameEntityFired in response to FireUser3 input.
OnUser4GameEntityFired in response to FireUser4 input.
OnKilledGameEntityFired when the entity is killed and removed from the game. Parameter is the inflictor.
OnStartDeathBreakableFired when this prop has begun dying (breaking) before other death-related callbacks.
OnBreakBreakableFired when this breakable breaks.
OnHealthChangedfloatBreakableFired when the health of this breakable changes, passing the new value of health as a percentage of max health, from [0..1].
OnTakeDamageBreakablePropFired each time this breakable takes any damage.
OnAnimationBegunprop_dynamic_baseFired whenever a new animation has begun playing.
OnAnimationDoneprop_dynamic_baseFired whenever an animation is complete.
OnAnimationReachedEndprop_dynamic_baseFired whenever a non-looping animation playing forward hits the end (cycle=1).
OnAnimationReachedStartprop_dynamic_baseFired whenever a non-looping animation playing backward hits the beginning (cycle=0).
OnAnimationLoopCycleDoneprop_dynamic_baseFires off an event when the current cycle of a looped animation is complete.

Keyvalues (62)

The names Hammer saves and the KeyValue input and AddOutput take at run time. An entity reads some keys only when it spawns, so changing one later may do nothing. Integer keys such as movetype take engine numbers, not the renumbered cs_script enum values.

KeyTypeDefaultFromDescription
parentname
Parent
target_destinationParentnameThe name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
parentAttachmentName
Parent Bone/Attachment Name
parentAttachmentParentnameThe name of the bone or attachment to attach to on the entity's parent in the movement hierarchy. Use !bonemerge to use bone-merge style attachment. NOTE: If this is specified the Hammer transform will be disregarded, even if 'Use Local Transform' is NOT specified (in that case local transform will be identity)
useLocalOffset
Use Local Transform
boolean0ParentnameWhether to respect the specified local offset when doing the initial hierarchical attachment to its parent.
local.origin
Local Origin
vectorParentnameOffset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment.
local.angles
Local Angles
angleParentnameAngular offset in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment.
local.scales
Local Scale
vector1 1 1ParentnameScale in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment.
clientSideEntity
Create Client-Only Entity
intchoices0CanBeClientOnly
  • 0 No
  • 1 Yes
globalname
Global Entity Name
stringGlobalName by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
model
World Model
studioStudiomodel
skin
Skin
materialgroupdefaultStudiomodelSome models have multiple versions of their textures, called skins.
bodygroups
Body Groups
bodygroupchoicesStudiomodel
expand_render_bounds_to_include_cloth
Expand Render Bounds To Include Cloth
boolean0StudiomodelExpands this entity's render bounds to contain its simulated cloth bones. Enable this if you see this entity being render culled even though its cloth is in view.
disableshadows
Cast Shadows
intchoices0ShadowUsed to disable shadow casting from this entity.
  • 0 Enabled
  • 1 No Shadows
  • 2 Only Realtime Shadows
  • 3 Only Baked Shadows
add_attribute
Add Attribute
stringStudiomodelWill add an additional attribute that AI/player entities can query when checking props for information (ex: 'DogToy' or 'GrabbableResource')
add_modifier
Add Modifier
stringStudiomodelWill add this modifier when the entity spawns.
animgraph2_identifier
AnimGraph2 Identifier
animgraph2_identifierBaseAnimGraph2Which animgraph should we use when spawning the entity? Animgraph identifiers are authored in modeldoc, see the AnimGraph2 reference node.
vscripts
Entity Scripts
scriptlistVScriptName(s) of script files that are executed after all entities have spawned.
targetname
Name
target_sourceTargetnameThe name that other entities refer to this entity by.
damagefilter
Damage Filter
target_destinationDamageFilterName of the filter entity that controls which entities can damage us.
ExplodeDamage
Explosion Damage
float0BreakableIf non-zero, when this entity breaks it will create an explosion that causes the specified amount of damage. See also 'Explosion Radius'.
ExplodeRadius
Explosion Radius
float0BreakableIf non-zero, when this entity breaks it will create an explosion with a radius of the specified amount. See also 'Explosion Damage'.
PerformanceMode
Performance Mode
choicesPM_NORMALBreakableUsed to limit the amount of gibs produced when this entity breaks, for performance reasons.
  • PM_NORMAL Normal
  • PM_NO_GIBS No Gibs
NoInterpolate
Disable Client-Side Interpolation
boolean0Breakable
spawnflagsflagsprop_dynamic_base
  • 16 Break on Touch
  • 32 Break on Pressure
  • 64 Use Hitboxes for Renderbox
  • 256 Start with collision disabled
  • 512 Set to Nav Ignore
  • 1024 Set to Local-Nav Ignore (NPC will not try to avoid this entity)
  • 2048 Exclude from PVS (Always networked, use sparingly)
pressuredelay
Pressure Delay
float0BreakablePropDelay, in seconds, after 'broken' by pressure before breaking apart (allows for sound to play before breaking apart).
burstscale
Burst Force Scale
float100BreakablePropRadial force applied to our pieces when we break.
burstlocation
Burst Force Location
local_pointBreakablePropLocation in local space where the burst force is applied.
BreakableContentsType
Contents Type
choicesBC_DEFAULTBreakablePropSet the type of contents inside this breakable.
  • BC_DEFAULT Default
  • BC_EMPTY Empty
  • BC_PROP_GROUP_OVERRIDE Prop Group Override
  • BC_PARTICLE_SYSTEM_OVERRIDE Particle System Override
BreakableContentsPropGroupOverride
Breakable Contents Prop Group Override
vdata_choice:scripts/misc.vdataBreakablePropProp Group to use when the prop is broken
BreakableContentsParticleOverride
Breakable Contents Particle Override
particlesystemBreakableProp
renderfx
Render FX
choiceskRenderFxNoneRenderFxChoices
  • kRenderFxNone Normal
  • kRenderFxPulseSlow Slow Pulse
  • kRenderFxPulseFast Fast Pulse
  • kRenderFxPulseSlowWide Slow Wide Pulse
  • kRenderFxPulseFastWide Fast Wide Pulse
  • kRenderFxStrobeSlow Slow Strobe
  • kRenderFxStrobeFast Fast Strobe
  • kRenderFxStrobeFaster Faster Strobe
  • kRenderFxFlickerSlow Slow Flicker
  • kRenderFxFlickerFast Fast Flicker
  • kRenderFxFadeSlow Slow Fade Away
  • kRenderFxFadeFast Fast Fade Away
  • kRenderFxSolidSlow Slow Become Solid
  • kRenderFxSolidFast Fast Become Solid
  • kRenderFxNoDissipation Constant Glow
  • 15 Distort
  • 16 Hologram (Distort + fade)
  • 23 Cull By Distance (TEST)
  • 24 Spotlight FX
  • 26 Fade Near
rendermode
Render Mode
choiceskRenderNormalRenderModeChoicesUsed to set a non-standard rendering mode on this entity. See also 'FX Amount' and 'FX Color'.
  • kRenderNormal Normal
  • kRenderTransColor Color
  • kRenderTransTexture Texture
  • kRenderGlow Glow
  • kRenderTransAlpha Solid
  • kRenderTransAdd Additive
  • kRenderTransAddFrameBlend Additive Fractional Frame
  • kRenderWorldGlow World Space Glow
  • kRenderNone Dont Render
  • kRenderDevVisualizer Dev Visualizer
renderamt
Alpha
integer255prop_dynamic_baseAlpha of the fade, where 0 = fully transparent and 255 = fully opaque.
rendercolor
Color (R G B)
color255255 255 255prop_dynamic_base
disablereceiveshadows
Disable Receiving Shadows
boolean0RenderFields
fademindist
Start Fade Dist
float-1RenderFieldsDistance at which the overlay starts to fade (-1 = subtract from fademaxdist).
fademaxdist
End Fade Dist
float0RenderFieldsMaximum distance at which the overlay is visible (0 = don't fade out).
object_culling
Culling Behaviour
intchoices0RenderFieldsModifies culling behaviour when the object is small / distant
  • 0 Default
  • 1 Smaller than default
  • 2 Much smaller than default
  • 3 When extremely small
rendertocubemaps
Render to Cubemaps
boolean0RenderFieldsIf true, this geometry renders into baked cube maps
lightmapstatic
Lightmap Static
intchoices0RenderFieldsDetermines if this geometry be considered static & cast shadows/bounce light when baking lightmaps?
  • 0 No
  • 1 Yes
  • 2 Bounce Only
glowstate
Glow State
intchoices0Glow
  • 0 OFF
  • 1 +use
  • 2 look-at
  • 3 ON
glowrange
Glow Range
integer0GlowRange at which the glow becomes visible. (0 = always visible)
glowrangemin
Glow Range Min
integer0GlowRange at which the glow stops being visible. (0 = always visible)
glowcolor
Glow Color Override (R G B)
color2550 0 0GlowChange the render color of the glow.
glowteam
Glow Team
integer-1GlowChange the team we glow for.
solid
Collisions
intchoices6
  • 0 Not Solid
  • 2 Use axis-aligned box
  • 3 Use oriented Box
  • 6 Use VPhysics
disablelowviolence
Turn Off in Low-Violence
intchoices0prop_dynamic_base
  • 0 No
  • 1 Yes
use_animgraph
Use Animgraph
boolean1prop_dynamic_baseAllow the model to use its animgraph it has one. If the model has no animgraph this setting has no effect and is disabled
StartingAnim
Starting Animation
sequenceprop_dynamic_baseThe name of a starting animation that this prop will start with when it spawns. After completion, it will switch to the Idle sequence, if it is specified. This setting is ignored for models with an animgraph when Use Animgraph is enabled.
StartingAnimationLoopMode
Start Animation Loop Mode
choicesANIM_LOOP_MODE_NOT_LOOPINGprop_dynamic_base
  • ANIM_LOOP_MODE_NOT_LOOPING Do Not Loop
  • ANIM_LOOP_MODE_LOOPING Loop
IdleAnim
Idle Animation
sequenceprop_dynamic_baseThe name of the idle animation that this prop will revert to whenever it finishes a random or forced animation. This setting is ignored for models with an animgraph when Use Animgraph is enabled.
IdleAnimationLoopMode
Idle Animation Loop Mode
choicesANIM_LOOP_MODE_NOT_LOOPINGprop_dynamic_base
  • ANIM_LOOP_MODE_NOT_LOOPING Do Not Loop
  • ANIM_LOOP_MODE_LOOPING Loop
randomizecycle
Randomize cycle
boolean0prop_dynamic_baseIf set, this prop will randomize its cycle when it begins animating. Use this to desynchronize animating props that use the same model.
LagCompensate
Lag Compensation
boolean0prop_dynamic_baseEnable to lag compensate this prop, should be use very sparingly!
AnimateOnServer
Animate on server in multiplayer
boolean0prop_dynamic_baseEnable this to animate on the server in multiplayer games, such as for props with triggers parented to attachment points. Use sparingly as there is a performance cost.
interactAsstringprop_dynamic_basecomma-separated list of interaction layers to interact as
interactWithstringprop_dynamic_basecomma-separated list of interaction layers to interact with
interactExcludestringprop_dynamic_basecomma-separated list of interaction layers to not collide with
lightingorigin
Lighting Origin
target_destinationprop_dynamic_baseSelect an entity to specify a location to sample lighting from, instead of using this entity's origin.
CreateNavObstacle
Create Nav Obstacle
boolean0prop_dynamic_baseCreate a navigation obstacle to assist NPC pathfinding
forcenpcexclude
Force NPC Exclude
boolean0prop_dynamic_baseIf set, NPC movement will ignore this prop
InitialOwner
Target Entity
stringName of the entity that this ornament should attach to, at startup.