info_player_terrorist

From Valve Developer Community
Revision as of 17:38, 15 December 2018 by Darnias (talk | contribs) (Updated for CS:GO)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

info_player_terrorist is a point entity available in the following Source engine games: <Counter-Strike: Source> Counter-Strike: Source, <Counter-Strike: Global Offensive> Counter-Strike: Global Offensive.

Terrorist model in Counter-Strike Source.

Entity description

This entity is a spawn point for terrorists in Counter-Strike: Source and Counter-Strike: Global Offensive. One of these needs to be placed for each team member. A standard map should have between 16 and 32 spawn points. Should be placed at least 128 units away from each other and surrounding walls.

Keyvalues

Targetname:

Name <string>
The targetname that other entities refer to this entity by.
Entity Scripts <scriptlist> (New with Left 4 Dead 2)
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Script think function <string> (New with Left 4 Dead 2)
Name of a function in this entity's script which will be called automatically every 100 milliseconds (ten times a second) for the duration of the script. It can be used to create timers or to simulate autonomous behavior. The return value (if present) will set the time until the next call.
Note:Try to avoid expensive operations in this function, as it may cause performance problems.

Angles:

Pitch Yaw Roll (Y Z X) <angle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Behaviour:

Spawn priority <integer>
Determines which spawn points get used first. Smaller numbers are used before larger numbers. (New with Counter-Strike: Global Offensive)
Enabled by default? <boolean>
Should this spawn be enabled by default? (New with Counter-Strike: Global Offensive)

Inputs

SetEnabled
Sets this spawn point as enabled. (New with Counter-Strike: Global Offensive)
SetDisabled
Sets this spawn point as disabled. (New with Counter-Strike: Global Offensive)
ToggleEnabled
Toggle the enabled/disabled state of this spawn point. (New with Counter-Strike: Global Offensive)

See also