X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_race.qc;h=a7a832281a870ec8d3a32fb56e51f0f1c218181c;hb=3c315b3f7597d4a4807d16cc0817612e527dd441;hp=26a06e3fc757c8be7c0e93432a69162e606635ac;hpb=6f37a8f8076a572097afb13de2c367a72717c927;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/gamemode_race.qc b/qcsrc/server/mutators/gamemode_race.qc index 26a06e3fc..a7a832281 100644 --- a/qcsrc/server/mutators/gamemode_race.qc +++ b/qcsrc/server/mutators/gamemode_race.qc @@ -1,5 +1,5 @@ #include "gamemode_race.qh" -#include "../_.qh" +#include "../_all.qh" #include "gamemode.qh" @@ -273,6 +273,15 @@ MUTATOR_HOOKFUNCTION(race_GetTeamCount) return false; } +MUTATOR_HOOKFUNCTION(race_CountFrags) +{ + // announce remaining frags if not in qualifying mode + if(!g_race_qualifying) + return true; + + return false; +} + void race_Initialize() { race_ScoreRules(); @@ -294,6 +303,7 @@ MUTATOR_DEFINITION(gamemode_race) MUTATOR_HOOK(GetPressedKeys, race_PlayerPostThink, CBC_ORDER_ANY); MUTATOR_HOOK(ForbidPlayerScore_Clear, race_ForbidClearPlayerScore, CBC_ORDER_ANY); MUTATOR_HOOK(GetTeamCount, race_GetTeamCount, CBC_ORDER_ANY); + MUTATOR_HOOK(Scores_CountFragsRemaining, race_CountFrags, CBC_ORDER_ANY); MUTATOR_ONADD { @@ -311,7 +321,7 @@ MUTATOR_DEFINITION(gamemode_race) MUTATOR_ONREMOVE { - print("This is a game type and it cannot be removed at runtime."); + LOG_INFO("This is a game type and it cannot be removed at runtime."); return -1; }