]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/teamplay.qh
Merge branch 'master' into Lyberta/TeamplayFixes_
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / teamplay.qh
1 #pragma once
2
3 string cache_mutatormsg;
4 string cache_lastmutatormsg;
5
6 // client counts for each team
7 //float c1, c2, c3, c4;
8 // # of bots on those teams
9 float cb1, cb2, cb3, cb4;
10
11 int redowned, blueowned, yellowowned, pinkowned;
12
13 //float audit_teams_time;
14
15 void TeamchangeFrags(entity e);
16
17 void LogTeamchange(float player_id, float team_number, float type);
18
19 void default_delayedinit(entity this);
20
21 void ActivateTeamplay();
22
23 void InitGameplayMode();
24
25 string GetClientVersionMessage(entity this);
26
27 string getwelcomemessage(entity this);
28
29 void SetPlayerColors(entity pl, float _color);
30
31 /// \brief Sets the team of the player.
32 /// \param[in,out] player Player to adjust.
33 /// \param[in] teamnum Team number to set. See TEAM_NUM constants.
34 /// \return True if team switch was successful, false otherwise.
35 bool SetPlayerTeamSimple(entity player, int teamnum);
36
37 void SetPlayerTeam(entity pl, float t, float s, float noprint);
38
39 // set c1...c4 to show what teams are allowed
40 void CheckAllowedTeams (entity for_whom);
41
42 float PlayerValue(entity p);
43
44 // c1...c4 should be set to -1 (not allowed) or 0 (allowed).
45 // teams that are allowed will now have their player counts stored in c1...c4
46 void GetTeamCounts(entity ignore);
47
48 float TeamSmallerEqThanTeam(float ta, float tb, entity e);
49
50 // returns # of smallest team (1, 2, 3, 4)
51 // NOTE: Assumes CheckAllowedTeams has already been called!
52 float FindSmallestTeam(entity pl, float ignore_pl);
53
54 int JoinBestTeam(entity this, bool only_return_best, bool forcebestteam);
55
56 //void() ctf_playerchanged;
57
58 void ShufflePlayerOutOfTeam (float source_team);
59
60 void setcolor(entity this, int clr);