]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/gamemodes/gamemode/duel/sv_duel.qc
Remove g_duel_warmup (XPM ruleset turns on warmup when executed)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / duel / sv_duel.qc
1 #include "sv_duel.qh"
2
3 MUTATOR_HOOKFUNCTION(duel, GetPlayerLimit)
4 {
5         M_ARGV(0, int) = 2; // duel is always 1v1!
6 }
7
8 MUTATOR_HOOKFUNCTION(duel, Scores_CountFragsRemaining)
9 {
10         // announce remaining frags?
11         return true;
12 }
13
14 MUTATOR_HOOKFUNCTION(duel, FilterItemDefinition)
15 {
16         entity definition = M_ARGV(0, entity);
17
18         if(definition.instanceOfPowerup)
19         {
20                 return !autocvar_g_duel_with_powerups;
21         }
22 }