mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ac9044f2d6
* open medical menu from Zeus * fix function header * Zeus can use every action, add room for more buttons in medical menu * Update addons/medical_treatment/functions/fnc_treatment.sqf * Added zeus treatment time coeff * Update addons/medical_gui/functions/fnc_canOpenMenu.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com> * Update fnc_canOpenMenu.sqf * Update initSettings.sqf * Update fnc_moduleMedicalMenu.sqf * Added check + documentation * Update fnc_canTreat.sqf --------- Authored-by: Brett <brett@mayson.io> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
121 lines
3.3 KiB
C++
121 lines
3.3 KiB
C++
#include "script_component.hpp"
|
|
|
|
class CfgPatches {
|
|
class ADDON {
|
|
name = COMPONENT_NAME;
|
|
units[] = {
|
|
QGVAR(moduleConfigurePylons),
|
|
QGVAR(moduleDefendArea),
|
|
QGVAR(moduleEditableObjects),
|
|
QGVAR(moduleGlobalSetSkill),
|
|
QGVAR(moduleGroupSide),
|
|
QGVAR(moduleLoadIntoCargo),
|
|
QGVAR(modulePatrolArea),
|
|
QGVAR(moduleSearchArea),
|
|
QGVAR(moduleSearchNearby),
|
|
QGVAR(moduleGarrison),
|
|
QGVAR(moduleUnGarrison),
|
|
QGVAR(moduleTeleportPlayers),
|
|
QGVAR(moduleToggleNvg),
|
|
QGVAR(moduleToggleFlashlight),
|
|
QGVAR(moduleSimulation),
|
|
QGVAR(moduleSuppressiveFire),
|
|
QGVAR(AddFullArsenal),
|
|
QGVAR(RemoveFullArsenal),
|
|
QGVAR(moduleTeleportPlayers),
|
|
QGVAR(moduleHeal),
|
|
QGVAR(moduleSuicideBomber),
|
|
QGVAR(AddFullAceArsenal),
|
|
QGVAR(RemoveFullAceArsenal)
|
|
};
|
|
weapons[] = {};
|
|
requiredVersion = REQUIRED_VERSION;
|
|
requiredAddons[] = {"ace_common", "ace_ai"};
|
|
author = ECSTRING(common,ACETeam);
|
|
authors[] = {"kymckay", "mharis001"};
|
|
url = ECSTRING(main,URL);
|
|
VERSION_CONFIG;
|
|
};
|
|
|
|
// Use additional CfgPatches to contextually remove modules from zeus
|
|
class GVAR(captives): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleCaptive),
|
|
QGVAR(moduleSurrender)
|
|
};
|
|
};
|
|
class GVAR(medical): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleUnconscious),
|
|
QGVAR(moduleSetMedic),
|
|
QGVAR(moduleSetMedicalVehicle),
|
|
QGVAR(moduleSetMedicalFacility),
|
|
QGVAR(moduleMedicalMenu)
|
|
};
|
|
};
|
|
class GVAR(cargo): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleLoadIntoCargo),
|
|
QGVAR(moduleCargoParadrop)
|
|
};
|
|
};
|
|
class GVAR(repair): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleSetEngineer),
|
|
QGVAR(moduleSetRepairVehicle),
|
|
QGVAR(moduleSetRepairFacility)
|
|
};
|
|
};
|
|
class GVAR(cargoAndRepair): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleAddSpareTrack),
|
|
QGVAR(moduleAddSpareWheel)
|
|
};
|
|
};
|
|
class GVAR(fastroping): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleAddOrRemoveFRIES)
|
|
};
|
|
};
|
|
class GVAR(pylons): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleConfigurePylons)
|
|
};
|
|
};
|
|
class GVAR(arsenal): ADDON {
|
|
units[] = {
|
|
QGVAR(AddFullAceArsenal),
|
|
QGVAR(RemoveFullAceArsenal)
|
|
};
|
|
};
|
|
class GVAR(fire): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleBurn)
|
|
};
|
|
};
|
|
class GVAR(trenches): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleLayTrench)
|
|
};
|
|
};
|
|
};
|
|
|
|
class ACE_Curator {
|
|
GVAR(captives) = "ace_captives";
|
|
GVAR(medical) = "ace_medical";
|
|
GVAR(cargo) = "ace_cargo";
|
|
GVAR(repair) = "ace_repair";
|
|
GVAR(cargoAndRepair)[] = {"ace_cargo", "ace_repair"};
|
|
GVAR(fastroping) = "ace_fastroping";
|
|
GVAR(pylons) = "ace_pylons";
|
|
GVAR(arsenal) = "ace_arsenal";
|
|
GVAR(fire) = "ace_fire";
|
|
GVAR(trenches) = "ace_trenches";
|
|
};
|
|
|
|
#include "CfgFactionClasses.hpp"
|
|
#include "CfgEventHandlers.hpp"
|
|
#include "CfgVehicles.hpp"
|
|
#include "ACE_Settings.hpp"
|
|
#include "ui\RscAttributes.hpp"
|