quake2ts 0.0.176 → 0.0.178
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 +2 -2
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/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 +9 -0
- package/packages/game/dist/cjs/index.cjs.map +1 -1
- package/packages/game/dist/esm/index.js +9 -0
- package/packages/game/dist/esm/index.js.map +1 -1
- package/packages/game/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/game/dist/types/entities/player.d.ts.map +1 -1
- package/packages/game/dist/types/inventory/playerInventory.d.ts +1 -0
- package/packages/game/dist/types/inventory/playerInventory.d.ts.map +1 -1
|
@@ -12538,6 +12538,15 @@ function player_die(self, inflictor, attacker, damage, point, mod, sys) {
|
|
|
12538
12538
|
function player_think(self, sys) {
|
|
12539
12539
|
if (!self.client) return;
|
|
12540
12540
|
const nowMs = sys.timeSeconds * 1e3;
|
|
12541
|
+
const quadTime = self.client.quad_time || 0;
|
|
12542
|
+
const doubleTime = self.client.double_time || 0;
|
|
12543
|
+
const soundTime = self.client.quadsound_time || 0;
|
|
12544
|
+
if (quadTime > sys.timeSeconds || doubleTime > sys.timeSeconds) {
|
|
12545
|
+
if (soundTime < sys.timeSeconds) {
|
|
12546
|
+
self.client.quadsound_time = sys.timeSeconds + 1;
|
|
12547
|
+
sys.sound(self, 2, "items/damage3.wav", 1, 1, 0);
|
|
12548
|
+
}
|
|
12549
|
+
}
|
|
12541
12550
|
for (const [id, expiresAt] of self.client.inventory.powerups.entries()) {
|
|
12542
12551
|
if (expiresAt === null) continue;
|
|
12543
12552
|
const remaining = (expiresAt - nowMs) / 1e3;
|