 sreV                prefix z\vtx\addons\uh60_doorguns  CfgEventHandlers.hpp             ˆ¬æi   config.bin             õ¬æi±  config.cpp             ˆ¬æi²  config\cfgMagazines.hpp             ˆ¬æiå   config\cfgWeapons.hpp             ˆ¬æi�   functions\fnc_coverSwitch.sqf             ˆ¬æil  functions\fnc_fired.sqf             ˆ¬æi,  functions\fnc_perFrame.sqf             ˆ¬æiþ  functions\fnc_powerSwitch.sqf             ˆ¬æi`  functions\fnc_setKeybindText.sqf             ˆ¬æi   functions\fnc_setup.sqf             ˆ¬æi¬  functions\fnc_showHelp.sqf             ˆ¬æi  functions\fnc_shutDown.sqf             ˆ¬æiR   functions\fnc_switchSafety.sqf             ˆ¬æi  functions\script_component.hpp             ˆ¬æi=   functions\uiDefines.hpp             ˆ¬æiW  script_component.hpp             ˆ¬æië  XEH_preInit.sqf             ˆ¬æi_   XEH_PREP.hpp             ˆ¬æi£   XEH_preStart.sqf             ˆ¬æi<                        class Extended_PreStart_EventHandlers {
    class ADDON {
        init = QUOTE(call COMPILE_FILE(XEH_preStart));
    };
};

class Extended_PreInit_EventHandlers {
    class ADDON {
        init = QUOTE(call COMPILE_FILE(XEH_preInit));
    };
};
 raP       ­    CfgPatches ž    Extended_PreStart_EventHandlers |   Extended_PreInit_EventHandlers ü   cfgWeapons {   cfgMagazines Ó   cfgMods …  ­    vtx_uh60_doorguns »   |   
 name vtx - UH60_Doorguns units  weapons  requiredVersion ®@requiredAddons  vtx_UH60  author  authors    version 0.7.6.2  versionStr 0.7.6.2 versionAr              |    vtx_uh60_doorguns ™  ü    init call compile preprocessFileLineNumbers '\z\vtx\addons\uh60_doorguns\XEH_preStart.sqf' ü    vtx_uh60_doorguns   {    init call compile preprocessFileLineNumbers '\z\vtx\addons\uh60_doorguns\XEH_preInit.sqf' {   vtx_wpn_m134  vtx_wpn_m134_safe ¦  Ó  vtx_wpn_m134 magazines  vtx_uh60_safe Ó   VehicleMagazine  vtx_uh60_safe ý  …  VehicleMagazine scope     displayName SAFE  descriptionShort SAFE count    initSpeed     tracersEvery      nameSound  …    author   timepacked 1776725237 ­      #include "script_component.hpp"

class CfgPatches {
    class ADDON {
        name = COMPONENT_NAME;
        units[] = {};
        weapons[] = {};
        requiredVersion = REQUIRED_VERSION;
        requiredAddons[] = {"vtx_UH60"};
        author = "";
        authors[] = {""};
        VERSION_CONFIG;
    };
};

#include "CfgEventHandlers.hpp"

#include "config\cfgWeapons.hpp"
#include "config\cfgMagazines.hpp"
class cfgMagazines {
    class VehicleMagazine;
	class vtx_uh60_safe: VehicleMagazine
	{
		scope=2;
		displayName="SAFE";
		descriptionShort="SAFE";
		count=1;
		initSpeed=0;
		tracersEvery=0;
		nameSound="";
	};
};
class cfgWeapons {
    class vtx_wpn_m134;
    class vtx_wpn_m134_safe: vtx_wpn_m134 {
        magazines[] = {"vtx_uh60_safe"};
    };
};
params ["_vehicle", "_up", "_side"];
if (_up) then {
    _vehicle animateSource ["Switch_minigun_safe_cover_" + _side, 1, true];
} else {
    _vehicle animateSource ["Switch_minigun_safe_cover_" + _side, 0, true];
    _vehicle animateSource ["Switch_minigun_safe_" + _side, 0, true];
    [_vehicle, _side, true] call vtx_uh60_doorguns_fnc_switchSafety;
};
params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"];
if (player != _gunner) exitWith {};

vtx_m134_ppEffectIntensity = vtx_m134_ppEffectIntensity + 1;
if (cba_missionTime - vtx_m134_lastFired    > 0.1) then {
    private _blur = ppEffectCreate ["DynamicBlur", 401];
    vtx_m134_ppEffects = [_blur];
    (vtx_m134_ppEffects # 0) ppEffectEnable true;
    vtx_m134_lastFired = cba_missionTime;
    [] spawn {
        waitUntil {
            (cba_missionTime - vtx_m134_lastFired    > 0.1);
        };
        (vtx_m134_ppEffects # 0) ppEffectAdjust [0];
        (vtx_m134_ppEffects # 0) ppEffectCommit 0.5;
        sleep 0.5;
        ppEffectDestroy vtx_m134_ppEffects;
        vtx_m134_ppEffectIntensity = 0;
        vtx_m134_ppEffects = [];
        resetCamShake;
    };
};
vtx_m134_lastFired = cba_missionTime;
private _modifier = (vtx_m134_ppEffectIntensity / 100) min 100;
(vtx_m134_ppEffects # 0) ppEffectAdjust [_modifier];
(vtx_m134_ppEffects # 0) ppEffectCommit 0;
addCamShake [1, 1, 100];
params ["_vehicle"];

#define HELP_LABEL(MEMPOINT,LABEL) drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\selected_ca.paa",[0,1,0,1],_vehicle modelToWorldVisual (_vehicle selectionPosition MEMPOINT),1,1,0,LABEL,2,0.045,"RobotoCondensed","center",true];
#define HELP_LABEL_COND(MEMPOINT,LABEL,COND) drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\selected_ca.paa",(if(COND)then{[0,1,0,1]}else{[1,0,0,1]}),_vehicle modelToWorldVisual (_vehicle selectionPosition MEMPOINT),1,1,0,LABEL,2,0.045,"RobotoCondensed","center",true];

if (vtx_uh60_ui_helpEnabled) then {
    private _turretIndex = [player] call ace_common_fnc_getTurretIndex;
    if (_turretIndex # 0 == 1) then {
        drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\selected_ca.paa",[1,1,1,1],(_vehicle modelToWorldVisual [-0.8,3.8,-1]),1,1,0,"Ammo Count Check",2,0.045,"RobotoCondensed","right",true];
        HELP_LABEL_COND("b_minigun_safe_cover_l","Safety cover",(_vehicle animationPhase "Switch_minigun_safe_cover_l" > 0.5))
        if (_vehicle animationPhase "Switch_minigun_safe_cover_l" > 0.5) then {
            HELP_LABEL_COND("b_minigun_safe_l","Power switch",(_vehicle animationPhase "Switch_minigun_safe_l" > 0.5))
        };
    };
    if (_turretIndex # 0 == 2) then {
        drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\selected_ca.paa",[1,1,1,1],(_vehicle modelToWorldVisual [0.8,3.8,-1]),1,1,0,"Ammo Count Check",2,0.045,"RobotoCondensed","right",true];
        HELP_LABEL_COND("b_minigun_safe_cover_r","Safety cover",(_vehicle animationPhase "Switch_minigun_safe_cover_r" > 0.5))
        if (_vehicle animationPhase "Switch_minigun_safe_cover_r" > 0.5) then {
            HELP_LABEL_COND("b_minigun_safe_r","Power switch",(_vehicle animationPhase "Switch_minigun_safe_r" > 0.5))
        };
    };
};
params ["_vehicle", "_on", "_side"];
if (_on) then {
    _vehicle animateSource ["Switch_minigun_safe_" + _side, 1, true];
    [_vehicle, _side, false] call vtx_uh60_doorguns_fnc_switchSafety;
} else {
    _vehicle animateSource ["Switch_minigun_safe_" + _side, 0, true];
    [_vehicle, _side, true] call vtx_uh60_doorguns_fnc_switchSafety;
};

/*
 * vtx_uh60_doorguns_fnc_setup
 */

params ["_vehicle"];

vtx_m134_lastFired = cba_missionTime;
vtx_m134_ppEffects = [];
vtx_m134_ppEffectIntensity = 0;
vtx_m134_firedEh = _vehicle addeventhandler ["fired", {_this call vtx_uh60_doorguns_fnc_fired;}];

private _turret = _vehicle unitTurret player;
private _weapon = if (_turret # 0 == 1) then [{"vtx_wpn_m134"}, {"vtx_wpn_m134_2nd"}];
private _animSide = if (_turret # 0 == 1) then [{"Switch_minigun_safe_l"}, {"Switch_minigun_safe_r"}];
if (_vehicle animationPhase _animSide == 0) then {
    _vehicle removeWeaponTurret [_weapon, _turret];
    _vehicle addWeaponTurret ["vtx_wpn_m134_safe", _turret];
};

true
/*
 * vtx_uh60_doorguns_fnc_showHelp
 *
 * toggles the help display for the ui module
 *
 * params (array)[(object) vehicle, (bool) show]
 */

#include "uiDefines.hpp"

params ["_vehicle", "_show"];

CTRL(4001121) ctrlShow (_show);
HELPCTRL(4) ctrlShow (false);
HELPCTRL(5) ctrlShow (false);
HELPCTRL(6) ctrlShow (false);
HELPCTRL(7) ctrlShow (false);
HELPCTRL(8) ctrlShow (false);
HELPCTRL(9) ctrlShow (false);
HELPCTRL(10) ctrlShow (false);
HELPCTRL(11) ctrlShow (false);
HELPCTRL(12) ctrlShow (false);
params ["_vehicle"];

_vehicle removeEventHandler ["fired", vtx_m134_firedEh];
params ["_vehicle", "_side", "_on"];
private _weapon = if (_side == "l") then [{"vtx_wpn_m134"}, {"vtx_wpn_m134_2nd"}];
private _turret = if (_side == "l") then [{[1]}, {[2]}];
if (_on) then {
    _vehicle removeWeaponTurret [_weapon, _turret];
    _vehicle addWeaponTurret ["vtx_wpn_m134_safe", _turret];
} else {
    _vehicle addWeaponTurret [_weapon, _turret];
    _vehicle removeWeaponTurret ["vtx_wpn_m134_safe", _turret];
    _vehicle loadMagazine [_turret, _weapon, "vtx_2000Rnd_65x39_Belt_Tracer_Red"];
};
#include "\z\vtx\addons\uh60_doorguns\script_component.hpp"
#define HUD (uiNamespace getVariable ["vtx_uh60_ui_hud", nil])
#define CTRL(IDC) (HUD displayCtrl IDC)
#define HELPCTRL(IDC) (CTRL(4001121) controlsGroupCtrl IDC)
#define HELP (HUD displayCtrl 4001121)
#define SETTEXT(IDC,TXT) CTRL(IDC) ctrlSetText TXT
#define SETTEXTGRP(CONTROL,IDC,TXT) (CONTROL controlsGroupCtrl IDC) ctrlSetText TXT
#define COMPONENT uh60_doorguns
#define COMPONENT_BEAUTIFIED UH60_Doorguns
#include "\z\vtx\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define CBA_DEBUG_SYNCHRONOUS
// #define ENABLE_PERFORMANCE_COUNTERS

#ifdef DEBUG_ENABLED_UH60_DOORGUNS
    #define DEBUG_MODE_FULL
#endif

#ifdef DEBUG_SETTINGS_UH60_DOORGUNS
    #define DEBUG_SETTINGS DEBUG_SETTINGS_UH60_DOORGUNS
#endif

#include "\z\vtx\addons\main\script_macros.hpp"
#include "script_component.hpp"

ADDON = false;

#include "XEH_PREP.hpp"

ADDON = true;
PREP(coverSwitch);
PREP(fired);
PREP(perFrame);
PREP(powerSwitch);
PREP(setKeybindText);
PREP(setup);
PREP(showHelp);
PREP(shutDown);
PREP(switchSafety);
#include "script_component.hpp"

#include "XEH_PREP.hpp"
 (; QAgß_?2²ù–Û5À©�