X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_tdm.qc;h=ad3a15b5f21784ef54e4cc10e98a7f828266b659;hb=d55679c21627cd51c59a1e329917308f360312f6;hp=de172873e29255af8f14c0c8ae972758519f5c60;hpb=82dbcadfd0556053b74638f2e3ae2e57103ddf26;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/gamemode_tdm.qc b/qcsrc/server/mutators/gamemode_tdm.qc index de172873e..ad3a15b5f 100644 --- a/qcsrc/server/mutators/gamemode_tdm.qc +++ b/qcsrc/server/mutators/gamemode_tdm.qc @@ -1,3 +1,7 @@ +#include "../_all.qh" + +#include "gamemode.qh" + /*QUAKED spawnfunc_tdm_team (0 .5 .8) (-16 -16 -24) (16 16 32) Team declaration for TDM gameplay, this allows you to decide what team names and control point models are used in your map. Note: If you use spawnfunc_tdm_team entities you must define at least 2! However, unlike domination, you don't need to make a blank one too. @@ -32,7 +36,7 @@ void tdm_DelayedInit() // if no teams are found, spawn defaults if(find(world, classname, "tdm_team") == world) { - print("No ""tdm_team"" entities found on this map, creating them anyway.\n"); + LOG_INFO("No ""tdm_team"" entities found on this map, creating them anyway.\n"); float numteams = min(4, autocvar_g_tdm_teams_override); @@ -51,9 +55,16 @@ MUTATOR_HOOKFUNCTION(tdm_GetTeamCount) return true; } +MUTATOR_HOOKFUNCTION(tdm_CountFrags) +{ + // announce remaining frags + return true; +} + MUTATOR_DEFINITION(gamemode_tdm) { MUTATOR_HOOK(GetTeamCount, tdm_GetTeamCount, CBC_ORDER_ANY); + MUTATOR_HOOK(Scores_CountFragsRemaining, tdm_CountFrags, CBC_ORDER_ANY); MUTATOR_ONADD { @@ -71,7 +82,7 @@ MUTATOR_DEFINITION(gamemode_tdm) 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; }