prop_soccer_ball

From Valve Developer Community
Jump to navigation Jump to search
Class hierarchy
CPropSoccerBall
CPhysicsProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
tf_props.cpp

prop_soccer_ball is a model entity available in Team Fortress 2 Team Fortress 2. It is used to spawn a soccer ball.

Keyvalues

Name (targetname) <string>[ Edit ]
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

World Model (model) <model path>[ Edit ]
In-game 3D representation of the entity to display. This is the path to a MDL relative to the game's root directory. (128 character limit)

Trigger Name (trigger_name) <string>
The name of the trigger(s) to try to touch.
Clarify: Explain how trigger names are delineated, and explain what "try to touch" means, as this code comment discusses:
Here's the deal. The ball is a trigger, but triggers are not allowed to touch other triggers. To get around this, we're going to specify the names of the triggers we actually want to touch and then we're going to manually try to touch them. Our collision system is a vortex of insanity.
— comment in 🖿tf_props.cpp