quake2ts 0.0.462 → 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
|
@@ -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
|
-
|
|
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,
|
|
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;
|