]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Mario/electro_combo_over_time
authorterencehill <piuntn@gmail.com>
Sun, 30 Apr 2023 09:35:04 +0000 (11:35 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 30 Apr 2023 09:35:04 +0000 (11:35 +0200)
# Conflicts:
# .gitlab-ci.yml

1  2 
qcsrc/common/weapons/weapon/electro.qc
qcsrc/server/damage.qc

index 9e0e39d85698b2012eb86f66352410311aeb310c,2c03871ce54580335fe95adff435d86d4a555818..3c6da1bfc5f06fd8ee8f6bf545b27cb410ef7e7c
@@@ -75,31 -56,8 +75,31 @@@ void W_Electro_ExplodeCombo(entity this
        W_Electro_TriggerCombo(this.origin, WEP_CVAR(electro, combo_comboradius), this.realowner);
  
        this.event_damage = func_null;
-       this.velocity = this.movedir; // particle fx and decals need .velocity
+       this.velocity = this.movedir; // .velocity must be != '0 0 0' for particle fx and decal to work
  
 +      if(WEP_CVAR(electro, combo_duration))
 +      {
 +              this.projectiledeathtype = WEP_ELECTRO.m_id | HITTYPE_SPLASH;
 +              this.event_damage = func_null;
 +              settouch(this, func_null);
 +              this.effects |= EF_NODRAW;
 +
 +              setthink(this, W_Electro_ExplodeComboThink);
 +              this.nextthink = time;
 +              this.dmg = WEP_CVAR(electro, combo_damage);
 +              this.dmg_edge = WEP_CVAR(electro, combo_edgedamage);
 +              this.dmg_radius = WEP_CVAR(electro, combo_radius);
 +              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_interval = WEP_CVAR(electro, combo_damage_interval);
 +              this.dmg_linear = WEP_CVAR(electro, combo_damage_linear);
 +              this.teleport_time = time;
 +              this.dmg_last = 1;
 +              set_movetype(this, MOVETYPE_NONE);
 +              return;
 +      }
 +
        RadiusDamage(
                this,
                this.realowner,
Simple merge