quake2ts 0.0.243 → 0.0.244
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 +10 -10
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/dist/cjs/index.cjs +76 -74
- package/packages/client/dist/cjs/index.cjs.map +1 -1
- package/packages/client/dist/esm/index.js +76 -74
- package/packages/client/dist/esm/index.js.map +1 -1
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/client/dist/types/entities.d.ts +6 -0
- package/packages/client/dist/types/entities.d.ts.map +1 -0
- package/packages/client/dist/types/index.d.ts.map +1 -1
- package/packages/game/dist/browser/index.global.js +2 -2
- package/packages/game/dist/browser/index.global.js.map +1 -1
- package/packages/game/dist/cjs/index.cjs +16 -1
- package/packages/game/dist/cjs/index.cjs.map +1 -1
- package/packages/game/dist/esm/index.js +16 -1
- 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/combat/weapons/firing.d.ts.map +1 -1
- package/packages/game/dist/types/combat/weapons/rogue.d.ts +1 -0
- package/packages/game/dist/types/combat/weapons/rogue.d.ts.map +1 -1
- package/packages/game/dist/types/entities/entity.d.ts +1 -0
- package/packages/game/dist/types/entities/entity.d.ts.map +1 -1
- package/packages/game/dist/types/entities/projectiles.d.ts +1 -0
- package/packages/game/dist/types/entities/projectiles.d.ts.map +1 -1
- package/packages/game/dist/types/inventory/items.d.ts.map +1 -1
|
@@ -4595,6 +4595,16 @@ var WEAPON_ITEMS = {
|
|
|
4595
4595
|
initialAmmo: 50,
|
|
4596
4596
|
pickupAmmo: 50,
|
|
4597
4597
|
fireRate: 0.1
|
|
4598
|
+
},
|
|
4599
|
+
"weapon_etf_rifle": {
|
|
4600
|
+
type: "weapon",
|
|
4601
|
+
id: "weapon_etf_rifle",
|
|
4602
|
+
name: "ETF Rifle",
|
|
4603
|
+
weaponId: WeaponId.EtfRifle,
|
|
4604
|
+
ammoType: AmmoType.Flechettes,
|
|
4605
|
+
initialAmmo: 50,
|
|
4606
|
+
pickupAmmo: 50,
|
|
4607
|
+
fireRate: 0.1
|
|
4598
4608
|
}
|
|
4599
4609
|
// ... add others as we implement them
|
|
4600
4610
|
};
|
|
@@ -5483,7 +5493,12 @@ function T_Damage(targ, inflictor, attacker, dir, point, normal, damage, knockba
|
|
|
5483
5493
|
};
|
|
5484
5494
|
}
|
|
5485
5495
|
const knocked = applyKnockback(targ, attacker, dir, modifiedKnockback, dflags);
|
|
5486
|
-
|
|
5496
|
+
let [take, psave, asave, remainingCells, remainingArmor] = applyProtection(targ, point, normal, modifiedDamage, dflags);
|
|
5497
|
+
if (targ.monsterinfo && targ.monsterinfo.freeze_time > time && modifiedDamage > 0) {
|
|
5498
|
+
take = targ.health + 100;
|
|
5499
|
+
psave = 0;
|
|
5500
|
+
asave = 0;
|
|
5501
|
+
}
|
|
5487
5502
|
if (targ.powerArmor && remainingCells !== void 0) {
|
|
5488
5503
|
targ.powerArmor.cellCount = remainingCells;
|
|
5489
5504
|
}
|