From 6492b151554d8512712cd51ff1f31eabeef62540 Mon Sep 17 00:00:00 2001 From: Till Schreiber Date: Thu, 14 Nov 2024 15:11:12 +0100 Subject: [PATCH] ALTV-502 - Add DamageType --- server/src/bindings/Main.cpp | 1 + shared/deps/cpp-sdk | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/bindings/Main.cpp b/server/src/bindings/Main.cpp index fd23028e..5d66483d 100644 --- a/server/src/bindings/Main.cpp +++ b/server/src/bindings/Main.cpp @@ -584,6 +584,7 @@ static void GetWeaponModelByHash(const v8::FunctionCallbackInfo& info infoObj->Set(ctx, V8Helpers::JSValue("skillAbove50MaxAmmoMp"), V8Helpers::JSValue(modelInfo.skillAbove50MaxAmmoMp)); infoObj->Set(ctx, V8Helpers::JSValue("maxSkillMaxAmmoMp"), V8Helpers::JSValue(modelInfo.maxSkillMaxAmmoMp)); infoObj->Set(ctx, V8Helpers::JSValue("bonusMaxAmmoMp"), V8Helpers::JSValue(modelInfo.bonusMaxAmmoMp)); + infoObj->Set(ctx, V8Helpers::JSValue("damageType"), V8Helpers::JSValue(modelInfo.damageType)); V8_RETURN(infoObj); } diff --git a/shared/deps/cpp-sdk b/shared/deps/cpp-sdk index 1c7ace86..e2966f42 160000 --- a/shared/deps/cpp-sdk +++ b/shared/deps/cpp-sdk @@ -1 +1 @@ -Subproject commit 1c7ace86d575b156f098ba5f0ca01128536502c5 +Subproject commit e2966f42c4509f6a6836c18b9766c26ef23a87af