quake2ts 0.0.188 → 0.0.190
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/cgame/dist/index.cjs +256 -0
- package/packages/cgame/dist/index.cjs.map +1 -0
- package/packages/cgame/dist/index.d.cts +101 -0
- package/packages/cgame/dist/index.d.ts +99 -1
- package/packages/cgame/dist/index.js +250 -28
- package/packages/cgame/dist/index.js.map +1 -0
- package/packages/client/dist/browser/index.global.js +5 -5
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/dist/cjs/index.cjs +34 -0
- package/packages/client/dist/cjs/index.cjs.map +1 -1
- package/packages/client/dist/esm/index.js +48 -14
- package/packages/client/dist/esm/index.js.map +1 -1
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/engine/dist/browser/index.global.js +9 -9
- package/packages/engine/dist/browser/index.global.js.map +1 -1
- package/packages/engine/dist/cjs/index.cjs +17 -0
- package/packages/engine/dist/cjs/index.cjs.map +1 -1
- package/packages/engine/dist/esm/index.js +17 -0
- package/packages/engine/dist/esm/index.js.map +1 -1
- package/packages/engine/dist/tsconfig.tsbuildinfo +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 +117 -117
- package/packages/game/dist/cjs/index.cjs.map +1 -1
- package/packages/game/dist/esm/index.js +117 -117
- package/packages/game/dist/esm/index.js.map +1 -1
- package/packages/game/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/game/dist/types/inventory/ammo.d.ts +2 -24
- package/packages/game/dist/types/inventory/ammo.d.ts.map +1 -1
- package/packages/game/dist/types/inventory/playerInventory.d.ts +2 -47
- package/packages/game/dist/types/inventory/playerInventory.d.ts.map +1 -1
- package/packages/shared/dist/browser/index.global.js +1 -1
- package/packages/shared/dist/browser/index.global.js.map +1 -1
- package/packages/shared/dist/cjs/index.cjs +153 -0
- package/packages/shared/dist/cjs/index.cjs.map +1 -1
- package/packages/shared/dist/esm/index.js +142 -0
- package/packages/shared/dist/esm/index.js.map +1 -1
- package/packages/shared/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/shared/dist/types/index.d.ts +1 -0
- package/packages/shared/dist/types/index.d.ts.map +1 -1
- package/packages/shared/dist/types/items/ammo.d.ts +33 -0
- package/packages/shared/dist/types/items/ammo.d.ts.map +1 -0
- package/packages/shared/dist/types/items/index.d.ts +7 -0
- package/packages/shared/dist/types/items/index.d.ts.map +1 -0
- package/packages/shared/dist/types/items/powerups.d.ts +31 -0
- package/packages/shared/dist/types/items/powerups.d.ts.map +1 -0
- package/packages/shared/dist/types/items/weapons.d.ts +25 -0
- package/packages/shared/dist/types/items/weapons.d.ts.map +1 -0
- package/packages/shared/dist/types/protocol/index.d.ts +2 -0
- package/packages/shared/dist/types/protocol/index.d.ts.map +1 -1
- package/packages/tools/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/cgame/dist/index.d.mts +0 -3
- package/packages/cgame/dist/index.mjs +0 -7
|
@@ -2268,6 +2268,23 @@ var BinaryStream = class {
|
|
|
2268
2268
|
out.z = norm[2];
|
|
2269
2269
|
}
|
|
2270
2270
|
};
|
|
2271
|
+
var AmmoType = /* @__PURE__ */ ((AmmoType22) => {
|
|
2272
|
+
AmmoType22[AmmoType22["Bullets"] = 0] = "Bullets";
|
|
2273
|
+
AmmoType22[AmmoType22["Shells"] = 1] = "Shells";
|
|
2274
|
+
AmmoType22[AmmoType22["Rockets"] = 2] = "Rockets";
|
|
2275
|
+
AmmoType22[AmmoType22["Grenades"] = 3] = "Grenades";
|
|
2276
|
+
AmmoType22[AmmoType22["Cells"] = 4] = "Cells";
|
|
2277
|
+
AmmoType22[AmmoType22["Slugs"] = 5] = "Slugs";
|
|
2278
|
+
AmmoType22[AmmoType22["Trap"] = 6] = "Trap";
|
|
2279
|
+
AmmoType22[AmmoType22["Tesla"] = 7] = "Tesla";
|
|
2280
|
+
AmmoType22[AmmoType22["MagSlugs"] = 8] = "MagSlugs";
|
|
2281
|
+
AmmoType22[AmmoType22["Flechettes"] = 9] = "Flechettes";
|
|
2282
|
+
AmmoType22[AmmoType22["Prox"] = 10] = "Prox";
|
|
2283
|
+
AmmoType22[AmmoType22["Nuke"] = 11] = "Nuke";
|
|
2284
|
+
AmmoType22[AmmoType22["Rounds"] = 12] = "Rounds";
|
|
2285
|
+
return AmmoType22;
|
|
2286
|
+
})(AmmoType || {});
|
|
2287
|
+
var AMMO_TYPE_COUNT = Object.keys(AmmoType).length / 2;
|
|
2271
2288
|
function createCrcTable() {
|
|
2272
2289
|
const table = new Uint32Array(256);
|
|
2273
2290
|
for (let i = 0; i < 256; i += 1) {
|
|
@@ -3945,6 +3962,23 @@ var U_MODEL23 = 1 << 0;
|
|
|
3945
3962
|
var U_MODEL33 = 1 << 1;
|
|
3946
3963
|
var U_MODEL43 = 1 << 2;
|
|
3947
3964
|
var U_REMOVE3 = 32768;
|
|
3965
|
+
var AmmoType2 = /* @__PURE__ */ ((AmmoType22) => {
|
|
3966
|
+
AmmoType22[AmmoType22["Bullets"] = 0] = "Bullets";
|
|
3967
|
+
AmmoType22[AmmoType22["Shells"] = 1] = "Shells";
|
|
3968
|
+
AmmoType22[AmmoType22["Rockets"] = 2] = "Rockets";
|
|
3969
|
+
AmmoType22[AmmoType22["Grenades"] = 3] = "Grenades";
|
|
3970
|
+
AmmoType22[AmmoType22["Cells"] = 4] = "Cells";
|
|
3971
|
+
AmmoType22[AmmoType22["Slugs"] = 5] = "Slugs";
|
|
3972
|
+
AmmoType22[AmmoType22["Trap"] = 6] = "Trap";
|
|
3973
|
+
AmmoType22[AmmoType22["Tesla"] = 7] = "Tesla";
|
|
3974
|
+
AmmoType22[AmmoType22["MagSlugs"] = 8] = "MagSlugs";
|
|
3975
|
+
AmmoType22[AmmoType22["Flechettes"] = 9] = "Flechettes";
|
|
3976
|
+
AmmoType22[AmmoType22["Prox"] = 10] = "Prox";
|
|
3977
|
+
AmmoType22[AmmoType22["Nuke"] = 11] = "Nuke";
|
|
3978
|
+
AmmoType22[AmmoType22["Rounds"] = 12] = "Rounds";
|
|
3979
|
+
return AmmoType22;
|
|
3980
|
+
})(AmmoType2 || {});
|
|
3981
|
+
var AMMO_TYPE_COUNT2 = Object.keys(AmmoType2).length / 2;
|
|
3948
3982
|
|
|
3949
3983
|
// src/prediction.ts
|
|
3950
3984
|
var DEFAULTS = {
|
|
@@ -4707,7 +4741,7 @@ var SubtitleSystem = class {
|
|
|
4707
4741
|
|
|
4708
4742
|
// src/demo/itemMapping.ts
|
|
4709
4743
|
import { WeaponId, PowerupId as PowerupId2, KeyId } from "@quake2ts/game";
|
|
4710
|
-
import { AmmoType } from "@quake2ts/game";
|
|
4744
|
+
import { AmmoType as AmmoType3 } from "@quake2ts/game";
|
|
4711
4745
|
import { ArmorType } from "@quake2ts/game";
|
|
4712
4746
|
var DEMO_ITEM_MAPPING = [
|
|
4713
4747
|
{ type: "null" },
|
|
@@ -4744,11 +4778,11 @@ var DEMO_ITEM_MAPPING = [
|
|
|
4744
4778
|
{ type: "weapon", id: WeaponId.Chaingun },
|
|
4745
4779
|
// IT_WEAPON_CHAINGUN
|
|
4746
4780
|
// Ammo
|
|
4747
|
-
{ type: "ammo", id:
|
|
4781
|
+
{ type: "ammo", id: AmmoType3.Grenades },
|
|
4748
4782
|
// IT_AMMO_GRENADES
|
|
4749
|
-
{ type: "ammo", id:
|
|
4783
|
+
{ type: "ammo", id: AmmoType3.Trap },
|
|
4750
4784
|
// IT_AMMO_TRAP
|
|
4751
|
-
{ type: "ammo", id:
|
|
4785
|
+
{ type: "ammo", id: AmmoType3.Tesla },
|
|
4752
4786
|
// IT_AMMO_TESLA
|
|
4753
4787
|
// Weapons cont.
|
|
4754
4788
|
{ type: "weapon", id: WeaponId.GrenadeLauncher },
|
|
@@ -4772,25 +4806,25 @@ var DEMO_ITEM_MAPPING = [
|
|
|
4772
4806
|
{ type: "weapon", id: WeaponId.Disruptor },
|
|
4773
4807
|
// IT_WEAPON_DISRUPTOR
|
|
4774
4808
|
// Ammo
|
|
4775
|
-
{ type: "ammo", id:
|
|
4809
|
+
{ type: "ammo", id: AmmoType3.Shells },
|
|
4776
4810
|
// IT_AMMO_SHELLS
|
|
4777
|
-
{ type: "ammo", id:
|
|
4811
|
+
{ type: "ammo", id: AmmoType3.Bullets },
|
|
4778
4812
|
// IT_AMMO_BULLETS
|
|
4779
|
-
{ type: "ammo", id:
|
|
4813
|
+
{ type: "ammo", id: AmmoType3.Cells },
|
|
4780
4814
|
// IT_AMMO_CELLS
|
|
4781
|
-
{ type: "ammo", id:
|
|
4815
|
+
{ type: "ammo", id: AmmoType3.Rockets },
|
|
4782
4816
|
// IT_AMMO_ROCKETS
|
|
4783
|
-
{ type: "ammo", id:
|
|
4817
|
+
{ type: "ammo", id: AmmoType3.Slugs },
|
|
4784
4818
|
// IT_AMMO_SLUGS
|
|
4785
|
-
{ type: "ammo", id:
|
|
4819
|
+
{ type: "ammo", id: AmmoType3.MagSlugs },
|
|
4786
4820
|
// IT_AMMO_MAGSLUG
|
|
4787
|
-
{ type: "ammo", id:
|
|
4821
|
+
{ type: "ammo", id: AmmoType3.Flechettes },
|
|
4788
4822
|
// IT_AMMO_FLECHETTES
|
|
4789
|
-
{ type: "ammo", id:
|
|
4823
|
+
{ type: "ammo", id: AmmoType3.Prox },
|
|
4790
4824
|
// IT_AMMO_PROX
|
|
4791
|
-
{ type: "ammo", id:
|
|
4825
|
+
{ type: "ammo", id: AmmoType3.Nuke },
|
|
4792
4826
|
// IT_AMMO_NUKE
|
|
4793
|
-
{ type: "ammo", id:
|
|
4827
|
+
{ type: "ammo", id: AmmoType3.Rounds },
|
|
4794
4828
|
// IT_AMMO_ROUNDS
|
|
4795
4829
|
// Items / Powerups
|
|
4796
4830
|
{ type: "powerup", id: PowerupId2.QuadDamage },
|