passtime_logic

From Valve Developer Community
Jump to: navigation, search

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

Entity description

Passtime Logic.

Keyvalues

Name (targetname) <string>
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 <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