Prop dynamic

From Valve Developer Community
Revision as of 21:13, 18 May 2008 by ChiacDomva (talk | contribs) (alelcnada)
Jump to navigation Jump to search

what its like to die state maps strange duck sierra model latino radio spots command and conquer generals metal halide murad cosmetics saddleman management games download rubber tired loaders poker set wildlife cameras afi davey havok crochet books juvenile rehabilitation los angeles daily news prom shoes mycd gap maternity muscial instruments t string artworks famous exotic golf carts big mama tax free allowance 2005 disneyworld vacation rental homes latin dance dvd copying software www microsoft com education lessonplans nombre para bebes.com live image streams in microsoft internet know peek through the keyhole longitudinal studies and toe goz secured transactions outline saps effect angel investor lil jon and the east side boys paul brenner md tweeters ncircle toronto beth lymphoblastic lukemia mike shinodas here israel population statistics cotten eye joe seal rite door slava site myspace.com preschool finger puppets discount glass vases jes 2 in nicaragua war world men swimwear beading supply airline manila reservation ticket branson stage shows portuguese bull fighting avenue d burners cheap dvds creative services briana banks nude free sewage pump local newspaper obituaries rsv sims 2 code for money itz cash 3 paper buildings london remax commercial brokerage ecology phenomenological isosorbide side effects earthcam mentors on a mission more saddlebred source m drowning slowly death metal josh groban remember membrane wine press bikini atoll earl b. larkin soccer chicks custom embroidered product online art application illinois secretary state title agency canada income revenue tax dilaudid miami zoning laws top ten country hit japanese colonization korea flood insurance arizona under the table jobs lake tahoe condos carleton document storage subwoofer review best subwoofer 3d archiving gargoyle tattoos ring blower almirante hotel alicante labor relations consultant exotic encounters map elizabeth ann hilden childrens lamps thermography raw food recipe aa.com admiralsclub network manager job description atv extreme female wet pants atv plows personalized license plate frames infectious disease jobs anna nalick breathe summer camp position tub shower faucets travel package address management software the brickskeller dc apartment birmingham michigan rental hp 45 aya matsuura pictures 3 phase electrical circuit eostar peugeot 605 sesso just eat it wholesale computer product tara emory organize toys ideas anouk one word top american society of gastroenterologist short homecoming dresses acc center for non omega travel agent london miami wedding bands one man band hard drive mechanic gold condo in the cayman islands rubber label nun sex nude tatty bear kef corelli thoughtless evanescence curious george crib bedding san diego lodging players by the sea jacksonville american comic cartoon men grease guns top norwegian kelp zeven germany australian grass tree body shop equipment video remote interpreting preschool handwriting worksheets washington dc national gallery of art epiplexis lyric and 21st century schizoid man ballard designs monroes bisquick lirr monthly fares the life dvd review paducah sun argonaut hotel fishermans wharf a kimpton hotel mondrian language skill shortage sitemap awanas heart texas vgn b100b07 teen program equipment lease anal couple married sex so beautiful billet wheels referrible nutritional information on couscous picking wildflowers trophic levels chicago neighborhoods japanese tattoo symbols jackson michael soundboard bad credit mastercard obsession lyrics pasadena paseo apartments logazou link watermelon facts media player default player pre-fab homes muscular military men tetons amber campisis pictures san diego home Template:Wrongtitle Template:Base point

Entity description

A prop that can be placed in hierarchy and can play animations. It can also be configured to break when it takes enough damage. Note that the health of the object will be overridden by the health inside the model, to ensure consistent health game-wide. If the model used by the prop is configured to be used as a prop_physics (i.e. it should be physically simulated) then it can not be used as a prop_dynamic. Upon level load it will display a warning in the console and remove itself. Use a prop_physics or prop_dynamic_override instead.

Notes

This entity cannot be moved on its own. However, it can be parented to a moving object such as a func_physbox.

For example, if you wanted to make the butcher knife in the props_lab folder into a knife you can actually pick up, you can create it as a prop_dynamic entity and parent it to an invisible func_physbox.

Modelled buttons can be used by covering a prop_dynamic button with a func_button, and then targeting the prop_dynamic with the SetAnimation input.

Levers can be used by covering a prop_dynamic with a func_rot_button. Parent the prop_dynamic to the func_rot_button.

Valves can be created by using a prop_dynamic with a valve model and covering the prop_dynamic with momentary_rot_button. Parent the prop_dynamic to the momentary_rot_button.


  • See also Prop Types Overview
  • See also Prop Footsteps - A tutorial that provides essential code for when players walk on entities like this, it's not ignored during footstep sound computation.

Keyvalues

<choices> Collisions.
Literal value Description
0 Not Solid
2 Use Bounding Box
6 Use VPhysics

Flags

  • BreakableProp:
Break on Touch : [16]
Break on Pressure : [32]
Will break after being stood on for PressureDelay seconds.
Note.pngNote:Some models will break instantly if this is or isn't set. (e.g. militiawindow02_breakable.mdl, window_industrial.mdl)
  • 64 : Use Hitboxes for Renderbox

Inputs

Skin <integerRedirectInput/integer>
Changes the model's skin to the specified number.
SetBodyGroup <integerRedirectInput/integer>
Set the model's body group.
AlternativeSorting <booleanRedirectInput/boolean>
Uses an alternative method for telling which objects are in front of others. Use if this object draws incorrectly when seen through transparent things.
SetModelScale <stringRedirectInput/string> (in all games since Alien Swarm) (also in Source 2013)
Sets the model scale. Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over. If there is no second value, the model will scale instantly.
Warning.pngWarning:Negative or extremely high values can cause crashes!

Shadow:

DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.

Reflection:

DisableDrawInFastReflection  (in all games since Portal 2)
Turns off rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
EnableDrawInFastReflection  (in all games since Portal 2)
Turn on rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
ToggleDraw:
DisableDraw  (in all games since Portal 2)
Add the EF_NODRAW flag to this entity. Some entities manage this on their own so be aware you can override that value.
EnableDraw  (in all games since Portal 2)
Remove the EF_NODRAW flag from this entity. Some entities manage this on their own so be aware you can override that value.
Force the prop to play an animation. The parameter should be the name of the animation.
  • SetDefaultAnimation <string>
Set the default animation (DefaultAnim) to the one specified in the parameter."
  • SetBodyGroup <integer>
Set the visible bodygroup, by index.
  • TurnOn
Make the prop visible.
  • TurnOff
Make the prop invisible.

Outputs

  • Studiomodel:
OnIgnite
Fired when this object catches fire.
  • OnAnimationBegun
Fired whenever a new animation has begun playing.
  • OnAnimationDone
Fired whenever an animation is complete.
  • OnOutOfWorld
Fired whenever the entity leaves map boundaries.