From ebc1f6c65719e0b3a8af1a36d1575a3370b606e4 Mon Sep 17 00:00:00 2001 From: Sotirios Pupakis Date: Sun, 28 Apr 2024 09:57:57 +0200 Subject: [PATCH] casing drop sound, moved to bluefor, fixed not showing "load" text --- addons/m119/functions/fnc_eject.sqf | 2 ++ addons/m119/tbd_m119/CfgVehicles.hpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/m119/functions/fnc_eject.sqf b/addons/m119/functions/fnc_eject.sqf index 783f140..9dd3e9d 100644 --- a/addons/m119/functions/fnc_eject.sqf +++ b/addons/m119/functions/fnc_eject.sqf @@ -28,6 +28,7 @@ params ["_arty"]; // tbd_mortars_105mm_casing_spent private _spawnPoint = _arty modelToWorldVisual (_arty selectionPosition ["casing_spawn", "Memory"]); +private _soundPos = _arty modelToWorldVisual (_arty selectionPosition ["casing_hit", "Memory"]); private _dirAndUp = _arty selectionVectorDirAndUp ["casing_spawn", "Memory"]; _dirAndUp set [0, _arty vectorModelToWorld _dirAndUp#0]; @@ -41,3 +42,4 @@ _casing allowDamage false; // Add vertical force to the magazine [{params ["_casing"]; _casing addForce [_casing vectorModelToWorld [0, -100, 0], [0, 0, 0]];}, [_casing]] call CBA_fnc_execNextFrame; +playsound3D [QPATHTOF(TBD_M119\sounds\casing_drop.ogg), _casing, false, _soundPos , 5, 1, 30, 0.5]; diff --git a/addons/m119/tbd_m119/CfgVehicles.hpp b/addons/m119/tbd_m119/CfgVehicles.hpp index 35bafff..ad1e24c 100644 --- a/addons/m119/tbd_m119/CfgVehicles.hpp +++ b/addons/m119/tbd_m119/CfgVehicles.hpp @@ -27,8 +27,8 @@ class CfgVehicles { model = QPATHTOF(TBD_M119\TBD_M119); editorPreview = QPATHTOF(TBD_M119\data\preview.jpg); picture = QPATHTOF(TBD_M119\data\M119_icon.paa); - side = 0; - faction = "BLU_G_F"; + side = 1; + faction = "BLU_T_F"; crew = "B_Soldier_F"; slingLoadCargoMemoryPoints[] = {"sling_point_1", "sling_point_2", "towing_point"}; @@ -295,7 +295,7 @@ class CfgVehicles { }; class TBD_Load { - isplayName = CSTRING(load); + displayName = CSTRING(load); distance = 1.5; showDisabled=0; exceptions[]={};