]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into Mario/electro_combo_over_time
authorMario <mario.mario@y7mail.com>
Wed, 14 Sep 2022 04:25:38 +0000 (14:25 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 14 Sep 2022 04:25:38 +0000 (14:25 +1000)
1  2 
bal-wep-mario.cfg
bal-wep-nexuiz25.cfg
bal-wep-samual.cfg
bal-wep-xdf.cfg
bal-wep-xonotic.cfg
qcsrc/common/weapons/weapon/electro.qc
qcsrc/common/weapons/weapon/electro.qh
qcsrc/server/damage.qc

Simple merge
Simple merge
Simple merge
diff --cc bal-wep-xdf.cfg
Simple merge
Simple merge
index fa25513f13e5c787711316a6e48188916eb83fc5,3a70920e07839ed32bee603e7ec368c640b9bac2..a68ad35bd9fcf203a3d093d3c119fa68bd993a45
@@@ -73,30 -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
  
 +      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,
index eb697c3eff5af746674278daeedf80397d2cd5de,e4263403bf82161b52cf66eac3a1507e9f4b3748..721d34889f1cdfeeb1c80cbe22421babbb0d1497
@@@ -2,9 -2,9 +2,9 @@@
  
  CLASS(Electro, Weapon)
  /* spawnfunc */ ATTRIB(Electro, m_canonical_spawnfunc, string, "weapon_electro");
- /* ammotype  */ ATTRIB(Electro, ammo_type, int, RES_CELLS);
+ /* ammotype  */ ATTRIB(Electro, ammo_type, Resource, RES_CELLS);
  /* impulse   */ ATTRIB(Electro, impulse, int, 5);
 -/* flags     */ ATTRIB(Electro, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_FLAG_CANCLIMB | WEP_TYPE_SPLASH);
 +/* flags     */ ATTRIB(Electro, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_SPLASH);
  /* rating    */ ATTRIB(Electro, bot_pickupbasevalue, float, 5000);
  /* color     */ ATTRIB(Electro, wpcolor, vector, '0 0.5 1');
  /* modelname */ ATTRIB(Electro, mdl, string, "electro");
@@@ -80,16 -78,7 +82,17 @@@ REGISTER_WEAPON(ELECTRO, electro, NEW(E
  SPAWNFUNC_WEAPON(weapon_electro, WEP_ELECTRO)
  
  #ifdef SVQC
 +.float dmg;
 +.float dmg_edge;
 +.float dmg_radius;
 +.float dmg_force;
 +.float dmg_power;
 +.float dmg_duration;
 +.float dmg_last;
 +.float dmg_interval;
 +.float dmg_linear;
 +
+ IntrusiveList LimitedElectroBallRubbleList;
  .float electro_count;
  .float electro_secondarytime;
  void W_Electro_ExplodeCombo(entity this);
Simple merge