ctf_team ![code/modules/capture_the_flag/ctf_controller.dm 191](git.png)
A datum that holds details about individual CTF teams, any team specific CTF functionality should be implemented here.
Vars | |
points | Total score that this team currently has. |
---|---|
spawner | Reference to the spawn point that this team uses. |
team_color | What color this team is, also acts as a team name. |
team_members | Assoc list containing a list of team members ckeys and the associated ctf_player components. |
team_span | Span used for messages sent to this team. |
Procs | |
Destroy | If the team is destroyed all players in that team need their component removed. |
message_team | Sends a message to all players in this team. |
reset_team | Resets this teams score and clears its member list. All members will be dusted and have their player component removed. |
score_points | Increases this teams number of points by the provided amount. |
Var Details
points ![code/modules/capture_the_flag/ctf_controller.dm 197](git.png)
Total score that this team currently has.
spawner ![code/modules/capture_the_flag/ctf_controller.dm 193](git.png)
Reference to the spawn point that this team uses.
team_color ![code/modules/capture_the_flag/ctf_controller.dm 195](git.png)
What color this team is, also acts as a team name.
team_members ![code/modules/capture_the_flag/ctf_controller.dm 199](git.png)
Assoc list containing a list of team members ckeys and the associated ctf_player components.
team_span ![code/modules/capture_the_flag/ctf_controller.dm 201](git.png)
Span used for messages sent to this team.
Proc Details
Destroy
If the team is destroyed all players in that team need their component removed.
message_team
Sends a message to all players in this team.
reset_team
Resets this teams score and clears its member list. All members will be dusted and have their player component removed.
score_points
Increases this teams number of points by the provided amount.