repair action config

This commit is contained in:
commy2 2015-03-10 23:29:45 +01:00
parent bd978f2a34
commit c52c8234f1
6 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,40 @@
#define MACRO_REPAIRVEHICLE \
class ACE_Actions { \
class ACE_MainActions { \
class GVAR(Repair) { \
displayName = "$STR_AGM_Repair_Repair"; \
condition = QUOTE([ARR_2(_player, _target)] call DFUNC(canRepair)); \
statement = QUOTE([ARR_2(_player, _target)] call DFUNC(repair);); \
showDisabled = 0; \
priority = 2; \
icon = "\A3\ui_f\data\igui\cfg\actions\repair_ca.paa"; \
distance = 4; \
}; \
}; \
};
class CfgVehicles {
class LandVehicle;
class Car: LandVehicle {
MACRO_REPAIRVEHICLE
};
class Tank: LandVehicle {
MACRO_REPAIRVEHICLE
};
class Air;
class Helicopter: Air {
MACRO_REPAIRVEHICLE
};
class Plane: Air {
MACRO_REPAIRVEHICLE
};
class Ship;
class Ship_F: Ship {
MACRO_REPAIRVEHICLE
};
};

View File

@ -2,7 +2,9 @@
ADDON = false;
PREP(canRepair);
PREP(doRepair);
PREP(repair);
PREP(repairVehicle);
PREP(setDamage);
PREP(setHitPointDamage);

View File

@ -13,6 +13,7 @@ class CfgPatches {
};
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
class ACE_Settings {
class GVAR(DisplayTextOnRepair) {

View File

@ -0,0 +1 @@
true

View File

@ -0,0 +1 @@
systemChat str _this

View File

@ -2,6 +2,19 @@
<!-- Edited with tabler - 2014-12-21 -->
<Project name="ACE">
<Package name="repair">
<Key ID="STR_AGM_Repair_Repair">
<English>Repair &gt;&gt;</English>
<German>Reparieren &gt;&gt;</German>
<Spanish>Reparación &gt;&gt;</Spanish>
<French>Réparer &gt;&gt;</French>
<Polish>Napraw &gt;&gt;</Polish>
<Czech>Opravit &gt;&gt;</Czech>
<Portuguese>Reparar &gt;&gt;</Portuguese>
<Italian>Ripara &gt;&gt;</Italian>
<Hungarian>Szerelés &gt;&gt;</Hungarian>
<Russian>Ремонт &gt;&gt;</Russian>
</Key>
<Key ID="STR_ACE_Repair_SettingDisplayTextName">
<English>Display text on repair</English>
</Key>