X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fteamplay.qc;h=22dbac33284a32b53f7d91a65515e4c764cf746e;hb=d5fdcf33ed6bf561a90134526bc2d4c1814d35a8;hp=c7703e2e5d5cda237828710df111134bbabad7dc;hpb=dc63e94433a320330cb4df547b9dcc4c7e791224;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index c7703e2e5..22dbac332 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -269,7 +269,8 @@ void InitGameplayMode() InitializeEntity(world, default_delayedinit, INITPRIO_GAMETYPE_FALLBACK); } -string GetClientVersionMessage() { +string GetClientVersionMessage() +{SELFPARAM(); string versionmsg; if (self.version_mismatch) { if(self.version < autocvar_gameversion) { @@ -297,7 +298,7 @@ string getwelcomemessage(void) else modifications = strcat(modifications, ", ", g_weaponarena_list, " Arena"); } - if(cvar("g_balance_blaster_weaponstart") == 0) + else if(cvar("g_balance_blaster_weaponstart") == 0) modifications = strcat(modifications, ", No start weapons"); if(cvar("sv_gravity") < stof(cvar_defstring("sv_gravity"))) modifications = strcat(modifications, ", Low gravity"); @@ -344,6 +345,12 @@ string getwelcomemessage(void) s = strcat(s, "\n\n^8special gameplay tips: ^7", cache_mutatormsg); } + string mutator_msg = ""; + MUTATOR_CALLHOOK(BuildGameplayTipsString, mutator_msg); + mutator_msg = ret_string; + + s = strcat(s, mutator_msg); // trust that the mutator will do proper formatting + motd = autocvar_sv_motd; if (motd != "") { s = strcat(s, "\n\n^8MOTD: ^7", strreplace("\\n", "\n", motd)); @@ -398,7 +405,7 @@ void SetPlayerTeam(entity pl, float t, float s, float noprint) // set c1...c4 to show what teams are allowed void CheckAllowedTeams (entity for_whom) -{ +{SELFPARAM(); float dm; entity head; string teament_name; @@ -704,7 +711,7 @@ float FindSmallestTeam(entity pl, float ignore_pl) } float JoinBestTeam(entity pl, float only_return_best, float forcebestteam) -{ +{SELFPARAM(); float smallest, selectedteam; // don't join a team if we're not playing a team game @@ -781,7 +788,7 @@ float JoinBestTeam(entity pl, float only_return_best, float forcebestteam) //void() ctf_playerchanged; void SV_ChangeTeam(float _color) -{ +{SELFPARAM(); float scolor, dcolor, steam, dteam; //, dbotcount, scount, dcount; // in normal deathmatch we can just apply the color and we're done