set g_balance_electro_primary_midaircombo_interval 0.1
set g_balance_electro_primary_midaircombo_own 1
set g_balance_electro_primary_midaircombo_radius 0
+set g_balance_electro_primary_midaircombo_speed 2000
set g_balance_electro_primary_midaircombo_teammate 1
set g_balance_electro_primary_radius 100
set g_balance_electro_primary_refire 0.6
set g_balance_electro_primary_midaircombo_interval 0
set g_balance_electro_primary_midaircombo_own 1
set g_balance_electro_primary_midaircombo_radius 0
+set g_balance_electro_primary_midaircombo_speed 2000
set g_balance_electro_primary_midaircombo_teammate 1
set g_balance_electro_primary_radius 150
set g_balance_electro_primary_refire 0.6
set g_balance_electro_primary_midaircombo_interval 0.1
set g_balance_electro_primary_midaircombo_own 1
set g_balance_electro_primary_midaircombo_radius 100
+set g_balance_electro_primary_midaircombo_speed 2000
set g_balance_electro_primary_midaircombo_teammate 1
set g_balance_electro_primary_radius 100
set g_balance_electro_primary_refire 0.6
set g_balance_electro_primary_midaircombo_interval 0.1
set g_balance_electro_primary_midaircombo_own 1
set g_balance_electro_primary_midaircombo_radius 0
+set g_balance_electro_primary_midaircombo_speed 2000
set g_balance_electro_primary_midaircombo_teammate 1
set g_balance_electro_primary_radius 100
set g_balance_electro_primary_refire 0.6
set g_balance_electro_primary_midaircombo_interval 0.1
set g_balance_electro_primary_midaircombo_own 1
set g_balance_electro_primary_midaircombo_radius 100
+set g_balance_electro_primary_midaircombo_speed 2000
set g_balance_electro_primary_midaircombo_teammate 1
set g_balance_electro_primary_radius 100
set g_balance_electro_primary_refire 0.6
set g_balance_electro_primary_midaircombo_interval 0.1
set g_balance_electro_primary_midaircombo_own 1
set g_balance_electro_primary_midaircombo_radius 0
+set g_balance_electro_primary_midaircombo_speed 2000
set g_balance_electro_primary_midaircombo_teammate 1
set g_balance_electro_primary_radius 100
set g_balance_electro_primary_refire 0.6
e.takedamage = DAMAGE_NO;
e.classname = "electro_orb_chain";
- // explode first orb immediately, other orbs will chain with delay
+ // Only first orb explosion uses midaircombo_speed, others use the normal combo_speed.
+ // This allows to avoid the delay on the first explosion which looks better
+ // (the bolt and orb should explode together because they interacted together)
+ // while keeping the chaining delay.
setthink(e, W_Electro_ExplodeCombo);
- e.nextthink = time;
+ e.nextthink =
+ (
+ time
+ +
+ (WEP_CVAR_PRI(electro, midaircombo_speed) ?
+ (vlen(e.WarpZone_findradius_dist) / WEP_CVAR_PRI(electro, midaircombo_speed))
+ :
+ 0
+ )
+ );
+
++found;
}
P(class, prefix, midaircombo_interval, float, PRI) \
P(class, prefix, midaircombo_own, bool, PRI) \
P(class, prefix, midaircombo_radius, float, PRI) \
+ P(class, prefix, midaircombo_speed, float, PRI) \
P(class, prefix, midaircombo_teammate, float, PRI) \
P(class, prefix, radius, float, BOTH) \
P(class, prefix, refire2, float, SEC) \