set g_balance_electro_combo_comboradius 300
set g_balance_electro_combo_comboradius_thruwall 200
set g_balance_electro_combo_damage 50
-set g_balance_electro_combo_damagerate 0.05
+set g_balance_electro_combo_damage_interval 0.05
set g_balance_electro_combo_duration 1.5
set g_balance_electro_combo_edgedamage 45
set g_balance_electro_combo_force -100
set g_balance_electro_combo_comboradius 0
set g_balance_electro_combo_comboradius_thruwall 0
set g_balance_electro_combo_damage 80
-set g_balance_electro_combo_damagerate 0.05
+set g_balance_electro_combo_damage_interval 0.05
set g_balance_electro_combo_duration 0
set g_balance_electro_combo_edgedamage 0
set g_balance_electro_combo_force 200
set g_balance_electro_combo_comboradius 300
set g_balance_electro_combo_comboradius_thruwall 200
set g_balance_electro_combo_damage 50
-set g_balance_electro_combo_damagerate 0.05
+set g_balance_electro_combo_damage_interval 0.05
set g_balance_electro_combo_duration 0
set g_balance_electro_combo_edgedamage 25
set g_balance_electro_combo_force 120
set g_balance_electro_combo_comboradius 300
set g_balance_electro_combo_comboradius_thruwall 200
set g_balance_electro_combo_damage 50
-set g_balance_electro_combo_damagerate 0.05
+set g_balance_electro_combo_damage_interval 0.05
set g_balance_electro_combo_duration 0
set g_balance_electro_combo_edgedamage 25
set g_balance_electro_combo_force 120
set g_balance_electro_combo_comboradius 275
set g_balance_electro_combo_comboradius_thruwall 200
set g_balance_electro_combo_damage 50
-set g_balance_electro_combo_damagerate 0.05
+set g_balance_electro_combo_damage_interval 0.05
set g_balance_electro_combo_duration 0
set g_balance_electro_combo_edgedamage 25
set g_balance_electro_combo_force 120
set g_balance_electro_combo_comboradius 300
set g_balance_electro_combo_comboradius_thruwall 200
set g_balance_electro_combo_damage 50
-set g_balance_electro_combo_damagerate 0.05
+set g_balance_electro_combo_damage_interval 0.05
set g_balance_electro_combo_duration 0
set g_balance_electro_combo_edgedamage 25
set g_balance_electro_combo_force 120
void W_Electro_ExplodeComboThink(entity this)
{
- float dt = time - this.teleport_time + this.dmg_rate;
+ float dt = time - this.teleport_time + this.dmg_interval;
float dmg_remaining_next = (bound(0, 1 - dt / this.dmg_duration, 1) ** this.dmg_power);
float f = this.dmg_last - dmg_remaining_next;
this.projectiledeathtype |= HITTYPE_BOUNCE; // ensure it doesn't spam its effect
if(dt < this.dmg_duration)
- this.nextthink = time + this.dmg_rate; // soon
+ this.nextthink = time + this.dmg_interval; // soon
else
delete(this);
}
this.dmg_force = WEP_CVAR(electro, combo_force);
this.dmg_power = WEP_CVAR(electro, combo_power);
this.dmg_duration = WEP_CVAR(electro, combo_duration);
- this.dmg_rate = WEP_CVAR(electro, combo_damagerate);
+ this.dmg_interval = WEP_CVAR(electro, combo_damage_interval);
this.teleport_time = time;
this.dmg_last = 1;
set_movetype(this, MOVETYPE_NONE);
P(class, prefix, combo_comboradius, float, NONE) \
P(class, prefix, combo_comboradius_thruwall, float, NONE) \
P(class, prefix, combo_damage, float, NONE) \
- P(class, prefix, combo_damagerate, float, NONE) \
+ P(class, prefix, combo_damage_interval, float, NONE) \
P(class, prefix, combo_duration, float, NONE) \
P(class, prefix, combo_edgedamage, float, NONE) \
P(class, prefix, combo_force, float, NONE) \
.float dmg_power;
.float dmg_duration;
.float dmg_last;
-.float dmg_rate;
+.float dmg_interval;
.float electro_count;
.float electro_secondarytime;