_ballplayertoucher

From Valve Developer Community
Revision as of 03:10, 30 August 2021 by Amicdict (talk | contribs) (Added {{lang}} and corrected title.)
Jump to navigation Jump to search
English (en)Translate (Translate)

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

C++ In code, it is represented by theCBallPlayerToucherclass, defined in thetf_passtime_ball.cppfile.

Entity description

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

Inputs

Outputs

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