tf_point_weapon_mimic

From Valve Developer Community
Jump to navigation Jump to search

Stub

This article or section is a stub. You can help by expanding it.

English (en)Translate (Translate)
Class hierarchy
CTFPointWeaponMimic
CPointEntity
CBaseEntity
tf_point_weapon_mimic.cpp

tf_point_weapon_mimic is a point entity available in Team Fortress 2 Team Fortress 2. It's used to fire projectiles from various weapons. Options include rockets, grenades, arrows, and stickybombs.

Icon-Bug.pngBug:While a different model can be used on the projectiles, the collision of the model might be off.  [todo tested in?]
Icon-Bug.pngBug:If a projectile has been fired and this entity is killed afterwards, the fired projectiles will not do damage.  [todo tested in?]

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Weapon Type (WeaponType) <choices>
Which projectiles to fire.
  • 0 : Rockets
  • 1 : Grenades
  • 2 : Arrows
  • 3 : Stickies
Fire Sound (FireSound) <string>
The sound to be played when fired.
Icon-Bug.pngBug:Does not work.  [todo tested in?]
Particle Effect (ParticleEffect) <string>
The particle effect to be played when fired.
Model Override (ModelOverride) <string>
The model to apply onto projectiles when fired.
Model Scale (ModelScale) <integer>
Scale for the projectile model.
Icon-Bug.pngBug:Not implemented for rockets or arrows  [todo tested in?]
Minimum Speed (SpeedMin) <integer>
Minimum speed for each projectile.
Maximum Speed (SpeedMax) <integer>
Maximum speed for each projectile.
Damage (Damage) <integer>
Damage for the projectile.
Splash Radius (SplashRadius) <integer>
Splash radius for the projectile.
Spread Angle (SpreadAngle) <integer>
Random spread for each projectile fired.
Always Crits (Crits) <boolean>
All shots are crits.

Inputs

DetonateStickies
Detonates all Stickies, regardless if they're activated or not.
FireMultiple <integer>
Fire multiple projectiles.
FireOnce
Fire a single projectile.