Ballplayertoucher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added targetname and parentname KVs and IOs)
(Removed redundant depricated IOs.)
Tag: Undo
Line 6: Line 6:


==Keyvalues==
==Keyvalues==
{{KV Targetname}}
{{KV Parentname}}
{{KV BaseEntity|base=1}}
{{KV BaseEntity|base=1}}
==Inputs==
==Inputs==
{{I Targetname}}
{{I Parentname}}
{{I BaseEntity|base=1}}
{{I BaseEntity|base=1}}
==Outputs==
==Outputs==
{{IO|OnTouch|Output sent when this entity collides with a player.}}
{{IO|OnTouch|Output sent when this entity collides with a player.}}
{{O BaseEntity}}
{{O BaseEntity}}

Revision as of 05:51, 24 May 2021

Team Fortress 2 _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.

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

Keyvalues

Inputs

Outputs

OnTouch
Output sent when this entity collides with a player.