From 702f8c2bc66d21e4b87514fc4eb9b090dbe72959 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 1 Aug 2024 16:08:03 +1000 Subject: [PATCH] Remove now unused dmg_last field from Electro code --- bal-wep-mario.cfg | 2 +- qcsrc/common/weapons/weapon/electro.qc | 1 - qcsrc/common/weapons/weapon/electro.qh | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bal-wep-mario.cfg b/bal-wep-mario.cfg index 2858bde44..83b6a7094 100644 --- a/bal-wep-mario.cfg +++ b/bal-wep-mario.cfg @@ -191,7 +191,7 @@ set g_balance_electro_combo_comboradius_thruwall 200 set g_balance_electro_combo_damage 50 set g_balance_electro_combo_duration 1.5 set g_balance_electro_combo_edgedamage 25 -set g_balance_electro_combo_force 0 +set g_balance_electro_combo_force 120 set g_balance_electro_combo_radius 150 set g_balance_electro_combo_safeammocheck 1 set g_balance_electro_combo_speed 2000 diff --git a/qcsrc/common/weapons/weapon/electro.qc b/qcsrc/common/weapons/weapon/electro.qc index 207149148..d7712eb11 100644 --- a/qcsrc/common/weapons/weapon/electro.qc +++ b/qcsrc/common/weapons/weapon/electro.qc @@ -89,7 +89,6 @@ void W_Electro_ExplodeCombo(entity this) this.dmg_radius = WEP_CVAR(electro, combo_radius); this.dmg_duration = WEP_CVAR(electro, combo_duration); this.teleport_time = time; - this.dmg_last = 1; set_movetype(this, MOVETYPE_NONE); return; } diff --git a/qcsrc/common/weapons/weapon/electro.qh b/qcsrc/common/weapons/weapon/electro.qh index cdb2f10e0..cf117b904 100644 --- a/qcsrc/common/weapons/weapon/electro.qh +++ b/qcsrc/common/weapons/weapon/electro.qh @@ -83,7 +83,6 @@ SPAWNFUNC_WEAPON(weapon_electro, WEP_ELECTRO) .float dmg_edge; .float dmg_radius; .float dmg_duration; -.float dmg_last; IntrusiveList LimitedElectroBallRubbleList; .float electro_count; -- 2.39.2