trigger_capture_area

From Valve Developer Community
< Es
Jump to navigation Jump to search
English (en)Español (es)Translate (Translate)

trigger_capture_area es un UNTRANSLATED string "brush entity" see Template:This is a/strings disponible en Team Fortress 2 Team Fortress 2.

trigger_capture_area es una entidad para hacer capturas de puntos de control.

Descripción de la entidad

Rodea una zona con team_control_point para crear un punto de control(en). También se usa para definir una zona de empuje o bloqueo en una vagoneta de Carga Explosiva(en) está definido func_tracktrain con su entidad asociada.

Icon-Bug.pngError:El HUD mostrará un mensaje de espera a los aliados si el punto de control está desactivado.  [todo tested in?]

Valores clave

Name (targetname) <string(en)>
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.
Véase también:  Generic Keyvalues, Inputs and Outputs available to all entities

Control point (area_cap_point) <targetname(en)>
Name of the control point(en) this area is linked to.
Can RED Cap? (team_cancap_2) <boolean(en)>
Can RED capture this point?
Can BLU Cap? (team_cancap_3) <boolean(en)>
Can BLU capture this point?
Number of RED players to start capping (team_startcap_2) <integer(en)>
Number of RED players needed to begin capturing this point. If not enough players are present, the point will say, "Waiting for teammate."
Number of BLU players to start capping (team_startcap_3) <integer(en)>
Number of BLU players needed to begin capturing this point. If not enough players are present, the point will say, "Waiting for teammate."
Number of RED players to cap (team_numcap_2) <integer(en)>
The maximum number of RED players to affect capture time.
Number of BLU players to cap (team_numcap_3) <integer(en)>
The maximum number of BLU players to affect capture time.
RED Spawn Adjust (team_spawn_2) <integer(en)>
Adjust the minimum respawn time for the RED team by this amount (in seconds) when RED captures this point. If the RED team owns this point when BLU captures it, this adjustment is reversed.
BLU Spawn Adjust (team_spawn_3) <integer(en)>
Adjust the minimum respawn time for the BLU team by this amount (in seconds) when BLU captures this point. If the BLU team owns this point when RED captures it, this adjustment is reversed.
Time to cap (sec) (area_time_to_cap) <integer(en)>
Time to capture this area (in seconds).
Start Disabled (StartDisabled) <boolean(en)>
Stay dormant until activated (with theEnableinput).

Inputs

CaptureCurrentCP
If a point is currently being capped, force it to cap fully.
SetControlPoint <targetname(en)>
Set the associated control point to the name passed.
SetTeamCanCap <string(en)>
Set whether a specific team is allowed to capture this point. Format is <team number> <0/1>; e.g., "2 0" would prevent RED from capturing this point, whereas "3 1" would allow BLU to cap it.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Salidas

OnStartCap
OnStartTeam1
OnStartTeam2
Sent when either/RED/BLU team starts a capture.
OnBreakCap
OnBreakTeam1
OnBreakTeam2
Sent when a capture by either/RED/BLU team is broken.
Note.pngNota:The capture progress on a point must be completely drained for the capture to be considered broken.
OnEndCap
OnCapTeam1
OnCapTeam2
Sent when either/RED/BLU team captures.
OnNumCappersChanged <integer(en)>
Sent when the number of people in the capture area changes. The output value is the number of capturing players, regardless of if the capture is being blocked, and 0 if there are no capping players.
OnNumCappersChanged2 <integer(en)>
Sent when the number of people in the capture area changes. The output value is the same as OnNumCappersChanged, but is -1 when the capture is being blocked.

Véase también