]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/mutators/mutator/gamemode_keepaway.qh
Merge branch 'master' into TimePath/scrollpanel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_keepaway.qh
1 #pragma once
2
3 #include "../gamemode.qh"
4
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
26 void(entity this) havocbot_role_ka_carrier;
27 void(entity this) havocbot_role_ka_collector;
28
29 void ka_DropEvent(entity plyr);