mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
bb03f55c5c
* Add garrison and un-garrison modules * Remove unnecessary text from garrison header * Add french translations to new strings * Add changes requested by review * Change pushback to pushBack * Move garrison funcs to ai, finish headers * Remove diag log debug * Fix typos and header issues * Add missing newlines * Fix strings, Fix typos and headers * Enable debug and disable compile cache, Add trace and comments * Rebase before review * Fix default case running instead of case 3 * Fix edge case related to players being in garrison group The player would make the enableAttack checks in ungarrison and garrisonMove fail, this is now fixed. * Fix some arrays in garrsionMove and garrison * Relax distance checks in garrisonMove, change AI behaviour while pathing to aware * Add debug view * Remove unused var, fix unit pos using the wrong format * Make debug more visually pleasing * Change garrison debug target to a waypoint icon * Change disableAI event to AISection, comment out doFollow in doMove EH * Fix locality issue
81 lines
2.3 KiB
C++
81 lines
2.3 KiB
C++
#include "script_component.hpp"
|
|
|
|
class CfgPatches {
|
|
class ADDON {
|
|
name = COMPONENT_NAME;
|
|
units[] = {
|
|
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)
|
|
};
|
|
weapons[] = {};
|
|
requiredVersion = REQUIRED_VERSION;
|
|
requiredAddons[] = {"ace_common", "ace_ai"};
|
|
author = ECSTRING(common,ACETeam);
|
|
authors[] = {"SilentSpike"};
|
|
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)
|
|
};
|
|
};
|
|
class GVAR(cargo): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleLoadIntoCargo)
|
|
};
|
|
};
|
|
class GVAR(cargoAndRepair): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleAddSpareTrack),
|
|
QGVAR(moduleAddSpareWheel)
|
|
};
|
|
};
|
|
class GVAR(fastroping): ADDON {
|
|
units[] = {
|
|
QGVAR(moduleAddOrRemoveFRIES)
|
|
};
|
|
};
|
|
};
|
|
|
|
class ACE_Curator {
|
|
GVAR(captives) = "ace_captives";
|
|
GVAR(medical) = "ace_medical";
|
|
GVAR(cargo) = "ace_cargo";
|
|
GVAR(cargoAndRepair)[] = {"ace_cargo", "ace_repair"};
|
|
GVAR(fastroping) = "ace_fastroping";
|
|
};
|
|
|
|
#include "CfgFactionClasses.hpp"
|
|
#include "CfgEventHandlers.hpp"
|
|
#include "CfgVehicles.hpp"
|
|
#include "ACE_Settings.hpp"
|
|
#include "ui\RscAttributes.hpp"
|