env_weaponfire

From Source Entities
Jump to navigation Jump to search

Code classes:

env_weaponfire is a point entity present in both L4d.pngL4d2-small.pngLeft 4 Dead games. This entity is used to mimic weapon fire from the guns in L4D. This entity is used for the intro sequence in The Sacrifice. The entity is not 100% faithful to L4D weapon behavior (shots don't penetrate multiple zombies, for example).

Keyvalues[edit | edit source]

Ignore Players (IgnorePlayers) <boolean>
Makes the entity avoid hurting survivors that aren't bots.[Confirmed]
Weapon Type (WeaponType) <choices>
Type of weapon for the effects.
  • 1: Assault Rifle
  • 2: Hunting Rifle
  • 3: Auto Shotgun
Target Arc (TargetArc) <float>
How far away from the Pitch Yaw Roll this entity can search for targets. This is a radius, meaning 180 will allow the entity to look anywhere.
Target Range (TargetRange) <float>
How far away from itself the entity can search for targets.
Damage Modifier (DamageMod) <float>
Multiplies how much damage is done by the entity.
Target Filter (filtername) <filterclass>
Filter for checking which targets may be hurt.
Target Team (TargetTeam) <choices>
Which team to target.
  • -1: Either
  • 2: Survivors
  • 3: Zombies
Start Disabled (StartDisabled) <boolean>
Stay inactive until Enabled.

Inputs[edit | edit source]

Enable
Makes the entity active.
Disable
Makes the entity inactive.

See Also[edit | edit source]