X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fteamplay.qh;h=f34c6d59df438b491090956b2e7782153f3f7da3;hp=8ce6eae61b79e4377bfe3da50122c707e0e68527;hb=b7d363a108963ca13647ee25b58c5a531366cf49;hpb=cd109cf922bc405155c680582745d645bd057ded diff --git a/qcsrc/server/teamplay.qh b/qcsrc/server/teamplay.qh index 8ce6eae61..f34c6d59d 100644 --- a/qcsrc/server/teamplay.qh +++ b/qcsrc/server/teamplay.qh @@ -1,5 +1,4 @@ -#ifndef TEAMPLAY_H -#define TEAMPLAY_H +#pragma once string cache_mutatormsg; string cache_lastmutatormsg; @@ -9,23 +8,23 @@ string cache_lastmutatormsg; // # of bots on those teams float cb1, cb2, cb3, cb4; +int redowned, blueowned, yellowowned, pinkowned; + //float audit_teams_time; void TeamchangeFrags(entity e); -void entcs_init(); - void LogTeamchange(float player_id, float team_number, float type); -void default_delayedinit(); +void default_delayedinit(entity this); void ActivateTeamplay(); void InitGameplayMode(); -string GetClientVersionMessage(); +string GetClientVersionMessage(entity this); -string getwelcomemessage(void); +string getwelcomemessage(entity this); void SetPlayerColors(entity pl, float _color); @@ -46,10 +45,8 @@ float TeamSmallerEqThanTeam(float ta, float tb, entity e); // NOTE: Assumes CheckAllowedTeams has already been called! float FindSmallestTeam(entity pl, float ignore_pl); -float JoinBestTeam(entity pl, float only_return_best, float forcebestteam); +int JoinBestTeam(entity this, bool only_return_best, bool forcebestteam); //void() ctf_playerchanged; -void SV_ChangeTeam(float _color); void ShufflePlayerOutOfTeam (float source_team); -#endif