set g_balance_electro_secondary_speed_z 0
set g_balance_electro_secondary_spread 0
set g_balance_electro_secondary_stick 0
+set g_balance_electro_secondary_stick_lifetime -1
set g_balance_electro_secondary_touchexplode 1
set g_balance_electro_switchdelay_drop 0.2
set g_balance_electro_switchdelay_raise 0.2
set g_balance_electro_secondary_speed_z 0
set g_balance_electro_secondary_spread 0.04
set g_balance_electro_secondary_stick 0
+set g_balance_electro_secondary_stick_lifetime -1
set g_balance_electro_secondary_touchexplode 0
set g_balance_electro_switchdelay_drop 0.15
set g_balance_electro_switchdelay_raise 0.15
set g_balance_electro_secondary_speed_z 0
set g_balance_electro_secondary_spread 0.04
set g_balance_electro_secondary_stick 0
+set g_balance_electro_secondary_stick_lifetime -1
set g_balance_electro_secondary_touchexplode 0
set g_balance_electro_switchdelay_drop 0.2
set g_balance_electro_switchdelay_raise 0.2
set g_balance_electro_secondary_speed_z 0
set g_balance_electro_secondary_spread 0
set g_balance_electro_secondary_stick 0
+set g_balance_electro_secondary_stick_lifetime -1
set g_balance_electro_secondary_touchexplode 0
set g_balance_electro_switchdelay_drop 0
set g_balance_electro_switchdelay_raise 0
set g_balance_electro_secondary_speed_z 0
set g_balance_electro_secondary_spread 0
set g_balance_electro_secondary_stick 0
+set g_balance_electro_secondary_stick_lifetime -1
set g_balance_electro_secondary_touchexplode 1
set g_balance_electro_switchdelay_drop 0.2
set g_balance_electro_switchdelay_raise 0.2
newproj.weaponentity_fld = this.weaponentity_fld;
settouch(newproj, func_null);
- newproj.death_time = this.death_time;
+ if(WEP_CVAR_SEC(electro, stick_lifetime) > 0){
+ newproj.death_time = time + WEP_CVAR_SEC(electro, stick_lifetime);
+ }else{
+ newproj.death_time = this.death_time;
+ }
newproj.use = this.use;
newproj.flags = this.flags;
IL_PUSH(g_projectiles, newproj);
spamsound(this, CH_SHOTS, SND_ELECTRO_BOUNCE, VOL_BASE, ATTEN_NORM);
this.projectiledeathtype |= HITTYPE_BOUNCE;
- if(WEP_CVAR_SEC(electro, stick))
- W_Electro_Orb_Stick(this, toucher);
+ if(WEP_CVAR_SEC(electro, stick)){
+ if(WEP_CVAR_SEC(electro, stick_lifetime) == 0){
+ W_Electro_Explode(this, toucher);
+ } else {
+ W_Electro_Orb_Stick(this, toucher);
+ }
+ }
}
}
P(class, prefix, speed_z, float, SEC) \
P(class, prefix, spread, float, BOTH) \
P(class, prefix, stick, float, SEC) \
+ P(class, prefix, stick_lifetime, float, SEC) \
P(class, prefix, switchdelay_drop, float, NONE) \
P(class, prefix, switchdelay_raise, float, NONE) \
P(class, prefix, touchexplode, float, SEC) \