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~0
z2NGus^EyQ94QS38MVy%`*7bVM^S%vJzr(M8Uw7V3JQ5ECf
ze_))v@ODe(v9SqCP6qyTDhhw;Fcv`?=-pS>0m&>%gY+DeXjCtr<-LW^)s{>X1TP97
zz4V*Mzp3|(+>OHZ2rfhio;oJkzPDvs0PmkIcUlzJRZJ?S67G0Du@gp&!gAB|0^Loq
z)VktoyZQj|6OWOW{Un#KOj5p3CM9#zM0>QP!&R&?;yQ#HLc<*L)Z2TWt_8C$=(-NY
zNFcSBI)?Sr2e(R$^q%=X^6g>)NFRRLLYko12#L~V3T~22e?c&OD9a5*J5nA>-iATh
ztzMeyW0Vf;Mdai|bYW=pQMfD<&~Zj$qX7BCFvnmMX!}P1tL0kKWokZ4OpXq9hBAgJ
zy0$aOQ6;M}@~`@?_as+IU$}Jk#VdF_5RwnoJ4)Epb+P8hD12@}AFVyY;v9@KUauAokkT1tPgcEdB1y7dgB*rYf`Z}&
zNIw?Sq21|{Lb#LAe-!$h|MGyFSkvE${NtQtsv40c1KGvK1Km0(L!(qNd{e6zB_*By
z^7+3o#6}RXOeg+>dg`h}W(gW8Hgh6`V2YZ8w8;rY5`8Z}n(;4K`P&j~6+hEeI0QWKcu|@cl|5CRdGdX8&vc{Du+B
k5ayNa-eED)22%niWJDIh0H`EI9T<)RFya3z=D*GRKYk%v9RL6T
literal 0
HcmV?d00001
From 57b9fe41cc2ea6526a4bba8f2b26092a9068e022 Mon Sep 17 00:00:00 2001
From: pap-24 <71824952+pap-24@users.noreply.github.com>
Date: Fri, 31 May 2024 14:43:50 +0300
Subject: [PATCH 11/16] Fixed
---
client/src/scripts/game.ts | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/client/src/scripts/game.ts b/client/src/scripts/game.ts
index b9b1543f3..526b653f9 100644
--- a/client/src/scripts/game.ts
+++ b/client/src/scripts/game.ts
@@ -139,7 +139,7 @@ export class Game {
this.console.readFromLocalStorage();
this.inputManager.setupInputs();
- const initPixi = async (): Promise => {
+ const initPixi = async(): Promise => {
const renderMode = this.console.getBuiltInCVar("cv_renderer");
const renderRes = this.console.getBuiltInCVar("cv_renderer_res");
@@ -166,7 +166,7 @@ export class Game {
await loadTextures(
this.pixi.renderer,
this.console.getBuiltInCVar("cv_high_res_textures") &&
- (!this.inputManager.isMobile || this.console.getBuiltInCVar("mb_high_res_textures"))
+ (!this.inputManager.isMobile || this.console.getBuiltInCVar("mb_high_res_textures"))
);
// @HACK: the game ui covers the canvas
@@ -823,14 +823,14 @@ export class Game {
(
(object instanceof Loot &&
- // Only pick up melees if no melee is equipped
- (type !== ItemType.Melee || this.uiManager.inventory.weapons?.[2]?.definition.idString === "fists") &&
+ // Only pick up melees if no melee is equipped
+ (type !== ItemType.Melee || this.uiManager.inventory.weapons?.[2]?.definition.idString === "fists") &&
- // Only pick up guns if there's a free slot
- (type !== ItemType.Gun || (!this.uiManager.inventory.weapons?.[0] || !this.uiManager.inventory.weapons?.[1])) &&
+ // Only pick up guns if there's a free slot
+ (type !== ItemType.Gun || (!this.uiManager.inventory.weapons?.[0] || !this.uiManager.inventory.weapons?.[1])) &&
- // Don't pick up skins
- type !== ItemType.Skin) ||
+ // Don't pick up skins
+ type !== ItemType.Skin) ||
// Auto-pickup dual gun
(type === ItemType.Gun && this.uiManager.inventory.weapons?.some(weapon => weapon?.definition.itemType === ItemType.Gun && weapon.definition.isDual))
From a789b96cfeb2ab0695abeac58630e0f8baaffedb Mon Sep 17 00:00:00 2001
From: pap-24 <71824952+pap-24@users.noreply.github.com>
Date: Fri, 31 May 2024 14:46:07 +0300
Subject: [PATCH 12/16] Added definition for join_notification
---
client/src/scripts/managers/soundManager.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/client/src/scripts/managers/soundManager.ts b/client/src/scripts/managers/soundManager.ts
index 32bf3f922..8659a7fa1 100644
--- a/client/src/scripts/managers/soundManager.ts
+++ b/client/src/scripts/managers/soundManager.ts
@@ -198,7 +198,9 @@ export class SoundManager {
puzzle_error: "audio/sfx/puzzle_error",
puzzle_solved: "audio/sfx/puzzle_solved",
- bleed: "audio/sfx/bleed"
+ bleed: "audio/sfx/bleed",
+
+ join_notification: "audio/sfx/join_notification"
};
for (const material of Materials) {
From cfe2e8efd23324214a8b31d8d920bd2aaefd8c83 Mon Sep 17 00:00:00 2001
From: pap-24 <71824952+pap-24@users.noreply.github.com>
Date: Sat, 1 Jun 2024 17:21:04 +0300
Subject: [PATCH 13/16] Darker/dimmed backdrop on teams menu (#321)
* Bug fix on inputManager.ts (keyboard events)
Added some extra conditions to ensure that the key value reading is correct regardless of user's keyboard language. With the use of event.code.
* Update inputManager.ts
* Bug fix on inputManager.ts (keyboard events)
Added some extra code to the getKeyFromInputEvent function so keyboard events are read correctly and regardless of user's keyboard language.
* Update inputManager.ts
* Added halloween light and dark pumpkin svgs
* Wrong branch lol
* Wrong branch lol
* Team menu now has blurry backdrop and blocks interaction
* Changed blurring to brightness (darker).
* Fixed the little lag with the backdrop filter change
---------
Co-authored-by: papas24 <71824952+papas24@users.noreply.github.com>
---
client/src/scripts/ui.ts | 47 +++++++++++++++++++++++++++++-----------
1 file changed, 34 insertions(+), 13 deletions(-)
diff --git a/client/src/scripts/ui.ts b/client/src/scripts/ui.ts
index ab7df4877..ce720f46e 100644
--- a/client/src/scripts/ui.ts
+++ b/client/src/scripts/ui.ts
@@ -207,7 +207,7 @@ export async function setUpUI(game: Game): Promise {
updateServerSelectors();
// eslint-disable-next-line @typescript-eslint/no-misused-promises
- serverList.children("li.server-list-item").on("click", async function(this: HTMLLIElement) {
+ serverList.children("li.server-list-item").on("click", async function (this: HTMLLIElement) {
const region = this.getAttribute("data-region");
if (region === null) return;
@@ -312,7 +312,7 @@ export async function setUpUI(game: Game): Promise {
});
const createTeamMenu = $("#create-team-menu");
- $("#btn-create-team, #btn-join-team").on("click", function() {
+ $("#btn-create-team, #btn-join-team").on("click", function () {
const now = Date.now();
if (now - lastPlayButtonClickTime < 1500 || teamSocket) return;
lastPlayButtonClickTime = now;
@@ -438,6 +438,13 @@ export async function setUpUI(game: Game): Promise {
$("#splash-server-message").show();
resetPlayButtons();
createTeamMenu.fadeOut(250);
+
+ // ---------------------------------------------------------
+ // Dimmed backdrop on team menu. (Probably not needed here)
+ // ---------------------------------------------------------
+ $("#splash-ui").css("filter", "");
+ $("#splash-ui").css("pointer-events", "");
+ // ---------------------------------------------------------
};
teamSocket.onclose = (): void => {
@@ -457,9 +464,23 @@ export async function setUpUI(game: Game): Promise {
joinedTeam = false;
window.location.hash = "";
createTeamMenu.fadeOut(250);
+
+ // ----------------------------------------------
+ // Dimmed Backdrop on team menu.
+ // ----------------------------------------------
+ $("#splash-ui").css("filter", "");
+ $("#splash-ui").css("pointer-events", "");
+ // ----------------------------------------------
};
createTeamMenu.fadeIn(250);
+
+ // ----------------------------------------------
+ // Dimmed Backdrop on team menu.
+ // ----------------------------------------------
+ $("#splash-ui").css("filter", "brightness(0.6)");
+ $("#splash-ui").css("pointer-events", "none");
+ // ----------------------------------------------
});
$("#close-create-team").on("click", () => {
@@ -500,7 +521,7 @@ export async function setUpUI(game: Game): Promise {
.css("color", "#FFFFFF00");
});
- $("#create-team-toggle-auto-fill").on("click", function() {
+ $("#create-team-toggle-auto-fill").on("click", function () {
autoFill = $(this).prop("checked");
teamSocket?.send(JSON.stringify({
type: CustomTeamMessages.Settings,
@@ -508,7 +529,7 @@ export async function setUpUI(game: Game): Promise {
}));
});
- $("#create-team-toggle-lock").on("click", function() {
+ $("#create-team-toggle-lock").on("click", function () {
teamSocket?.send(JSON.stringify({
type: CustomTeamMessages.Settings,
locked: $(this).prop("checked")
@@ -664,7 +685,7 @@ export async function setUpUI(game: Game): Promise {
void game.endGame();
});
// eslint-disable-next-line @typescript-eslint/no-misused-promises
- $("#btn-play-again, #btn-spectate-replay").on("click", async() => {
+ $("#btn-play-again, #btn-spectate-replay").on("click", async () => {
await game.endGame();
if (teamSocket) teamSocket.send(JSON.stringify({ type: CustomTeamMessages.Start })); // TODO Check if player is team leader
else joinGame();
@@ -775,7 +796,7 @@ Video evidence is required.`)) {
${skin.name}
`);
- skinItem.on("click", function() {
+ skinItem.on("click", function () {
game.console.setBuiltInCVar("cv_loadout_skin", skin.idString);
$(this).addClass("selected").siblings().removeClass("selected");
updateSplashCustomize(skin.idString);
@@ -801,7 +822,7 @@ Video evidence is required.`)) {
${emote.name}
`);
- emoteItem.on("click", function() {
+ emoteItem.on("click", function () {
if (selectedEmoteSlot === undefined) return;
game.console.setBuiltInCVar(`cv_loadout_${selectedEmoteSlot}_emote`, emote.idString);
@@ -903,7 +924,7 @@ Video evidence is required.`)) {
"background-repeat": "no-repeat"
});
- crosshairItem.on("click", function() {
+ crosshairItem.on("click", function () {
game.console.setBuiltInCVar("cv_loadout_crosshair", crosshairIndex);
loadCrosshair();
$(this).addClass("selected").siblings().removeClass("selected");
@@ -954,7 +975,7 @@ Video evidence is required.`)) {
`
);
- noBadgeItem.on("click", function() {
+ noBadgeItem.on("click", function () {
game.console.setBuiltInCVar("cv_loadout_badge", "");
$(this).addClass("selected").siblings().removeClass("selected");
});
@@ -971,7 +992,7 @@ Video evidence is required.`)) {
`
);
- badgeItem.on("click", function() {
+ badgeItem.on("click", function () {
game.console.setBuiltInCVar("cv_loadout_badge", badge.idString);
$(this).addClass("selected").siblings().removeClass("selected");
});
@@ -1182,7 +1203,7 @@ Video evidence is required.`)) {
});
renderSelect.value = game.console.getBuiltInCVar("cv_renderer");
- void (async() => {
+ void (async () => {
$("#webgpu-option").toggle(await isWebGPUSupported());
})();
@@ -1549,7 +1570,7 @@ Video evidence is required.`)) {
$("#btn-toggle-ping")
.show()
- .on("click", function() {
+ .on("click", function () {
game.inputManager.pingWheelActive = !game.inputManager.pingWheelActive;
const { pingWheelActive } = game.inputManager;
$(this)
@@ -1609,7 +1630,7 @@ Video evidence is required.`)) {
tabContent.show();
});
- $("#warning-modal-agree-checkbox").on("click", function() {
+ $("#warning-modal-agree-checkbox").on("click", function () {
$("#warning-btn-play-solo, #btn-play-solo").toggleClass("btn-disabled", !$(this).prop("checked"));
});
From 020fc13eaa875161eec2eacad59ce29951281c4b Mon Sep 17 00:00:00 2001
From: pap-24 <71824952+pap-24@users.noreply.github.com>
Date: Sat, 1 Jun 2024 17:35:37 +0300
Subject: [PATCH 14/16] Small kill feed bug fix (minimap.ts) (#308)
* Bug fix on inputManager.ts (keyboard events)
Added some extra conditions to ensure that the key value reading is correct regardless of user's keyboard language. With the use of event.code.
* Update inputManager.ts
* Bug fix on inputManager.ts (keyboard events)
Added some extra code to the getKeyFromInputEvent function so keyboard events are read correctly and regardless of user's keyboard language.
* Update inputManager.ts
* Added halloween light and dark pumpkin svgs
* Wrong branch lol
* Wrong branch lol
* Bug Fix: Kill feed acting weird while the "big" map is opened.
* Update minimap.ts
---------
Co-authored-by: papas24 <71824952+papas24@users.noreply.github.com>
Co-authored-by: Henry Sanger
---
client/src/scripts/rendering/minimap.ts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/client/src/scripts/rendering/minimap.ts b/client/src/scripts/rendering/minimap.ts
index 4e628db2c..0757ec194 100644
--- a/client/src/scripts/rendering/minimap.ts
+++ b/client/src/scripts/rendering/minimap.ts
@@ -584,6 +584,8 @@ export class Minimap {
$("#btn-close-minimap").show();
$("#ui-kill-leader").hide();
$("#center-bottom-container").hide();
+ $("#kill-feed").hide();
+
$("#kill-counter").show();
this.resize();
}
@@ -594,6 +596,8 @@ export class Minimap {
$("#center-bottom-container").show();
$("#gas-msg-info").show();
$("#scopes-container").show();
+ $("#kill-feed").show();
+
if (this.game.spectating) $("#spectating-container").show();
const width = $(window).width();
if (width && width > 1200) $("#ui-kill-leader").show();
From 2c72df363c2be4bc8b8f9e598959b173b6934ff1 Mon Sep 17 00:00:00 2001
From: Jomity <60862595+J0m1ty@users.noreply.github.com>
Date: Sun, 2 Jun 2024 19:15:14 -0400
Subject: [PATCH 15/16] rename CreateNewGame to GameIsFull for clarity
---
server/src/gameManager.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/src/gameManager.ts b/server/src/gameManager.ts
index fa94943f3..0bd7db1e9 100644
--- a/server/src/gameManager.ts
+++ b/server/src/gameManager.ts
@@ -40,7 +40,7 @@ export class GameContainer {
}
break;
}
- case WorkerMessages.CreateNewGame: {
+ case WorkerMessages.GameIsFull: {
newGame();
break;
}
@@ -73,7 +73,7 @@ export enum WorkerMessages {
AllowIP,
IPAllowed,
UpdateGameData,
- CreateNewGame
+ GameIsFull
}
export type WorkerMessage =
@@ -86,7 +86,7 @@ export type WorkerMessage =
data: Partial
} |
{
- type: WorkerMessages.CreateNewGame
+ type: WorkerMessages.GameIsFull
};
export interface GameData {
From 2ad6c1f04b6cfa0714324c895202f7d8775ae090 Mon Sep 17 00:00:00 2001
From: Jomity <60862595+J0m1ty@users.noreply.github.com>
Date: Sun, 2 Jun 2024 19:16:03 -0400
Subject: [PATCH 16/16] rename CreateNewGame to GameIsFull for clarity
---
server/src/game.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/src/game.ts b/server/src/game.ts
index b23909794..6faad312f 100644
--- a/server/src/game.ts
+++ b/server/src/game.ts
@@ -751,7 +751,7 @@ export class Game {
this.gas.advanceGasStage();
this.addTimeout(() => {
- parentPort?.postMessage({ type: WorkerMessages.CreateNewGame });
+ parentPort?.postMessage({ type: WorkerMessages.GameIsFull });
Logger.log(`Game ${this.id} | Preventing new players from joining`);
this.setGameData({ allowJoin: false });
}, Config.preventJoinAfter);