waeponarena {all,most}_available
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / freezetag / sv_freezetag.qh
1 #pragma once
2
3 #include <common/mutators/base.qh>
4
5 int autocvar_g_freezetag_point_limit;
6 int autocvar_g_freezetag_point_leadlimit;
7 bool autocvar_g_freezetag_team_spawns;
8 string autocvar_g_freezetag_weaponarena;
9
10 void freezetag_Initialize();
11
12 REGISTER_MUTATOR(ft, false)
13 {
14     MUTATOR_STATIC();
15         MUTATOR_ONADD
16         {
17                 GameRules_teams(true);
18         GameRules_spawning_teams(autocvar_g_freezetag_team_spawns);
19         GameRules_limit_score(autocvar_g_freezetag_point_limit);
20         GameRules_limit_lead(autocvar_g_freezetag_point_leadlimit);
21
22                 freezetag_Initialize();
23         }
24         return 0;
25 }
26
27 .float freezetag_frozen_time;
28 .float freezetag_frozen_timeout;
29 const float ICE_MAX_ALPHA = 1;
30 const float ICE_MIN_ALPHA = 0.1;
31 float freezetag_teams;
32
33 float autocvar_g_freezetag_revive_extra_size;
34 float autocvar_g_freezetag_revive_speed;
35 bool autocvar_g_freezetag_revive_nade;
36 float autocvar_g_freezetag_revive_nade_health;