_ballplayertoucher

From Valve Developer Community
Jump to: navigation, search
Class hierarchy
CBallPlayerToucher
CBaseEntity
tf_passtime_ball.cpp

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

Its a helper entity for thepasstime_ballentity, which spawns alongside_ballplayertoucheritself. This entity allowspasstime_ballto collide with triggers and players.

Interestingly, this entity stores the collision flagSOLID_VPHYSICSwhen not touching a trigger or player; Conversely it however stores two collision flags:FSOLID_NOT_SOLIDandSOLID_NONEwhen otherwise.

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

Outputs

OnTouch  !FGD
Output sent when this entity collides with a player.