Tf point weapon mimic: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
(Added some of the keyvalue internal names, idk what the fire sound or particle effect uses.)
Line 10: Line 10:
{{KV Parentname}}
{{KV Parentname}}
{{KV Angles}}
{{KV Angles}}
{{KV|Weapon Type|choices|Which projectiles to fire.}}
{{KV|Weapon Type|intn=WeaponType|choices|Which projectiles to fire.}}
:* 0 : Rockets
:* 0 : Rockets
:* 1 : Grenades
:* 1 : Grenades
Line 17: Line 17:
{{KV|Fire Sound|string|The sound to be played when we fired. {{bug|Does not work.}}}}
{{KV|Fire Sound|string|The sound to be played when we fired. {{bug|Does not work.}}}}
{{KV|Particle Effect|string|The particle effect to be played when we fired.}}
{{KV|Particle Effect|string|The particle effect to be played when we fired.}}
{{KV|Model Override|string|The model to apply onto projectiles we fire.}}
{{KV|Model Override|intn=ModelOverride|string|The model to apply onto projectiles we fire.}}
{{KV|Model Scale|integer|Scale for the projectile model. {{bug|Not implemented for rockets or arrows}}}}
{{KV|Model Scale|intn=ModelScale|integer|Scale for the projectile model. {{bug|Not implemented for rockets or arrows}}}}
{{KV|Minimum Speed|integer|Minimum speed for each projectile.}}
{{KV|Minimum Speed|intn=SpeedMin|integer|Minimum speed for each projectile.}}
{{KV|Maximum Speed|integer|Maximum speed for each projectile.}}
{{KV|Maximum Speed|intn=SpeedMax|integer|Maximum speed for each projectile.}}
{{KV|Damage|integer|Damage for the projectile.}}
{{KV|Damage|intn=Damage|integer|Damage for the projectile.}}
{{KV|Splash Radius|integer|Splash radius for the projectile.}}
{{KV|Splash Radius|intn=SplashRadius|integer|Splash radius for the projectile.}}
{{KV|Spread Angle|integer|Random spread for each projectile fired.}}
{{KV|Spread Angle|intn=SpreadAngle|integer|Random spread for each projectile fired.}}
{{KV|Always Crits|boolean|All shots are crits.}}
{{KV|Always Crits|intn=Crits|boolean|All shots are crits.}}


==Inputs==
==Inputs==

Revision as of 18:58, 3 August 2024

Stub

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

tf_point_weapon_mimic is a point entity available in Team Fortress 2 Team Fortress 2.

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 ?]

Entity description

tf_point_weapon_mimic is an entity used to fire projectiles from various weapons. Options include rockets, grenades, arrows, and stickybombs.

Keyvalues

Name (targetname) <string>[ Edit ]
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

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Weapon Type (WeaponType) <choices>
Which projectiles to fire.
  • 0 : Rockets
  • 1 : Grenades
  • 2 : Arrows
  • 3 : Stickies
Fire Sound ([todo internal name (i)]) <string>
The sound to be played when we fired.
Icon-Bug.pngBug:Does not work.  [todo tested in ?]
Particle Effect ([todo internal name (i)]) <string>
The particle effect to be played when we fired.
Model Override (ModelOverride) <string>
The model to apply onto projectiles we fire.
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 <integerRedirectInput/integer>
Fire multiple projectiles.
FireOnce
Fire a single projectile.


Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

Outputs

OnUser1 to OnUser4
These Outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.