mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
repair action config
This commit is contained in:
parent
bd978f2a34
commit
c52c8234f1
40
addons/repair/CfgVehicles.hpp
Normal file
40
addons/repair/CfgVehicles.hpp
Normal 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
|
||||
};
|
||||
};
|
@ -2,7 +2,9 @@
|
||||
|
||||
ADDON = false;
|
||||
|
||||
PREP(canRepair);
|
||||
PREP(doRepair);
|
||||
PREP(repair);
|
||||
PREP(repairVehicle);
|
||||
PREP(setDamage);
|
||||
PREP(setHitPointDamage);
|
||||
|
@ -13,6 +13,7 @@ class CfgPatches {
|
||||
};
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
|
||||
class ACE_Settings {
|
||||
class GVAR(DisplayTextOnRepair) {
|
||||
|
1
addons/repair/functions/fnc_canRepair.sqf
Normal file
1
addons/repair/functions/fnc_canRepair.sqf
Normal file
@ -0,0 +1 @@
|
||||
true
|
1
addons/repair/functions/fnc_repair.sqf
Normal file
1
addons/repair/functions/fnc_repair.sqf
Normal file
@ -0,0 +1 @@
|
||||
systemChat str _this
|
@ -2,6 +2,19 @@
|
||||
<!-- Edited with tabler - 2014-12-21 -->
|
||||
<Project name="ACE">
|
||||
<Package name="repair">
|
||||
<Key ID="STR_AGM_Repair_Repair">
|
||||
<English>Repair >></English>
|
||||
<German>Reparieren >></German>
|
||||
<Spanish>Reparación >></Spanish>
|
||||
<French>Réparer >></French>
|
||||
<Polish>Napraw >></Polish>
|
||||
<Czech>Opravit >></Czech>
|
||||
<Portuguese>Reparar >></Portuguese>
|
||||
<Italian>Ripara >></Italian>
|
||||
<Hungarian>Szerelés >></Hungarian>
|
||||
<Russian>Ремонт >></Russian>
|
||||
</Key>
|
||||
|
||||
<Key ID="STR_ACE_Repair_SettingDisplayTextName">
|
||||
<English>Display text on repair</English>
|
||||
</Key>
|
||||
|
Loading…
Reference in New Issue
Block a user