20 if(
cvar(
"g_instagib"))
24 if(
cvar(
"g_overkill"))
26 if(
cvar(
"g_melee_only"))
38 if(
cvar(
"g_instagib"))
50 if(!
cvar(
"g_new_toys"))
56 if(
cvar(
"g_instagib"))
64 if(
cvar_string(
"g_balance_blaster_weaponstartoverride") ==
"0")
78 _(
"Enable dodging (quick acceleration in a given direction). Double-tap a directional key to dodge")));
82 _(
"An explosion occurs when two players collide")));
86 _(
"All players are almost invisible")));
90 _(
"Enable buff pickups (random bonuses like Medic, Invisible, etc.) on the maps that support it")));
91 e.cvarOffValue =
"-1";
95 _(
"Only possible to inflict damage on your enemy while they're airborne")));
99 _(
"Damage done to your enemy gets added to your own health")));
104 _(
"Amount of health below which players start bleeding out (health rots and they can't jump)"));
109 me.TD(me, 1, 1.6, s);
113 _(
"Make things fall to the ground slower (percentage of normal gravity)"));
115 s.valueDisplayMultiplier = 0.125;
120 me.TD(me, 1, 1.6, s);
126 _(
"Players spawn with the grappling hook. Press the 'hook' key to use it")));
130 _(
"Players spawn with the jetpack. Double-tap 'jump' or press the 'jetpack' key to use it")));
133 me.TD(me, 1, 1.8, e =
makeXonoticCheckBox_T(0,
"g_invincible_projectiles", _(
"Invincible Projectiles"),
134 _(
"Projectiles can't be destroyed. However, you can still explode Electro orbs with the Electro primary fire")));
139 _(
"Allow maps to spawn additional weapons (new toys)")));
143 string nta_tooltip = _(
"Automatically replace some normal weapons of the map with their corresponding additional weapons");
155 _(
"Devastator rockets can be detonated instantly (otherwise, there's a short delay). This allows players to fire and detonate a Devastator rocket while in the air for a strong mid-air boost even while moving fast")));
160 _(
"Players will drop all weapons they possessed when they are killed")));
165 _(
"Weapons stay after they are picked up")));
169 me.gotoRC(me, 0, 2); me.setFirstColumn(me, me.currentColumn);
171 string weaponarena_tooltip = _(
"Players will be given a set of weapons at spawn as well as unlimited ammo, without weapon pickups");
176 me.TD(me, 1, 1.8, e =
makeXonoticRadioButton_T(1,
"g_weaponarena",
"menu_weaponarena", _(
"Custom weapons"), weaponarena_tooltip));
177 e.cvarValueIsAnotherCvar =
true;
178 e.cvarOffValue =
"0";
198 me.TD(me, 1, 1.8, e =
makeXonoticRadioButton_T(1,
"g_weaponarena",
"most", _(
"Most weapons"), weaponarena_tooltip));
199 e.cvarOffValue =
"0";
203 e.cvarOffValue =
"0";
209 _(
"Players will be given only one weapon, which can instantly kill the opponent with a single shot. If the player runs out of ammo, they will have 10 seconds to find some or if they fail to do so, face death. The secondary fire mode does not inflict any damage but is good for doing trickjumps.")));
210 e.cvarOffValue =
"0";
214 _(
"No items Xonotic - instead of pickup items, everyone plays with the same weapon. After some time, a countdown will start, after which everyone will switch to another weapon.")));
215 e.cvarOffValue =
"0";
219 _(
"Always carry the blaster as an additional weapon in Nix")));
223 me.TD(me, 1, 1.8, e =
makeXonoticRadioButton_T(1,
"g_balance_blaster_weaponstartoverride",
"0", _(
"No start weapons"),
"-"));
224 e.cvarOffValue =
"-1";
225 makeMulti(e,
"g_balance_shotgun_weaponstartoverride g_balance_machinegun_weaponstartoverride g_balance_devastator_weaponstartoverride g_balance_minelayer_weaponstartoverride g_balance_electro_weaponstartoverride g_balance_crylink_weaponstartoverride g_balance_hagar_weaponstartoverride g_balance_porto_weaponstartoverride g_balance_vaporizer_weaponstartoverride g_balance_hook_weaponstartoverride g_balance_rifle_weaponstartoverride g_balance_fireball_weaponstartoverride g_balance_seeker_weaponstartoverride g_balance_tuba_weaponstartoverride g_balance_arc_weaponstartoverride g_balance_vortex_weaponstartoverride g_balance_mortar_weaponstartoverride");
227 me.gotoRC(me, me.rows - 1, 0);
230 e.onClickEntity = me;
237 if(me.refilterEntity)
238 me.refilterEntity.refilter(me.refilterEntity);
entity makeXonoticSliderCheckBox(float theOffValue, float isInverted, entity theControlledSlider, string theText)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void XonoticMutatorsDialog_fill(entity me)
void XonoticMutatorsDialog_close(entity me)
float checkCompatibility_newtoys(entity me)
float checkCompatibility_weaponstay(entity me)
float checkCompatibility_pinata(entity me)
void XonoticMutatorsDialog_showNotify(entity me)
float checkCompatibility_weaponarena_weapon(entity me)
float checkCompatibility_newtoys_autoreplace(entity me)
#define REGISTRY_GET(id, i)
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticWeaponarenaCheckBox(string theWeapon, string theText)
const int WEP_FLAG_HIDDEN
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)