Template:I BasePropPhysics
Jump to navigation
Jump to search
BasePropPhysics:
Wake
Sleep
- Manually take the prop in or out of sleep mode. Props sleep after coming to rest and wake if affected by an external force.
EnableMotion
DisableMotion
- Props with motion disabled will not move under any circumstances.
DisableFloating
- Disable fluid/floating simulation.
SetBodyGroup <int>
- Set this prop's body group.
physdamagescale <float>
- Multiplies damage received from physics impacts. 0 means the feature is disabled for backwards compatibility.
EnableDamageForces
DisableDamageForces
- Whether damaging the entity does applies force to it.
EnablePuntSound
(in all games since)
DisablePuntSound
(in all games since)
- Allow/prevent this prop from playing its own sound when punted
Studiomodel:
- SetBodyGroup <integer>
- Set the model's body group.
- AlternativeSorting <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 <string> (in all games since
) (also in
)
- 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: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
)
- This object will not receive light or shadows from projected textures.
- EnableReceivingFlashlight (in all games since
)
- This object may receive light or shadows from projected textures.
Reflection:
- DisableDrawInFastReflection (in all games since
)
- Turns off rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.
- EnableDrawInFastReflection (in all games since
)
- Turn on rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.
ToggleDraw:
- DisableDraw (in all games since
)
- 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
)
- Remove the EF_NODRAW flag from this entity. Some entities manage this on their own so be aware you can override that value.
BreakableProp:
- Break
- Breaks the breakable.
- SetHealth <integer>
- Sets a new value for the breakable's health. If the breakable's health reaches zero it will break.
- AddHealth <integer>
- Adds health to the breakable.
- RemoveHealth <integer>
- Removes health from the breakable.
- physdamagescale <float>
- Sets Physics Impact Damage Scale. 0 means this feature is disabled for backwards compatibility.
- EnablePhyscannonPickup
- Makes the breakable able to picked up by the gravity gun.
- DisablePhyscannonPickup
- Makes the breakable not able to picked up by the gravity gun.
- EnablePuntSound (in all games since
)
- Allow this prop from playing its Punt Sound sound when punted by the gravity gun.
- DisablePuntSound (in all games since
)
- Prevent this prop from playing its Punt Sound sound when punted by the gravity gun.