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
@PointClassingame/core/base.fgd, basesprop_dynamic_base.
CS2 build 27045800 · Steam date 2026-11-30 · platform windows-x86_64 · schema format 2.2
Inputs (55)
| Name | Parameter | From | Description |
|---|---|---|---|
SetParent | api | Parentname | |
SetParentWithOffset | api | Parentname | |
SetParentMaintainOffset | api | Parentname | |
SetParentAttachment | string | Parentname | Change 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. |
SetParentAttachmentMaintainOffset | string | Parentname | Change 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. |
ClearParent | Parentname | Removes this entity from the the movement hierarchy, leaving it free to move independently. | |
FollowEntity | string | Parentname | Bone merges this entity to a parent entity. Call again passing nothing to end the bone merge. |
Skin | integer | Studiomodel | Changes the model skin to the specified number. |
DisableShadow | Shadow | Turn shadow off. | |
EnableShadow | Shadow | Turn shadow on. | |
AlternativeSorting | bool | Studiomodel | Used to attempt to fix sorting problems when rendering. True activates, false deactivates |
SetRenderAttribute | string | Studiomodel | Set the value of a render attribute used in material dynamic expressions. Examples: $myfloat=0.25 $myfloat4=1.0,0.0,1.0,1.0 |
ClearRenderAttribute | string | Studiomodel | Remove a render attribute previously set by SetRenderAttribute, restoring it to its previous value. |
RunScriptFile | string | VScript | Load and execute a script file |
RunScriptCode | string | VScript | Execute a fragment of script code |
CallScriptFunction | string | VScript | Call a script function |
CallPrivateScriptFunction | string | VScript | Calls a script function from this entity's private script scope. |
CallGlobalScriptFunction | string | VScript | Calls a script function in the global script scope. |
Kill | GameEntity | Removes this entity from the world. | |
KillHierarchy | GameEntity | Removes this entity and all its children from the world. | |
KillConstrained | GameEntity | Removes this entity, all its children, and anything constrained to it, from the world. | |
AddOutput | string | GameEntity | Adds 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. |
FireUser1 | GameEntity | Causes this entity's OnUser1 output to be fired. | |
FireUser2 | GameEntity | Causes this entity's OnUser2 output to be fired. | |
FireUser3 | GameEntity | Causes this entity's OnUser3 output to be fired. | |
FireUser4 | GameEntity | Causes this entity's OnUser4 output to be fired. | |
EnableAutoSleeping | GameEntity | Enable automatic sleeping on this entity's physics bodies. When enabled, physics bodies go to sleep when at rest. | |
DisableAutoSleeping | GameEntity | Disable automatic sleeping on this entity's physics bodies. Bodies remain awake until explicitly put to sleep. | |
SetDamageFilter | string | DamageFilter | Sets the entity to use as damage filter. Pass in an empty string to clear the damage filter. |
Break | Breakable | Breaks the breakable. | |
SetEnableBreaking | boolean | Breakable | Sets whether or not the breakable can break. |
SetEnableCollisions | boolean | Breakable | Sets whether or not the breakable has collision at all. |
SetHealth | integer | Breakable | Sets a new value for the breakable's health. If the breakable's health reaches zero it will break. |
AddHealth | integer | Breakable | Adds health to the breakable. If the breakable's health reaches zero it will break. |
RemoveHealth | integer | Breakable | Removes health from the breakable. If the breakable's health reaches zero it will break. |
SetMass | float | Breakable | Set mass of this object. |
Alpha | integer | RenderFields | Set the sprite's alpha (0 - 255). |
Color | color255 | RenderFields | Set the sprite's color (R G B). |
StartGlowing | Glow | Turn on a permanent glow effect for this prop. | |
StopGlowing | Glow | Turn off this prop's glow effect. | |
SetAnimationLooping | string | prop_dynamic_base | Force the prop to play an animation and force it to loop. The parameter should be the name of the animation. |
SetAnimationNoResetLooping | string | prop_dynamic_base | Force 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. |
SetIdleAnimationLooping | string | prop_dynamic_base | Changes the Idle Animation to the one specified in the parameter and force it to loop. |
SetAnimationNotLooping | string | prop_dynamic_base | Force the prop to play an animation and force it to not loop. The parameter should be the name of the animation. |
SetAnimationNoResetNotLooping | string | prop_dynamic_base | Force 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. |
SetIdleAnimationNotLooping | string | prop_dynamic_base | Changes the Idle Animation to the one specified in the parameter and force it to not loop. |
SetPlaybackRate | float | prop_dynamic_base | Set the playback rate for the animation. |
SetBodyGroup | string | prop_dynamic_base | Sets bodygroup. Format is <BodygroupName,index> |
TurnOn | prop_dynamic_base | Make the prop visible. | |
TurnOff | prop_dynamic_base | Make the prop invisible. | |
EnableCollision | prop_dynamic_base | Enable collision on the prop. | |
DisableCollision | prop_dynamic_base | Disable collision on the prop. | |
SetNavIgnore | boolean | prop_dynamic_base | Enable and disable NAVIgnore on the prop. |
SetAttached | string | Attach the ornament to a different entity. Parameter should be the name of entity to attach to. | |
Detach | string | Detach from the Target Entity and become invisible. The ornament can be re-attached with the SetAttached input. |
Outputs (16)
| Name | Parameter | From | Description |
|---|---|---|---|
OnIgnite | Studiomodel | Fired when this object catches fire. | |
OnDestructibleHitGroupDamageLevelChanged | api | Studiomodel | |
OnUser1 | GameEntity | Fired in response to FireUser1 input. | |
OnUser2 | GameEntity | Fired in response to FireUser2 input. | |
OnUser3 | GameEntity | Fired in response to FireUser3 input. | |
OnUser4 | GameEntity | Fired in response to FireUser4 input. | |
OnKilled | GameEntity | Fired when the entity is killed and removed from the game. Parameter is the inflictor. | |
OnStartDeath | Breakable | Fired when this prop has begun dying (breaking) before other death-related callbacks. | |
OnBreak | Breakable | Fired when this breakable breaks. | |
OnHealthChanged | float | Breakable | Fired when the health of this breakable changes, passing the new value of health as a percentage of max health, from [0..1]. |
OnTakeDamage | BreakableProp | Fired each time this breakable takes any damage. | |
OnAnimationBegun | prop_dynamic_base | Fired whenever a new animation has begun playing. | |
OnAnimationDone | prop_dynamic_base | Fired whenever an animation is complete. | |
OnAnimationReachedEnd | prop_dynamic_base | Fired whenever a non-looping animation playing forward hits the end (cycle=1). | |
OnAnimationReachedStart | prop_dynamic_base | Fired whenever a non-looping animation playing backward hits the beginning (cycle=0). | |
OnAnimationLoopCycleDone | prop_dynamic_base | Fires 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.
| Key | Type | Default | From | Description |
|---|---|---|---|---|
parentnameParent | target_destination | Parentname | The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent. | |
parentAttachmentNameParent Bone/Attachment Name | parentAttachment | Parentname | The 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) | |
useLocalOffsetUse Local Transform | boolean | 0 | Parentname | Whether to respect the specified local offset when doing the initial hierarchical attachment to its parent. |
local.originLocal Origin | vector | Parentname | 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.anglesLocal Angles | angle | Parentname | Angular 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.scalesLocal Scale | vector | 1 1 1 | Parentname | Scale in the local space of the parent model's attachment/bone to use in hierarchy. Not used if you are not using parent attachment. |
clientSideEntityCreate Client-Only Entity | intchoices | 0 | CanBeClientOnly |
|
globalnameGlobal Entity Name | string | Global | Name 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. | |
modelWorld Model | studio | Studiomodel | ||
skinSkin | materialgroup | default | Studiomodel | Some models have multiple versions of their textures, called skins. |
bodygroupsBody Groups | bodygroupchoices | Studiomodel | ||
expand_render_bounds_to_include_clothExpand Render Bounds To Include Cloth | boolean | 0 | Studiomodel | Expands 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. |
disableshadowsCast Shadows | intchoices | 0 | Shadow | Used to disable shadow casting from this entity.
|
add_attributeAdd Attribute | string | Studiomodel | Will add an additional attribute that AI/player entities can query when checking props for information (ex: 'DogToy' or 'GrabbableResource') | |
add_modifierAdd Modifier | string | Studiomodel | Will add this modifier when the entity spawns. | |
animgraph2_identifierAnimGraph2 Identifier | animgraph2_identifier | BaseAnimGraph2 | Which animgraph should we use when spawning the entity? Animgraph identifiers are authored in modeldoc, see the AnimGraph2 reference node. | |
vscriptsEntity Scripts | scriptlist | VScript | Name(s) of script files that are executed after all entities have spawned. | |
targetnameName | target_source | Targetname | The name that other entities refer to this entity by. | |
damagefilterDamage Filter | target_destination | DamageFilter | Name of the filter entity that controls which entities can damage us. | |
ExplodeDamageExplosion Damage | float | 0 | Breakable | If non-zero, when this entity breaks it will create an explosion that causes the specified amount of damage. See also 'Explosion Radius'. |
ExplodeRadiusExplosion Radius | float | 0 | Breakable | If non-zero, when this entity breaks it will create an explosion with a radius of the specified amount. See also 'Explosion Damage'. |
PerformanceModePerformance Mode | choices | PM_NORMAL | Breakable | Used to limit the amount of gibs produced when this entity breaks, for performance reasons.
|
NoInterpolateDisable Client-Side Interpolation | boolean | 0 | Breakable | |
spawnflags | flags | prop_dynamic_base |
| |
pressuredelayPressure Delay | float | 0 | BreakableProp | Delay, in seconds, after 'broken' by pressure before breaking apart (allows for sound to play before breaking apart). |
burstscaleBurst Force Scale | float | 100 | BreakableProp | Radial force applied to our pieces when we break. |
burstlocationBurst Force Location | local_point | BreakableProp | Location in local space where the burst force is applied. | |
BreakableContentsTypeContents Type | choices | BC_DEFAULT | BreakableProp | Set the type of contents inside this breakable.
|
BreakableContentsPropGroupOverrideBreakable Contents Prop Group Override | vdata_choice:scripts/misc.vdata | BreakableProp | Prop Group to use when the prop is broken | |
BreakableContentsParticleOverrideBreakable Contents Particle Override | particlesystem | BreakableProp | ||
renderfxRender FX | choices | kRenderFxNone | RenderFxChoices |
|
rendermodeRender Mode | choices | kRenderNormal | RenderModeChoices | Used to set a non-standard rendering mode on this entity. See also 'FX Amount' and 'FX Color'.
|
renderamtAlpha | integer | 255 | prop_dynamic_base | Alpha of the fade, where 0 = fully transparent and 255 = fully opaque. |
rendercolorColor (R G B) | color255 | 255 255 255 | prop_dynamic_base | |
disablereceiveshadowsDisable Receiving Shadows | boolean | 0 | RenderFields | |
fademindistStart Fade Dist | float | -1 | RenderFields | Distance at which the overlay starts to fade (-1 = subtract from fademaxdist). |
fademaxdistEnd Fade Dist | float | 0 | RenderFields | Maximum distance at which the overlay is visible (0 = don't fade out). |
object_cullingCulling Behaviour | intchoices | 0 | RenderFields | Modifies culling behaviour when the object is small / distant
|
rendertocubemapsRender to Cubemaps | boolean | 0 | RenderFields | If true, this geometry renders into baked cube maps |
lightmapstaticLightmap Static | intchoices | 0 | RenderFields | Determines if this geometry be considered static & cast shadows/bounce light when baking lightmaps?
|
glowstateGlow State | intchoices | 0 | Glow |
|
glowrangeGlow Range | integer | 0 | Glow | Range at which the glow becomes visible. (0 = always visible) |
glowrangeminGlow Range Min | integer | 0 | Glow | Range at which the glow stops being visible. (0 = always visible) |
glowcolorGlow Color Override (R G B) | color255 | 0 0 0 | Glow | Change the render color of the glow. |
glowteamGlow Team | integer | -1 | Glow | Change the team we glow for. |
solidCollisions | intchoices | 6 |
| |
disablelowviolenceTurn Off in Low-Violence | intchoices | 0 | prop_dynamic_base |
|
use_animgraphUse Animgraph | boolean | 1 | prop_dynamic_base | Allow the model to use its animgraph it has one. If the model has no animgraph this setting has no effect and is disabled |
StartingAnimStarting Animation | sequence | prop_dynamic_base | The 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. | |
StartingAnimationLoopModeStart Animation Loop Mode | choices | ANIM_LOOP_MODE_NOT_LOOPING | prop_dynamic_base |
|
IdleAnimIdle Animation | sequence | prop_dynamic_base | The 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. | |
IdleAnimationLoopModeIdle Animation Loop Mode | choices | ANIM_LOOP_MODE_NOT_LOOPING | prop_dynamic_base |
|
randomizecycleRandomize cycle | boolean | 0 | prop_dynamic_base | If set, this prop will randomize its cycle when it begins animating. Use this to desynchronize animating props that use the same model. |
LagCompensateLag Compensation | boolean | 0 | prop_dynamic_base | Enable to lag compensate this prop, should be use very sparingly! |
AnimateOnServerAnimate on server in multiplayer | boolean | 0 | prop_dynamic_base | Enable 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. |
interactAs | string | prop_dynamic_base | comma-separated list of interaction layers to interact as | |
interactWith | string | prop_dynamic_base | comma-separated list of interaction layers to interact with | |
interactExclude | string | prop_dynamic_base | comma-separated list of interaction layers to not collide with | |
lightingoriginLighting Origin | target_destination | prop_dynamic_base | Select an entity to specify a location to sample lighting from, instead of using this entity's origin. | |
CreateNavObstacleCreate Nav Obstacle | boolean | 0 | prop_dynamic_base | Create a navigation obstacle to assist NPC pathfinding |
forcenpcexcludeForce NPC Exclude | boolean | 0 | prop_dynamic_base | If set, NPC movement will ignore this prop |
InitialOwnerTarget Entity | string | Name of the entity that this ornament should attach to, at startup. |