Passtime logic: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{tf2 point|passtime_logic}} == Entity description == Passtime Logic. ==Keyvalues== {{KV Targetname}} {{KV|Number of sections|int|.}} {{KV|Ball spawn countdown duration in s...")
 
m (Substituted IO templates)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{tf2 point|passtime_logic}}
{{this is a|point entity|game=Team Fortress 2|name=passtime_logic}}


== Entity description ==
== Entity description ==
Line 12: Line 12:
==Inputs==
==Inputs==
{{I Targetname}}
{{I Targetname}}
{{IO|SpawnBall|With a countdown, pick a random enabled info_passtime_ball_spawn and spawn a ball there.}}
{{I|SpawnBall|With a countdown, pick a random enabled info_passtime_ball_spawn and spawn a ball there.}}
{{IO|SetSection|Parameter must be three values - [section number] [name of first track_path] [name of last track_path]|param=string}}
{{I|SetSection|Parameter must be three values - [section number] [name of first track_path] [name of last track_path]|param=string}}
{{IO|TimeUp|Input this from a round timer or something to indicate the game timer ended with no winner.}}
{{I|TimeUp|Input this from a round timer or something to indicate the game timer ended with no winner.}}
{{IO|SpeedBoostUsed|For stats tracking.}}
{{I|SpeedBoostUsed|For stats tracking.}}
{{IO|JumpPadUsed|For stats tracking.}}
{{I|JumpPadUsed|For stats tracking.}}


==Outputs==
==Outputs==
{{IO|OnBallFree|The ball is free - someone was holding it, and now they aren't.}}
{{O|OnBallFree|The ball is free - someone was holding it, and now they aren't.}}
{{IO|OnBallGetBlu|The ball was free and someone picked it up.}}
{{O|OnBallGetBlu|The ball was free and someone picked it up.}}
{{IO|OnBallGetRed|The ball was free and someone picked it up.}}
{{O|OnBallGetRed|The ball was free and someone picked it up.}}
{{IO|OnBallGetAny|The ball was free and someone picked it up.}}
{{O|OnBallGetAny|The ball was free and someone picked it up.}}
{{IO|OnBallRemoved|The ball was removed by game rules and you should respawn it. (e.g. fell out of the world (func_passtime_goal with -1 points)).}}
{{O|OnBallRemoved|The ball was removed by game rules and you should respawn it. (e.g. fell out of the world (func_passtime_goal with -1 points)).}}
{{IO|OnScoreBlu|BLU scored.}}
{{O|OnScoreBlu|BLU scored.}}
{{IO|OnScoreRed|RED scored.}}
{{O|OnScoreRed|RED scored.}}
{{IO|OnScoreAny|Any Scored}}
{{O|OnScoreAny|Any Scored}}
{{IO|OnBallPowerUp|Experimental.}}
{{O|OnBallPowerUp|Experimental.}}
{{IO|OnBallPowerDown|Experimental.}}
{{O|OnBallPowerDown|Experimental.}}


==See Also==
==See also==
*<code>[[info_passtime_ball_spawn]]</code>
*<code>[[info_passtime_ball_spawn]]</code>

Latest revision as of 11:10, 21 April 2025

passtime_logic is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

Passtime Logic.

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

Number of sections ([todo internal name (i)]) <integer>
.
Ball spawn countdown duration in seconds ([todo internal name (i)]) <integer>
.
Max Pass Range ([todo internal name (i)]) <float>
0 means unlimited.

Inputs

SpawnBall
With a countdown, pick a random enabled info_passtime_ball_spawn and spawn a ball there.
SetSection <stringRedirectInput/string>
Parameter must be three values - [section number] [name of first track_path] [name of last track_path]
TimeUp
Input this from a round timer or something to indicate the game timer ended with no winner.
SpeedBoostUsed
For stats tracking.
JumpPadUsed
For stats tracking.

Outputs

OnBallFree
The ball is free - someone was holding it, and now they aren't.
OnBallGetBlu
The ball was free and someone picked it up.
OnBallGetRed
The ball was free and someone picked it up.
OnBallGetAny
The ball was free and someone picked it up.
OnBallRemoved
The ball was removed by game rules and you should respawn it. (e.g. fell out of the world (func_passtime_goal with -1 points)).
OnScoreBlu
BLU scored.
OnScoreRed
RED scored.
OnScoreAny
Any Scored
OnBallPowerUp
Experimental.
OnBallPowerDown
Experimental.

See also