Prop physics override: Difference between revisions
Jump to navigation
Jump to search
Note:Models must have a collision wireframe, or they will not work. If you intend to use a collision-less model as a physics object, make it a prop_dynamic and parent it to a func_physbox
MyGamepedia (talk | contribs) No edit summary |
(-added class hierarchy, cleanup, see also) |
||
Line 1: | Line 1: | ||
{{CD|CPhysicsProp|file1=props.cpp}} | |||
{{this is a|e0|name=prop_physics_override}} A prop type that will override the properties built into its model, making it work like a <code>[[prop_physics]]</code> entity. The health of props can also be overridden by using this entity. | {{this is a|e0|name=prop_physics_override}} A prop type that will override the properties built into its model, making it work like a <code>[[prop_physics]]</code> entity. The health of props can also be overridden by using this entity. | ||
Line 9: | Line 10: | ||
* [[Prop Types Overview]] | * [[Prop Types Overview]] | ||
* [[Prop Footsteps]] - A tutorial that provides essential code for when players walk on entities like this, it's not ignored during footstep sound computation. | * [[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 == | == Keyvalues == | ||
{{KV|Health|intn=health|integer|Number of points of damage to take before breaking. 0 means don't break. | {{KV|Health|intn=health|integer|Number of points of damage to take before breaking. 0 means don't break. | ||
{{ | :{{note|Regular prop_physics cannot override health but prop_physics_override can. <code>All other Keyvalues / Inputs / Outputs are identical to prop_physics</code>}}}} | ||
== | == See Also == | ||
{{ | * {{ent|prop_data}} | ||
{{ | * [[Prop Types Overview]] | ||
** {{ent|prop_physics_multiplayer}} | |||
** {{ent|prop_physics_respawnable}} | |||
{{ | ** {{ent|prop_physics_override}} | ||
{{ | ** {{ent|prop_sphere}} | ||
{{ | ** {{ent|prop_dynamic}} | ||
{{ | ** {{ent|prop_static}} | ||
{{ | ** {{ent|prop_ragdoll}} | ||
{{ | |||
[[Category:Physics]] | [[Category:Physics]] |
Revision as of 10:27, 10 March 2024
![]() |
---|
CPhysicsProp |
![]() |
prop_physics_override
is an e0 available in all Source games. A prop type that will override the properties built into its model, making it work like a
prop_physics
entity. The health of props can also be overridden by using this entity.

Generally, if a prop_physics
in your map has been removed because its model wasn't meant to be a physics prop, you can use this entity to still make it a prop_physics
, without any drawbacks.
Although this entity provides the freedom of turning any prop into a physics prop, be aware of that players will rely on the behavior of props to be more or less consistent with other maps, and even other Source games.
- prop_physics
- Prop Types Overview
- 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
- Health (health) <integer>
- Number of points of damage to take before breaking. 0 means don't break.
Note:Regular prop_physics cannot override health but prop_physics_override can.
All other Keyvalues / Inputs / Outputs are identical to prop_physics