float warmup_start_armorvalue;
float g_weapon_stay;
-float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still needs done?
+float want_weapon(entity weaponinfo, float allguns) // WEAPONTODO: what still needs done?
{
var float i = weaponinfo.weapon;
var float d = 0;
return TRUE;
return FALSE;
}
+
+float LoadConfig(string FileName, int AsTemp)
+{
+ string s;
+ float fh = fopen(FileName, FILE_READ);
+ if(fh >= 0)
+ {
+ while((s = fgets(fh)))
+ {
+ tokenize_console(s);
+ if not(argv(0) == "" || argv(1) == "//" || argv(1) == "")
+ if(AsTemp)
+ cvar_settemp(argv(0), argv(1));
+ else
+ cvar_set(argv(0), argv(1));
+ }
+ fclose(fh);
+ return 0;
+ }
+ else
+ return 1;
+}
{
self.armorvalue = CalcRotRegen(self.armorvalue, autocvar_g_balance_armor_regenstable, autocvar_g_balance_armor_regen, autocvar_g_balance_armor_regenlinear, 1 * frametime * (time > self.ok_pauseregen_finished), 0, 0, 1, 1 * frametime * (time > self.pauserotarmor_finished), autocvar_g_balance_armor_limit);
self.health = CalcRotRegen(self.health, autocvar_g_balance_health_regenstable, 0, 100, 1 * frametime * (time > self.ok_pauseregen_finished), 200, 0, autocvar_g_balance_health_rotlinear, 1 * frametime * (time > self.pauserothealth_finished), autocvar_g_balance_health_limit);
-
+
float minf, maxf, limitf;
maxf = autocvar_g_balance_fuel_rotstable;
{
self.jump_interval = time + WEP_CVAR_PRI(blaster, refire) * W_WeaponRateFactor();
makevectors(self.v_angle);
-
+
W_Blaster_Attack(
WEP_BLASTER | HITTYPE_SECONDARY,
WEP_CVAR_SEC(vaporizer, shotangle),
}
else
self.ok_use_ammocharge = 0;
-
+
self.ok_pauseregen_finished = time + 2;
return FALSE;
MUTATOR_ONADD
{
ok_Initialize();
+ LoadConfig("overkill.cfg", TRUE);
}
MUTATOR_ONREMOVE