quake2ts 0.0.256 → 0.0.257
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 +5 -5
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/dist/cjs/index.cjs +16 -2
- package/packages/client/dist/cjs/index.cjs.map +1 -1
- package/packages/client/dist/esm/index.js +35 -21
- package/packages/client/dist/esm/index.js.map +1 -1
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/client/dist/types/hud/icons.d.ts.map +1 -1
- package/packages/client/dist/types/hud/statusbar.d.ts.map +1 -1
- package/packages/engine/dist/browser/index.global.js.map +1 -1
- package/packages/engine/dist/cjs/index.cjs.map +1 -1
- package/packages/engine/dist/esm/index.js.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 +231 -208
- package/packages/game/dist/cjs/index.cjs.map +1 -1
- package/packages/game/dist/esm/index.js +230 -206
- package/packages/game/dist/esm/index.js.map +1 -1
- package/packages/game/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/game/dist/types/combat/weapons/firing.d.ts.map +1 -1
- package/packages/game/dist/types/combat/weapons/projectSource.d.ts +28 -0
- package/packages/game/dist/types/combat/weapons/projectSource.d.ts.map +1 -0
- package/packages/game/dist/types/combat/weapons/rogue.d.ts +4 -4
- package/packages/game/dist/types/combat/weapons/rogue.d.ts.map +1 -1
- package/packages/game/dist/types/combat/weapons/state.d.ts +6 -0
- package/packages/game/dist/types/combat/weapons/state.d.ts.map +1 -1
- package/packages/game/dist/types/entities/playerStats.d.ts.map +1 -1
- package/packages/game/dist/types/inventory/ammo.d.ts.map +1 -1
- package/packages/game/dist/types/inventory/playerInventory.d.ts +91 -38
- 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 +7 -2
- package/packages/shared/dist/cjs/index.cjs.map +1 -1
- package/packages/shared/dist/esm/index.js +7 -2
- package/packages/shared/dist/esm/index.js.map +1 -1
- package/packages/shared/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/shared/dist/types/protocol/stats.d.ts.map +1 -1
|
@@ -8573,7 +8573,16 @@ var POWERUP_STAT_MAP = {
|
|
|
8573
8573
|
"enviro_suit"
|
|
8574
8574
|
/* EnviroSuit */
|
|
8575
8575
|
]: 9,
|
|
8576
|
-
|
|
8576
|
+
[
|
|
8577
|
+
"bandolier"
|
|
8578
|
+
/* Bandolier */
|
|
8579
|
+
]: 10,
|
|
8580
|
+
// Placeholder/Map mismatch handling?
|
|
8581
|
+
[
|
|
8582
|
+
"ammo_pack"
|
|
8583
|
+
/* AmmoPack */
|
|
8584
|
+
]: 10,
|
|
8585
|
+
// Original reused indices or had gaps?
|
|
8577
8586
|
[
|
|
8578
8587
|
"ir_goggles"
|
|
8579
8588
|
/* IRGoggles */
|
|
@@ -8621,7 +8630,12 @@ var POWERUP_STAT_MAP = {
|
|
|
8621
8630
|
[
|
|
8622
8631
|
"tech_regeneration"
|
|
8623
8632
|
/* TechRegeneration */
|
|
8624
|
-
]: 22
|
|
8633
|
+
]: 22,
|
|
8634
|
+
// Add missing mappings to avoid runtime lookups failing for new types
|
|
8635
|
+
[
|
|
8636
|
+
"tag_token"
|
|
8637
|
+
/* TagToken */
|
|
8638
|
+
]: -1
|
|
8625
8639
|
};
|
|
8626
8640
|
function G_GetPowerupStat(stats, powerupId) {
|
|
8627
8641
|
let index;
|
|
@@ -9132,7 +9146,7 @@ var Cycle_Crosshair = () => {
|
|
|
9132
9146
|
};
|
|
9133
9147
|
|
|
9134
9148
|
// src/hud/icons.ts
|
|
9135
|
-
import { WEAPON_ITEMS } from "@quake2ts/game";
|
|
9149
|
+
import { WEAPON_ITEMS, KeyId } from "@quake2ts/game";
|
|
9136
9150
|
var iconPics = /* @__PURE__ */ new Map();
|
|
9137
9151
|
var ICON_NAMES = [
|
|
9138
9152
|
// Weapons
|
|
@@ -9234,7 +9248,7 @@ var Init_Hud = async (renderer, assets) => {
|
|
|
9234
9248
|
import { defaultPredictionState, interpolatePredictionState } from "@quake2ts/cgame";
|
|
9235
9249
|
|
|
9236
9250
|
// src/demo/itemMapping.ts
|
|
9237
|
-
import { WeaponId, PowerupId as PowerupId3, KeyId } from "@quake2ts/game";
|
|
9251
|
+
import { WeaponId, PowerupId as PowerupId3, KeyId as KeyId2 } from "@quake2ts/game";
|
|
9238
9252
|
import { AmmoType as AmmoType3 } from "@quake2ts/game";
|
|
9239
9253
|
import { ArmorType } from "@quake2ts/game";
|
|
9240
9254
|
var DEMO_ITEM_MAPPING = [
|
|
@@ -9360,35 +9374,35 @@ var DEMO_ITEM_MAPPING = [
|
|
|
9360
9374
|
{ type: "powerup", id: PowerupId3.TagToken },
|
|
9361
9375
|
// IT_ITEM_TAG_TOKEN
|
|
9362
9376
|
// Keys
|
|
9363
|
-
{ type: "key", id:
|
|
9377
|
+
{ type: "key", id: KeyId2.DataCD },
|
|
9364
9378
|
// IT_KEY_DATA_CD
|
|
9365
|
-
{ type: "key", id:
|
|
9379
|
+
{ type: "key", id: KeyId2.PowerCube },
|
|
9366
9380
|
// IT_KEY_POWER_CUBE
|
|
9367
|
-
{ type: "key", id:
|
|
9381
|
+
{ type: "key", id: KeyId2.ExplosiveCharges },
|
|
9368
9382
|
// IT_KEY_EXPLOSIVE_CHARGES
|
|
9369
|
-
{ type: "key", id:
|
|
9383
|
+
{ type: "key", id: KeyId2.Yellow },
|
|
9370
9384
|
// IT_KEY_YELLOW
|
|
9371
|
-
{ type: "key", id:
|
|
9385
|
+
{ type: "key", id: KeyId2.PowerCore },
|
|
9372
9386
|
// IT_KEY_POWER_CORE
|
|
9373
|
-
{ type: "key", id:
|
|
9387
|
+
{ type: "key", id: KeyId2.Pyramid },
|
|
9374
9388
|
// IT_KEY_PYRAMID
|
|
9375
|
-
{ type: "key", id:
|
|
9389
|
+
{ type: "key", id: KeyId2.DataSpinner },
|
|
9376
9390
|
// IT_KEY_DATA_SPINNER
|
|
9377
|
-
{ type: "key", id:
|
|
9391
|
+
{ type: "key", id: KeyId2.Pass },
|
|
9378
9392
|
// IT_KEY_PASS
|
|
9379
|
-
{ type: "key", id:
|
|
9393
|
+
{ type: "key", id: KeyId2.Blue },
|
|
9380
9394
|
// IT_KEY_BLUE_KEY
|
|
9381
|
-
{ type: "key", id:
|
|
9395
|
+
{ type: "key", id: KeyId2.Red },
|
|
9382
9396
|
// IT_KEY_RED_KEY
|
|
9383
|
-
{ type: "key", id:
|
|
9397
|
+
{ type: "key", id: KeyId2.Green },
|
|
9384
9398
|
// IT_KEY_GREEN_KEY
|
|
9385
|
-
{ type: "key", id:
|
|
9399
|
+
{ type: "key", id: KeyId2.CommanderHead },
|
|
9386
9400
|
// IT_KEY_COMMANDER_HEAD
|
|
9387
|
-
{ type: "key", id:
|
|
9401
|
+
{ type: "key", id: KeyId2.Airstrike },
|
|
9388
9402
|
// IT_KEY_AIRSTRIKE
|
|
9389
|
-
{ type: "key", id:
|
|
9403
|
+
{ type: "key", id: KeyId2.NukeContainer },
|
|
9390
9404
|
// IT_KEY_NUKE_CONTAINER
|
|
9391
|
-
{ type: "key", id:
|
|
9405
|
+
{ type: "key", id: KeyId2.Nuke },
|
|
9392
9406
|
// IT_KEY_NUKE
|
|
9393
9407
|
// Health
|
|
9394
9408
|
{ type: "health", id: "health_small" },
|
|
@@ -9400,9 +9414,9 @@ var DEMO_ITEM_MAPPING = [
|
|
|
9400
9414
|
{ type: "health", id: "health_mega" },
|
|
9401
9415
|
// IT_HEALTH_MEGA
|
|
9402
9416
|
// CTF
|
|
9403
|
-
{ type: "key", id:
|
|
9417
|
+
{ type: "key", id: KeyId2.RedFlag },
|
|
9404
9418
|
// IT_FLAG1
|
|
9405
|
-
{ type: "key", id:
|
|
9419
|
+
{ type: "key", id: KeyId2.BlueFlag },
|
|
9406
9420
|
// IT_FLAG2
|
|
9407
9421
|
// Tech
|
|
9408
9422
|
{ type: "powerup", id: PowerupId3.TechResistance },
|