CASW_Prop_Physics

From Source Entities
Jump to navigation Jump to search

CASW_Prop_Physics is a version of CPhysicsProp specialized for Alien Swarm. It's not very different.

Classnames:

FGD Code[edit | edit source]

This FGD code will allow you to select asw_prop_physics as an entity in Hammer. Paste the code to the bottom of swarm.fgd.

@PointClass base(prop_physics) studioprop() sphere(fademindist) sphere(fademaxdist) = asw_prop_physics :
	"A prop that physically simulates as a single rigid body. It can be constrained to other physics objects using hinges "+
	"or other constraints. 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_dynamic (i.e. it should not be physically simulated) then it CANNOT be "+
	"used as a prop_physics. Upon level load it will display a warning in the console and remove itself. Use a prop_dynamic instead."
[
	spawnflags(flags) =
	[
		32768 : "Autoaim target - Marines aim accurately at prop." : 0
	]
]

Flags[edit | edit source]

  • 32768: Autoaim target - Marines will aim their guns directly at the prop, instead of simply firing straight ahead of themselves. Useful for aiming at objects at a different altitude than the players.

Keyvalues[edit | edit source]

No force from bullets (BulletForceImmune) <boolean>
Prop does not move when shot by bullets.