]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/gamemodes/gamemode/keepaway/sv_keepaway.qh
Merge branch 'master' into Mario/stats_eloranking
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / keepaway / sv_keepaway.qh
1 #pragma once
2
3 #include <common/mutators/base.qh>
4 #include <common/scores.qh>
5 void ka_Initialize();
6
7 REGISTER_MUTATOR(ka, false)
8 {
9     MUTATOR_STATIC();
10         MUTATOR_ONADD
11         {
12             GameRules_scoring(0, SFL_SORT_PRIO_PRIMARY, 0, {
13             field(SP_KEEPAWAY_PICKUPS, "pickups", 0);
14             field(SP_KEEPAWAY_CARRIERKILLS, "bckills", 0);
15             field(SP_KEEPAWAY_BCTIME, "bctime", SFL_SORT_PRIO_SECONDARY);
16         });
17
18                 ka_Initialize();
19         }
20         return false;
21 }
22
23
24 entity ka_ball;
25 entity ka_Handler;
26
27 void(entity this) havocbot_role_ka_carrier;
28 void(entity this) havocbot_role_ka_collector;
29
30 void ka_DropEvent(entity plyr);