Tf logic minigames: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created entity page. [Information from the Jungle Inferno leak of TF2. Fact check the page.])
 
No edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{tf2 point|tf_logic_minigames}}
{{LanguageBar}}
 
{{CD|CTFMinigameLogic|file1=tf_logic_halloween_2014.cpp}}
{{code class|CTFMinigameLogic|tf_logic_halloween_2014.cpp}}
{{this is a|logical entity|name=tf_logic_minigames|game=Team Fortress 2}}


==Entity Description==
==Entity Description==
Line 10: Line 10:
:Halloween 2014 Soccer Minigame = 3
:Halloween 2014 Soccer Minigame = 3
This entity has an advantaged team mechanic for the kart minigame, where if a team loses, then all players on that time will get 66 damage added onto their kart in the next round.
This entity has an advantaged team mechanic for the kart minigame, where if a team loses, then all players on that time will get 66 damage added onto their kart in the next round.
==Keyvalues==
==Keyvalues==
{{KV BaseEntity}}
{{KV Targetname}}


==Inputs==
==Inputs==
{{IO|TeleportToMinigame|Teleports all players to specified minigame.|param=int}}
{{I|TeleportToMinigame|Teleports all players to specified minigame.|param=int}}
{{IO|SetAdvantageTeam|Sets which team has an advantage.|param=string}}
{{I|SetAdvantageTeam|Sets which team has an advantage.|param=string}}
{{IO|TeleportToRandomMinigame|Teleports players to a random minigame.}}
{{I|TeleportToRandomMinigame|Teleports players to a random minigame.}}
{{IO|ReturnFromMinigame|Forces all players to respawn and ends the minigame.}}
{{I|ReturnFromMinigame|Forces all players to respawn and ends the minigame.}}
{{I BaseEntity}}
 
==Outputs==
{{O BaseEntity}}

Latest revision as of 07:20, 22 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CTFMinigameLogic
CBaseEntity
C++ tf_logic_halloween_2014.cpp

tf_logic_minigames is a logical entity available in Team Fortress 2 Team Fortress 2.

Entity Description

This entity handles minigame logic of three minigames:

Generic Minigame = 0
Halloween 2014 Minigame Collection = 1
Halloween 2014 Minigame Platforms = 2
Halloween 2014 Soccer Minigame = 3

This entity has an advantaged team mechanic for the kart minigame, where if a team loses, then all players on that time will get 66 damage added onto their kart in the next round.

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

Inputs

TeleportToMinigame <integerRedirectInput/integer>
Teleports all players to specified minigame.
SetAdvantageTeam <stringRedirectInput/string>
Sets which team has an advantage.
TeleportToRandomMinigame
Teleports players to a random minigame.
ReturnFromMinigame
Forces all players to respawn and ends the minigame.