Tf logic training mode: Difference between revisions
Jump to navigation
Jump to search

Note:None of the inputs/outputs function in multiplayer except for
m (Replacing {{l4dseries}} or {} with {{this is a}}. This operation was performed by a bot.) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{LanguageBar}} | ||
{{CD|CTrainingModeLogic|nolink=1|file1=tf_gamerules.cpp}} | |||
{{This is a|point entity|name=tf_logic_training_mode|game=Team Fortress 2}} | |||
Handles outputs and and messages for training, mainly for the [[player]]. | Handles outputs and and messages for training, mainly for the [[player]]. | ||
{{note|None of the inputs/outputs function in multiplayer except for <code>KickBots</code>.}} | {{note|None of the inputs/outputs function in multiplayer except for <code>KickBots</code>.}} | ||
==Keyvalues== | |||
{{KV|Next Map | == Keyvalues == | ||
{{KV Targetname}} | |||
==Inputs== | {{KV|Next Map|intn=nextMap|string|Next map to load when the current one is finished. Default choices are <code>tr_dustbowl</code> and <code>tr_target</code>, although any map is accepted.}} | ||
{{ | |||
{{ | == Inputs == | ||
{{ | {{I|ShowTrainingMsg|Show a training message, for training mode. The parameter should be the string entry in tf_english.txt|param=string}} | ||
{{ | {{I|ShowTrainingObjective|param=string|Sets a training objective to show to the player.}} | ||
{{ | {{I|KickBots|Kicks all [[bot]]s from the server.}} | ||
{{ | {{I|ShowTrainingHUD|Makes the training objective HUD visible.}} | ||
{{ | {{I|HideTrainingHUD|Makes the training objective HUD hidden.}} | ||
{{ | {{I|EndTraining|param=string|Ends training mode. The parameter is for displaying ending text from tf_english.txt}} | ||
{{ | {{I|PlaySoundOnPlayer|param=string|Play a sound on the player.}} | ||
{{ | {{I|WaitForTimerOrKeypress|Wait for the specified [[logic_timer]] entity to fire on its interval or for a keypress from the player.|param=string}} | ||
{{I|SetNextMap|param=string|Set the next map for training.}} | |||
==Outputs== | {{I|ForcePlayerSpawnAsClassOutput|Force the appropriate output to fire for the player spawning as a class. You can use this to essentially ask what class the player is.}} | ||
{{ | |||
{{ | == Outputs == | ||
{{ | {{O|OnPlayerSpawnAsScout|Fired when the player spawns as a Scout.}} | ||
{{ | {{O|OnPlayerSpawnAsSniper|Fired when the player spawns as a Sniper.}} | ||
{{ | {{O|OnPlayerSpawnAsSoldier|Fired when the player spawns as a Soldier.}} | ||
{{ | {{O|OnPlayerSpawnAsDemoman|Fired when the player spawns as a Demoman.}} | ||
{{ | {{O|OnPlayerSpawnAsMedic|Fired when the player spawns as a Medic.}} | ||
{{ | {{O|OnPlayerSpawnAsHeavy|Fired when the player spawns as a Heavy.}} | ||
{{ | {{O|OnPlayerSpawnAsPyro|Fired when the player spawns as a Pyro.}} | ||
{{ | {{O|OnPlayerSpawnAsSpy|Fired when the player spawns as a Spy.}} | ||
{{ | {{O|OnPlayerSpawnAsEngineer|Fired when the player spawns as an Engineer.}} | ||
{{ | {{O|OnPlayerDied|Fired when the player dies.}} | ||
{{ | {{O|OnBotDied|Fired when a bot dies.}} | ||
{{ | {{O|OnPlayerSwappedToPrimary|Fired when the player swaps to the item in their primary weapon slot.}} | ||
{{ | {{O|OnPlayerSwappedToSecondary|Fired when the player swaps to the item in their secondary weapon slot.}} | ||
{{ | {{O|OnPlayerSwappedToMelee|Fired when the player swaps to the item in their melee weapon slot.}} | ||
{{ | {{O|OnPlayerSwappedToBuilding|Fired when the player swaps to the item in their building weapon slot.}} | ||
{{ | {{O|OnPlayerSwappedToPDA|Fired when the player swaps to the item in their PDA weapon slot.}} | ||
{{O|OnBuildOutsideArea|Fired when the player builds an object outside a suggested area.}} | |||
{{O|OnPlayerDetonateBuilding|Sent when the player manually detonates one of their buildings.}} |
Revision as of 15:02, 25 September 2024


![]() |
---|
CTrainingModeLogic |
![]() |
tf_logic_training_mode
is a point entity available in Team Fortress 2.
Handles outputs and and messages for training, mainly for the player.

KickBots
.Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Next Map (nextMap) <string>
- Next map to load when the current one is finished. Default choices are
tr_dustbowl
andtr_target
, although any map is accepted.
Inputs
- ShowTrainingMsg <string >
- Show a training message, for training mode. The parameter should be the string entry in tf_english.txt
- ShowTrainingObjective <string >
- Sets a training objective to show to the player.
- KickBots
- Kicks all bots from the server.
- ShowTrainingHUD
- Makes the training objective HUD visible.
- HideTrainingHUD
- Makes the training objective HUD hidden.
- EndTraining <string >
- Ends training mode. The parameter is for displaying ending text from tf_english.txt
- PlaySoundOnPlayer <string >
- Play a sound on the player.
- WaitForTimerOrKeypress <string >
- Wait for the specified logic_timer entity to fire on its interval or for a keypress from the player.
- SetNextMap <string >
- Set the next map for training.
- ForcePlayerSpawnAsClassOutput
- Force the appropriate output to fire for the player spawning as a class. You can use this to essentially ask what class the player is.
Outputs
- OnPlayerSpawnAsScout
- Fired when the player spawns as a Scout.
- OnPlayerSpawnAsSniper
- Fired when the player spawns as a Sniper.
- OnPlayerSpawnAsSoldier
- Fired when the player spawns as a Soldier.
- OnPlayerSpawnAsDemoman
- Fired when the player spawns as a Demoman.
- OnPlayerSpawnAsMedic
- Fired when the player spawns as a Medic.
- OnPlayerSpawnAsHeavy
- Fired when the player spawns as a Heavy.
- OnPlayerSpawnAsPyro
- Fired when the player spawns as a Pyro.
- OnPlayerSpawnAsSpy
- Fired when the player spawns as a Spy.
- OnPlayerSpawnAsEngineer
- Fired when the player spawns as an Engineer.
- OnPlayerDied
- Fired when the player dies.
- OnBotDied
- Fired when a bot dies.
- OnPlayerSwappedToPrimary
- Fired when the player swaps to the item in their primary weapon slot.
- OnPlayerSwappedToSecondary
- Fired when the player swaps to the item in their secondary weapon slot.
- OnPlayerSwappedToMelee
- Fired when the player swaps to the item in their melee weapon slot.
- OnPlayerSwappedToBuilding
- Fired when the player swaps to the item in their building weapon slot.
- OnPlayerSwappedToPDA
- Fired when the player swaps to the item in their PDA weapon slot.
- OnBuildOutsideArea
- Fired when the player builds an object outside a suggested area.
- OnPlayerDetonateBuilding
- Sent when the player manually detonates one of their buildings.