Ballplayertoucher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 1: Line 1:
{{this is a|name=_ballplayertoucher|1=point|game=Team Fortress 2}}
{{this is a|point entity|name=_ballplayertoucher|game=Team Fortress 2}}
{{code class|CBallPlayerToucher|tf_passtime_ball.cpp}}
{{code class|CBallPlayerToucher|tf_passtime_ball.cpp}}
==Entity description==
==Entity description==

Revision as of 19:44, 17 May 2024

_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.