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.
- package/package.json +1 -1
- package/packages/client/dist/browser/index.global.js +7 -7
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/game/dist/browser/index.global.js +4 -4
- package/packages/game/dist/browser/index.global.js.map +1 -1
- package/packages/game/dist/cjs/index.cjs +6 -2
- package/packages/game/dist/cjs/index.cjs.map +1 -1
- package/packages/game/dist/esm/index.js +6 -2
- package/packages/game/dist/esm/index.js.map +1 -1
- package/packages/game/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/game/dist/types/combat/damage.d.ts.map +1 -1
- package/packages/game/dist/types/dm/game.d.ts.map +1 -1
|
@@ -5601,9 +5601,13 @@ function T_RadiusDamage(entities, inflictor, attacker, damage, ignore, radius, d
|
|
|
5601
5601
|
if (points <= 0) {
|
|
5602
5602
|
continue;
|
|
5603
5603
|
}
|
|
5604
|
-
|
|
5604
|
+
let adjustedDamage = points;
|
|
5605
|
+
if (ent === attacker) {
|
|
5606
|
+
adjustedDamage = points * 0.5;
|
|
5607
|
+
}
|
|
5608
|
+
const adjustedKnockback = adjustedDamage;
|
|
5605
5609
|
const dir = normalizeVec3(subtractVec3(ent.origin, inflictorCenter));
|
|
5606
|
-
const result = T_Damage(ent, inflictor, attacker, dir, entCenter, dir, adjustedDamage,
|
|
5610
|
+
const result = T_Damage(ent, inflictor, attacker, dir, entCenter, dir, adjustedDamage, adjustedKnockback, dflags | 1 /* RADIUS */, mod, time, multicast);
|
|
5607
5611
|
hits.push({ target: ent, result, appliedDamage: adjustedDamage });
|
|
5608
5612
|
}
|
|
5609
5613
|
return hits;
|