void CSQCModel_Hook_PostUpdate(entity this, bool isnew, bool isplayer, bool islocalplayer)
{
// is it a player model? (shared state)
- bool is_playermodel = (substring(this.model, 0, 14) == "models/player/" || substring(this.model, 0, 17) == "models/ok_player/" ||
+ bool is_playermodel = (substring(this.model, 0, 14) == "models/player/" || substring(this.model, 0, 17) == "models/ok_player/" ||
(substring(this.model, 0, 16) == "models/monsters/" && (this.isplayermodel & BIT(1))));
this.isplayermodel = BITSET(this.isplayermodel, ISPLAYER_MODEL, is_playermodel);
.float swamp_interval; //Hurt players in swamp with this interval
.float swamp_slowdown; //Players in swamp get slowd down by this mutch 0-1 is slowdown 1-~ is speedup (!?)
-.float swamp_lifetime; // holds the points remaining until slug dies (not quite health!)
+.float swamp_lifetime; // holds the points remaining until slug dies (not quite health!)
.entity swampslug;
#ifdef SVQC
float autocvar_g_instagib_speed_highspeed;
IntrusiveList g_instagib_items;
-STATIC_INIT()
+STATIC_INIT(g_instagib_items)
{
g_instagib_items = IL_NEW();
IL_PUSH(g_instagib_items, ITEM_VaporizerCells);
// generated file; do not modify
+#include <common/mutators/mutator/overkill/okhmg.qc>
+#include <common/mutators/mutator/overkill/okmachinegun.qc>
+#include <common/mutators/mutator/overkill/oknex.qc>
+#include <common/mutators/mutator/overkill/okrpc.qc>
+#include <common/mutators/mutator/overkill/okshotgun.qc>
+#include <common/mutators/mutator/overkill/overkill.qc>
#ifdef CSQC
#include <common/mutators/mutator/overkill/cl_overkill.qc>
#endif
#ifdef SVQC
#include <common/mutators/mutator/overkill/sv_overkill.qc>
#endif
-#include <common/mutators/mutator/overkill/okhmg.qc>
-#include <common/mutators/mutator/overkill/okmachinegun.qc>
-#include <common/mutators/mutator/overkill/oknex.qc>
-#include <common/mutators/mutator/overkill/okrpc.qc>
-#include <common/mutators/mutator/overkill/okshotgun.qc>
#ifdef SVQC
#include <common/mutators/mutator/overkill/sv_weapons.qc>
#endif
// generated file; do not modify
+#include <common/mutators/mutator/overkill/okhmg.qh>
+#include <common/mutators/mutator/overkill/okmachinegun.qh>
+#include <common/mutators/mutator/overkill/oknex.qh>
+#include <common/mutators/mutator/overkill/okrpc.qh>
+#include <common/mutators/mutator/overkill/okshotgun.qh>
+#include <common/mutators/mutator/overkill/overkill.qh>
#ifdef CSQC
#include <common/mutators/mutator/overkill/cl_overkill.qh>
#endif
#ifdef SVQC
#include <common/mutators/mutator/overkill/sv_overkill.qh>
#endif
-#include <common/mutators/mutator/overkill/okhmg.qh>
-#include <common/mutators/mutator/overkill/okmachinegun.qh>
-#include <common/mutators/mutator/overkill/oknex.qh>
-#include <common/mutators/mutator/overkill/okrpc.qh>
-#include <common/mutators/mutator/overkill/okshotgun.qh>
+#ifdef SVQC
+ #include <common/mutators/mutator/overkill/sv_weapons.qh>
+#endif
--- /dev/null
+#include "overkill.qh"
--- /dev/null
+#pragma once
.Weapon ok_lastwep[MAX_WEAPONSLOTS];
IntrusiveList g_overkill_items;
-STATIC_INIT()
+STATIC_INIT(g_overkill_items)
{
g_overkill_items = IL_NEW();
IL_PUSH(g_overkill_items, ITEM_HealthMega);
+#include "sv_weapons.qh"
string autocvar_g_overkill_weapons;
REGISTER_MUTATOR(ok_weapons, expr_evaluate(autocvar_g_overkill_weapons) || MUTATOR_IS_ENABLED(ok))
--- /dev/null
+#pragma once
g_weaponarena_random = cvar("g_weaponarena_random");
else
g_weaponarena_random = 0;
-
+
g_weaponarena_random_with_blaster = cvar("g_weaponarena_random_with_blaster");
}
}
}
TeamBalance_Destroy(balance);
-
+
if (players >= 2) {
return normal_respawntime * (r / (players + o) + l);
} else {
#include <menu/xonotic/dialog_sandboxtools.qc>
#include <menu/xonotic/dialog_settings.qc>
#include <menu/xonotic/dialog_settings_audio.qc>
+#include <menu/xonotic/dialog_settings_bindings_reset.qc>
#include <menu/xonotic/dialog_settings_effects.qc>
#include <menu/xonotic/dialog_settings_game.qc>
#include <menu/xonotic/dialog_settings_game_crosshair.qc>
#include <menu/xonotic/dialog_settings_game_weapons.qc>
#include <menu/xonotic/dialog_settings_input.qc>
#include <menu/xonotic/dialog_settings_input_userbind.qc>
-#include <menu/xonotic/dialog_settings_bindings_reset.qc>
#include <menu/xonotic/dialog_settings_misc.qc>
#include <menu/xonotic/dialog_settings_misc_cvars.qc>
#include <menu/xonotic/dialog_settings_misc_reset.qc>
#include <menu/xonotic/dialog_sandboxtools.qh>
#include <menu/xonotic/dialog_settings.qh>
#include <menu/xonotic/dialog_settings_audio.qh>
+#include <menu/xonotic/dialog_settings_bindings_reset.qh>
#include <menu/xonotic/dialog_settings_effects.qh>
#include <menu/xonotic/dialog_settings_game.qh>
#include <menu/xonotic/dialog_settings_game_crosshair.qh>
#include <menu/xonotic/dialog_settings_game_weapons.qh>
#include <menu/xonotic/dialog_settings_input.qh>
#include <menu/xonotic/dialog_settings_input_userbind.qh>
-#include <menu/xonotic/dialog_settings_bindings_reset.qh>
#include <menu/xonotic/dialog_settings_misc.qh>
#include <menu/xonotic/dialog_settings_misc_cvars.qh>
#include <menu/xonotic/dialog_settings_misc_reset.qh>
limith = limith * limit_mod;
limita = limita * limit_mod;
- SetResource(this, RES_ARMOR, CalcRotRegen(GetResource(this, RES_ARMOR), mina, autocvar_g_balance_armor_regen, autocvar_g_balance_armor_regenlinear,
+ SetResource(this, RES_ARMOR, CalcRotRegen(GetResource(this, RES_ARMOR), mina, autocvar_g_balance_armor_regen, autocvar_g_balance_armor_regenlinear,
regen_mod * frametime * (time > this.pauseregen_finished), maxa, autocvar_g_balance_armor_rot, autocvar_g_balance_armor_rotlinear,
rot_mod * frametime * (time > this.pauserotarmor_finished), limita));
SetResource(this, RES_HEALTH, CalcRotRegen(GetResource(this, RES_HEALTH), regen_health_stable, regen_health, regen_health_linear,
minf = autocvar_g_balance_fuel_regenstable;
limitf = GetResourceLimit(this, RES_FUEL);
- SetResource(this, RES_FUEL, CalcRotRegen(GetResource(this, RES_FUEL), minf, autocvar_g_balance_fuel_regen, autocvar_g_balance_fuel_regenlinear,
+ SetResource(this, RES_FUEL, CalcRotRegen(GetResource(this, RES_FUEL), minf, autocvar_g_balance_fuel_regen, autocvar_g_balance_fuel_regenlinear,
frametime * (time > this.pauseregen_finished) * ((this.items & ITEM_JetpackRegen.m_itemid) != 0),
maxf, autocvar_g_balance_fuel_rot, autocvar_g_balance_fuel_rotlinear, frametime * (time > this.pauserotfuel_finished), limitf));
}
+#pragma once
// set when showing a kill countdown
.entity killindicator;
}
void print_Effect_Index(int d, string effect_name)
-{
+{
// this is inside a function to avoid expanding it on compilation everytime
LOG_INFO("effect ", effect_name, " is ", ftos(_particleeffectnum(effect_name)), "\n");
db_put(d, effect_name, "1");