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