Tf base minigame: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
m (fixed formatting errors)  | 
				m (Substituted IO templates)  | 
				||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{  | {{this is a|point entity|game=Team Fortress 2|name=tf_base_minigame}}  | ||
==Entity Description==  | ==Entity Description==  | ||
| Line 22: | Line 22: | ||
==Inputs==  | ==Inputs==  | ||
{{I Targetname}}  | {{I Targetname}}  | ||
{{  | {{I|ScoreTeamRed|Give points to RED|param=integer}}  | ||
{{  | {{I|ScoreTeamBlue|Give points to BLUE|param=integer}}  | ||
{{  | {{I|ReturnFromMinigame|Force players to return from the current minigame.}}  | ||
{{  | {{I|ChangeHudResFile|Change the HUD resource file.|param=integer}}  | ||
==Outputs==  | ==Outputs==  | ||
{{O Targetname}}  | {{O Targetname}}  | ||
{{  | {{O|OnReturnFromMinigame|Sent when players return from this minigame.}}  | ||
{{  | {{O|OnTeleportToMinigame|Sent when players arrive to this minigame.}}  | ||
{{  | {{O|OnRedHitMaxScore|Sent when RED hits the max score for this minigame.}}  | ||
{{  | {{O|OnBlueHitMaxScore|Sent when BLUE hits the max score for this minigame.}}  | ||
{{  | {{O|OnAllRedDead|Sent when the entire RED team is dead.}}  | ||
{{  | {{O|OnAllBlueDead|Sent when the entire BLUE team is dead.}}  | ||
{{  | {{O|OnSuddenDeathStart|Sent when sudden death starts.}}  | ||
Latest revision as of 06:55, 21 April 2025
tf_base_minigame  is a   point entity  available in 
 Team Fortress 2.
Entity Description
Base minigame
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 
- Red Spawn Name ([todo internal name (i)]) <string>
 - The name of the spawnpoints for RED for this minigame
 
- Blue Spawn Name ([todo internal name (i)]) <string>
 - The name of the spawnpoints for BLUE for this minigame
 
- Put in Random Pool ([todo internal name (i)]) <choices>
 - If yes, allowed to be chosen when told to go to a random minigame
- 0 : No
 - 1 : Yes
 
 
- Max Score ([todo internal name (i)]) <integer>
 - When a team hits this score, the On<Team>HitMaxScore output will be fired
 
- Your Team Score Sound ([todo internal name (i)]) <string>
 - Sound file to play when your team scores a point
 
- Enemy Team Score Sound ([todo internal name (i)]) <string>
 - Sound file to play when the enemy team scores a point
 
- Scoring Type ([todo internal name (i)]) <choices>
 - What to use for scoring
- 0 : Points
 - 1 : Players Alive
 
 
- Sudden Death Time ([todo internal name (i)]) <float>
 - Time until sudden death starts (-1 for sudden death)
 
Inputs
- ScoreTeamRed <integer>
 - Give points to RED
 
- ScoreTeamBlue <integer>
 - Give points to BLUE
 
- ReturnFromMinigame
 - Force players to return from the current minigame.
 
- ChangeHudResFile <integer>
 - Change the HUD resource file.
 
Outputs
- OnReturnFromMinigame
 - Sent when players return from this minigame.
 
- OnTeleportToMinigame
 - Sent when players arrive to this minigame.
 
- OnRedHitMaxScore
 - Sent when RED hits the max score for this minigame.
 
- OnBlueHitMaxScore
 - Sent when BLUE hits the max score for this minigame.
 
- OnAllRedDead
 - Sent when the entire RED team is dead.
 
- OnAllBlueDead
 - Sent when the entire BLUE team is dead.
 
- OnSuddenDeathStart
 - Sent when sudden death starts.