CEnvShooter

From Source Entities
(Redirected from Env shooter)
Jump to navigation Jump to search

Code classes:

Env shooter.png

CEnvShooter is a code class in all Source games. It shoots gibs.

Classnames:

  • env_shooter

Flags[edit | edit source]

  • 2: On fire - Gibs will be on fire!

Keyvalues[edit | edit source]

Model (shootmodel) <studio>
Thing to shoot out. This cannot be a VMT (only MDL), unlike what the FGDs state.
Material Sound (shootsounds) <choices>
What sounds play when the gibs collide with things. See $surfaceprop.
  • -1: None
  • 0: Glass
  • 1: Wood
  • 2: Metal
  • 3: Flesh
  • 4: Concrete
Gib Skin (skin) <integer>
Some models have multiple versions of their textures, called skins. Set this to a number other than 0 to use that skin on all gibs produced by this shooter.
Model Scale (Not in FGD) (scale) <float>
Does nothing.
Gib gravity scale (gibgravityscale) <float>
Scale gravity so that gibs fall faster, slower, or not at all. Only applies when Simulate (Simulation) is Point.
Mass override (massoverride) <float> (only available in Hl2.pngEpisodicP1.png)
Makes the gibs be a certain mass if specified.