OilDrumExplosive
An oil drum that catches fire when damaged and explodes when its health reaches zero, dealing area damage to nearby entities.
Universal Inputs
These inputs are available on every entity in the engine, not just this one.
GetValue String Reads the named exposed value from this entity and injects it into the pass variable pool. See Advanced Outputs for details. AddVelocity x,y,z Adds the given vector to the entity's current velocity. SetVelocity x,y,z Sets the entity's velocity to the given vector, discarding any current velocity. SetPosition x,y,z Teleports the entity to the given world position. SetScale x,y,z Sets the entity's scale. SetRotation x,y,z Sets the entity's rotation from Euler angles in degrees. AddImpulse x,y,z Applies an instantaneous physics impulse to the entity. Destroy — Despawns this entity on the next frame. Notes
OilDrumExplosive is a variant of OilDrum from the FPS template. It extends BasePhysicsProp with a health pool and damage handling. When first hit, it applies a FlameCondition (setting it on fire visually). When its health reaches zero it calls ExplosionManager.CreateExplosion(), dealing area-of-effect damage and despawning itself.
The explosion radius, falloff radius, and force are configured directly in the source at FPSTemplate/Entities/OilDrumExplosive.cs.
This is a template entity, intended as a ready-to-use example of how to combine BasePhysicsProp with custom damage handling and conditions.