Prop soccer ball: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| m (Classifying as model entity) | SirYodaJedi (talk | contribs)  No edit summary | ||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
| {{this is a|model entity|name=prop_soccer_ball|game=Team Fortress 2}} It is used to spawn a soccer ball. | {{this is a|model entity|name=prop_soccer_ball|game=Team Fortress 2}} It is used to spawn a soccer ball. | ||
| ==Keyvalues== | == Keyvalues == | ||
| {{KV|Trigger Name|intn=trigger_name|string|The name of the trigger(s) to try and touch.}} | {{KV Targetname}} | ||
| {{KV Model}} | |||
| {{KV|Trigger Name|intn=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: | |||
| ::{{quote|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 {{file|tf_props|cpp}}}} }} | |||
| [[Category:Prop entities|soccer ball]] | [[Category:Prop entities|soccer ball]] | ||
Latest revision as of 18:28, 25 May 2025
|  Class hierarchy | 
|---|
| CPropSoccerBall | 
|  tf_props.cpp | 
prop_soccer_ball  is a   model entity  available in  Team Fortress 2. It is used to spawn a soccer ball.
 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. parentnameortarget).
 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