From a47818f715b887db09f618e70c5b9894782fdfea Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Wed, 11 Feb 2026 13:12:57 +0100 Subject: [PATCH] Add magazine icon path to projectile data (#44) Add CfgMagazines picture path as field [19] in the projectile data array, enabling the web viewer to display magazine icons for grenade and smoke markers. --- addons/database/fnc_eh_fired_client.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/database/fnc_eh_fired_client.sqf b/addons/database/fnc_eh_fired_client.sqf index 2dadb38..9b05911 100644 --- a/addons/database/fnc_eh_fired_client.sqf +++ b/addons/database/fnc_eh_fired_client.sqf @@ -74,6 +74,7 @@ if (_muzzleDisplay isEqualTo "") then { // 16: hitParts [[hitOcapId, component, "x,y,z", frame], ...] // 17: sim // 18: isSub +// 19: magazineIcon private _data = [ EGVAR(recorder,captureFrameNo), // 0: firedFrame @@ -94,7 +95,8 @@ private _data = [ (velocity _projectile) joinString ",", // 15: initialVelocity [], // 16: hitParts getText(configFile >> "CfgAmmo" >> _ammo >> "simulation"), // 17: sim - false // 18: isSub + false, // 18: isSub + getText(configFile >> "CfgMagazines" >> _magazine >> "picture") // 19: magazineIcon ]; _projectile setVariable [QGVARMAIN(projectileData), _data];