4 #include <common/gamemodes/_mod.qh>
5 #include <common/mutators/mutator/powerups/_mod.qh>
7 // TODO: make this its own mutator (somehow)!
9 float autocvar_g_rm_damage;
10 float autocvar_g_rm_edgedamage;
11 float autocvar_g_rm_force;
12 float autocvar_g_rm_radius;
13 float autocvar_g_rm_laser;
14 float autocvar_g_rm_laser_count;
15 float autocvar_g_rm_laser_speed;
16 float autocvar_g_rm_laser_spread;
17 float autocvar_g_rm_laser_spread_random;
18 float autocvar_g_rm_laser_lifetime;
19 float autocvar_g_rm_laser_damage;
20 float autocvar_g_rm_laser_refire;
21 float autocvar_g_rm_laser_rapid;
22 float autocvar_g_rm_laser_rapid_refire;
23 float autocvar_g_rm_laser_rapid_delay;
24 float autocvar_g_rm_laser_radius;
25 float autocvar_g_rm_laser_force;
27 bool autocvar_g_instagib;
28 int autocvar_g_instagib_extralives;
30 float autocvar_g_instagib_invisibility_time;
31 float autocvar_g_instagib_speed_time;
33 IntrusiveList g_instagib_items;
35 REGISTER_MUTATOR(mutator_instagib, autocvar_g_instagib && !MapInfo_LoadedGametype.m_weaponarena)
39 g_instagib_items = IL_NEW();
40 IL_PUSH(g_instagib_items, ITEM_VaporizerCells);
41 IL_PUSH(g_instagib_items, ITEM_ExtraLife);
42 IL_PUSH(g_instagib_items, ITEM_Invisibility);
43 IL_PUSH(g_instagib_items, ITEM_Speed);
45 ITEM_VaporizerCells.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED;
46 ITEM_Invisibility.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED;
47 ITEM_Speed.spawnflags &= ~ITEM_FLAG_MUTATORBLOCKED;
49 MUTATOR_ONROLLBACK_OR_REMOVE
51 ITEM_VaporizerCells.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
52 ITEM_Invisibility.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
53 ITEM_Speed.spawnflags |= ITEM_FLAG_MUTATORBLOCKED;
54 IL_DELETE(g_instagib_items);