quake2ts 0.0.463 → 0.0.464

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5412,9 +5412,13 @@ function T_RadiusDamage(entities, inflictor, attacker, damage, ignore, radius, d
5412
5412
  if (points <= 0) {
5413
5413
  continue;
5414
5414
  }
5415
- const adjustedDamage = ent === attacker ? points * 0.5 : points;
5415
+ let adjustedDamage = points;
5416
+ if (ent === attacker) {
5417
+ adjustedDamage = points * 0.5;
5418
+ }
5419
+ const adjustedKnockback = adjustedDamage;
5416
5420
  const dir = normalizeVec3(subtractVec3(ent.origin, inflictorCenter));
5417
- const result = T_Damage(ent, inflictor, attacker, dir, entCenter, dir, adjustedDamage, adjustedDamage, dflags | 1 /* RADIUS */, mod, time, multicast);
5421
+ const result = T_Damage(ent, inflictor, attacker, dir, entCenter, dir, adjustedDamage, adjustedKnockback, dflags | 1 /* RADIUS */, mod, time, multicast);
5418
5422
  hits.push({ target: ent, result, appliedDamage: adjustedDamage });
5419
5423
  }
5420
5424
  return hits;