From 2706f2967e975f03b680b8cda79ef94c99ebefac Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 17 Jan 2022 07:43:15 -0600 Subject: [PATCH] Fix initial weapon damage state not being set --- scripts/server/class.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/server/class.js b/scripts/server/class.js index f91f23e8..4aab189e 100644 --- a/scripts/server/class.js +++ b/scripts/server/class.js @@ -252,6 +252,7 @@ class ClientData { this.keyBinds = []; this.connectionId = 0; this.incomingDamageMultiplier = 1; + this.weaponDamageEvent = VRR_WEAPON_DAMAGE_EVENT_NORMAL; this.currentAnimation = -1; this.currentAnimationPositionOffset = false; @@ -261,6 +262,8 @@ class ClientData { this.passwordResetState = VRR_RESETPASS_STATE_NONE; this.passwordResetCode = ""; + + this.lastJobVehicle = null; } }; @@ -428,7 +431,6 @@ class SubAccountData { this.clanTitle = 0; this.isWorking = false; this.jobUniform = this.skin; - this.lastJobVehicle = null; this.job = 0; this.jobRank = 0; this.weapons = [];