Ballplayertoucher: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(-added class hierarchy, cleanup) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{CD|CBallPlayerToucher|file1=tf_passtime_ball.cpp}} | ||
{{this is a|point entity|name=_ballplayertoucher|game=Team Fortress 2}} | |||
Its a helper entity for the<code>passtime_ball</code>entity, which spawns alongside<code>_ballplayertoucher</code>itself. This entity allows<code>passtime_ball</code>to collide with triggers and players. | Its a helper entity for the<code>passtime_ball</code>entity, which spawns alongside<code>_ballplayertoucher</code>itself. This entity allows<code>passtime_ball</code>to collide with triggers and players. | ||
Interestingly, this entity stores the collision flag<code>SOLID_VPHYSICS</code>when not touching a trigger or player; Conversely it however stores ''two'' collision flags:<code>FSOLID_NOT_SOLID</code>and<code>SOLID_NONE</code>when otherwise. | Interestingly, this entity stores the collision flag<code>SOLID_VPHYSICS</code>when not touching a trigger or player; Conversely it however stores ''two'' collision flags:<code>FSOLID_NOT_SOLID</code>and<code>SOLID_NONE</code>when otherwise. | ||
==Keyvalues== | == Keyvalues == | ||
{{KV | {{KV Targetname}} | ||
== Outputs == | |||
==Outputs== | {{O|OnTouch|Output sent when this entity collides with a player.|nofgd=1}} | ||
{{ | |||
Latest revision as of 02:23, 26 September 2024
![]() |
---|
CBallPlayerToucher |
![]() |
_ballplayertoucher
is a point entity available in Team Fortress 2.
Its a helper entity for thepasstime_ball
entity, which spawns alongside_ballplayertoucher
itself. This entity allowspasstime_ball
to collide with triggers and players.
Interestingly, this entity stores the collision flagSOLID_VPHYSICS
when not touching a trigger or player; Conversely it however stores two collision flags:FSOLID_NOT_SOLID
andSOLID_NONE
when otherwise.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Outputs
- OnTouch !FGD
- Output sent when this entity collides with a player.