Tf logic minigames: Difference between revisions
Jump to navigation
Jump to search

In code, it is represented by the
No edit summary |
(badly moved multipage) |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
[[Category:Non-internal entities]][[Category:Team Fortress 2 Entities]][[Category:Point Entities]][[Category:Entities]] | |||
{{this is a|point entity|name=tf_logic_minigames|engine=Source|game=Team Fortress 2|nocat=1}} | |||
{{code class|CTFMinigameLogic|tf_logic_halloween_2014.cpp}} | |||
==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== | |||
{{KV BaseEntity}} | |||
==Inputs== | |||
{{IO|TeleportToMinigame|Teleports all players to specified minigame.|param=int}} | |||
{{IO|SetAdvantageTeam|Sets which team has an advantage.|param=string}} | |||
{{IO|TeleportToRandomMinigame|Teleports players to a random minigame.}} | |||
{{IO|ReturnFromMinigame|Forces all players to respawn and ends the minigame.}} | |||
{{I BaseEntity}} | |||
==Outputs== | |||
{{O BaseEntity}}[[Category:Non-internal entities]][[Category:Team Fortress 2 Entities]][[Category:Point Entities]][[Category:Entities]] |
Revision as of 12:26, 12 July 2024


tf_logic_minigames
is a point entity available in Team Fortress 2.

CTFMinigameLogic
class, defined in thetf_logic_halloween_2014.cpp
file.
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
Inputs
- TeleportToMinigame <integer >
- Teleports all players to specified minigame.
- SetAdvantageTeam <string >
- Sets which team has an advantage.
- TeleportToRandomMinigame
- Teleports players to a random minigame.
- ReturnFromMinigame
- Forces all players to respawn and ends the minigame.