// Globals
-float g_cloaked, g_footsteps, g_jump_grunt, g_grappling_hook, g_midair, g_minstagib, g_pinata, g_norecoil, g_minstagib_invis_alpha, g_bloodloss;
+float g_cloaked, g_footsteps, g_jump_grunt, g_grappling_hook, g_midair, g_minstagib, g_pinata, g_norecoil, g_bloodloss;
float g_warmup_limit;
float g_warmup_allguns;
float g_warmup_allow_timeout;
if (g_weaponarena)
{
- g_minstagib = 0; // incompatible
g_pinata = 0; // incompatible
g_weapon_stay = 0; // incompatible
WEPSET_COPY_AA(start_weapons, g_weaponarena_weapons);
string GetGametype(); // g_world.qc
void readlevelcvars(void)
{
- g_minstagib = cvar("g_minstagib");
-
// load ALL the mutators
if(cvar("g_dodging"))
MUTATOR_ADD(mutator_dodging);
if(cvar("g_physical_items"))
MUTATOR_ADD(mutator_physical_items);
if(cvar("g_minstagib"))
- MUTATOR_ADD(mutator_minstagib);
-
- if(!g_minstagib)
- {
- if(cvar("g_invincible_projectiles"))
- MUTATOR_ADD(mutator_invincibleprojectiles);
- if(cvar("g_new_toys"))
- MUTATOR_ADD(mutator_new_toys);
- if(cvar("g_nix"))
- MUTATOR_ADD(mutator_nix);
- if(cvar("g_rocket_flying"))
- MUTATOR_ADD(mutator_rocketflying);
- if(cvar("g_vampire"))
- MUTATOR_ADD(mutator_vampire);
- if(cvar("g_superspectate"))
- MUTATOR_ADD(mutator_superspec);
- }
+ MUTATOR_ADD(mutator_minstagib);
+ if(cvar("g_invincible_projectiles"))
+ MUTATOR_ADD(mutator_invincibleprojectiles);
+ if(cvar("g_new_toys"))
+ MUTATOR_ADD(mutator_new_toys);
+ if(!cvar("g_minstagib")) // TODO: nix support?
+ if(cvar("g_nix"))
+ MUTATOR_ADD(mutator_nix);
+ if(cvar("g_rocket_flying"))
+ MUTATOR_ADD(mutator_rocketflying);
+ if(cvar("g_vampire"))
+ MUTATOR_ADD(mutator_vampire);
+ if(cvar("g_superspectate"))
+ MUTATOR_ADD(mutator_superspec);
// is this a mutator? is this a mode?
if(cvar("g_sandbox"))
g_bugrigs_speed_ref = cvar("g_bugrigs_speed_ref");
g_bugrigs_speed_pow = cvar("g_bugrigs_speed_pow");
g_bugrigs_steer = cvar("g_bugrigs_steer");
+
+ g_minstagib = cvar("g_minstagib");
g_touchexplode = cvar("g_touchexplode");
g_touchexplode_radius = cvar("g_touchexplode_radius");
g_warmup_allguns = cvar("g_warmup_allguns");
g_warmup_allow_timeout = cvar("g_warmup_allow_timeout");
- if ((g_race && g_race_qualifying == 2) || g_arena || g_assault || cvar("g_campaign"))
+ if ((g_race && g_race_qualifying == 2) || g_arena || g_minstagib || g_assault || cvar("g_campaign"))
inWarmupStage = 0; // these modes cannot work together, sorry
g_pickup_respawntime_weapon = cvar("g_pickup_respawntime_weapon");
{
if (time < self.strength_finished)
{
- self.alpha = g_minstagib_invis_alpha;
- self.exteriorweaponentity.alpha = g_minstagib_invis_alpha;
+ self.alpha = autocvar_g_minstagib_invis_alpha;
+ self.exteriorweaponentity.alpha = autocvar_g_minstagib_invis_alpha;
self.items |= IT_STRENGTH;
Send_Notification(NOTIF_ALL, world, MSG_INFO, INFO_POWERUP_INVISIBILITY, self.netname);
Send_Notification(NOTIF_ONE, self, MSG_CENTER, CENTER_POWERUP_INVISIBILITY);
{
start_ammo_cells = cvar("g_minstagib_ammo_start");
- g_pinata = 0; // incompatible
- g_weapon_stay = 0; // incompatible
- g_bloodloss = 0; // incompatible
start_health = 100;
start_armorvalue = 0;
WEPSET_COPY_AW(start_weapons, WEP_MINSTANEX);
- g_minstagib_invis_alpha = cvar("g_minstagib_invis_alpha");
start_items |= IT_UNLIMITED_SUPERWEAPONS;
-
- if (g_minstagib_invis_alpha <= 0)
- g_minstagib_invis_alpha = -1;
return FALSE;
}