2015-07-03 21:14:23 +00:00
|
|
|
class ACE_Repair {
|
2015-08-09 06:54:44 +00:00
|
|
|
class Actions {
|
|
|
|
class ReplaceWheel {
|
|
|
|
displayName = CSTRING(ReplaceWheel);
|
|
|
|
displayNameProgress = CSTRING(ReplacingWheel);
|
2023-07-06 03:52:04 +00:00
|
|
|
forceDisplayName = 0;
|
2015-07-03 21:14:23 +00:00
|
|
|
|
2015-09-26 04:36:35 +00:00
|
|
|
repairLocations[] = {"All"};
|
2015-08-09 16:08:53 +00:00
|
|
|
requiredEngineer = QGVAR(engineerSetting_Wheel);
|
2023-07-06 03:52:04 +00:00
|
|
|
repairingTime = QGVAR(wheelChangeTime);
|
2015-08-09 06:54:44 +00:00
|
|
|
repairingTimeSelfCoef = 1;
|
2015-09-15 14:54:55 +00:00
|
|
|
items = QGVAR(wheelRepairRequiredItems);
|
2021-10-13 14:09:46 +00:00
|
|
|
condition = QFUNC(canReplaceWheel);
|
2015-08-09 06:54:44 +00:00
|
|
|
itemConsumed = 0;
|
2015-09-26 04:36:35 +00:00
|
|
|
claimObjects[] = {{"ACE_Wheel"}};
|
2016-05-03 00:32:44 +00:00
|
|
|
|
2021-10-13 14:09:46 +00:00
|
|
|
callbackSuccess = QFUNC(doReplaceWheel);
|
2015-08-09 06:54:44 +00:00
|
|
|
callbackFailure = "";
|
|
|
|
callbackProgress = "";
|
2015-07-03 21:14:23 +00:00
|
|
|
|
2015-08-14 18:49:51 +00:00
|
|
|
animationCaller = "Acts_carFixingWheel";
|
|
|
|
animationCallerProne = "Acts_carFixingWheel";
|
|
|
|
animationCallerSelf = "Acts_carFixingWheel";
|
|
|
|
animationCallerSelfProne = "Acts_carFixingWheel";
|
2023-07-06 03:52:04 +00:00
|
|
|
loopAnimation = 0;
|
2015-08-09 06:54:44 +00:00
|
|
|
litter[] = {};
|
|
|
|
};
|
|
|
|
class RemoveWheel: ReplaceWheel {
|
2015-08-09 13:53:52 +00:00
|
|
|
displayName = CSTRING(RemoveWheel);
|
|
|
|
displayNameProgress = CSTRING(RemovingWheel);
|
2021-10-13 14:09:46 +00:00
|
|
|
condition = QFUNC(canRemove);
|
|
|
|
callbackSuccess = QFUNC(doRemoveWheel);
|
2015-09-26 04:36:35 +00:00
|
|
|
claimObjects[] = {};
|
2015-08-09 06:54:44 +00:00
|
|
|
};
|
2023-06-28 10:39:08 +00:00
|
|
|
class PatchWheel: ReplaceWheel {
|
|
|
|
displayName = CSTRING(PatchWheel);
|
|
|
|
displayNameProgress = CSTRING(PatchingWheel);
|
|
|
|
condition = QFUNC(canPatchWheel);
|
|
|
|
repairingTime = QFUNC(getPatchWheelTime);
|
|
|
|
callbackProgress = QFUNC(doPatchWheelProgress);
|
|
|
|
items = QGVAR(patchWheelRequiredItems);
|
|
|
|
requiredEngineer = QGVAR(engineerSetting_Wheel);
|
|
|
|
callbackSuccess = "";
|
|
|
|
claimObjects[] = {};
|
|
|
|
};
|
2015-08-09 06:54:44 +00:00
|
|
|
class MiscRepair: ReplaceWheel {
|
2015-08-09 13:53:52 +00:00
|
|
|
displayName = CSTRING(Repairing); // let's make empty string an auto generated string
|
|
|
|
displayNameProgress = CSTRING(RepairingHitPoint);
|
2021-10-13 14:09:46 +00:00
|
|
|
condition = QFUNC(canMiscRepair);
|
2015-12-09 02:31:40 +00:00
|
|
|
requiredEngineer = QGVAR(engineerSetting_Repair);
|
2023-07-06 03:52:04 +00:00
|
|
|
repairingTime = QGVAR(miscRepairTime);
|
2021-10-13 14:09:46 +00:00
|
|
|
callbackSuccess = QFUNC(doRepair);
|
2019-10-25 02:52:04 +00:00
|
|
|
items = QGVAR(miscRepairRequiredItems);
|
2015-12-09 02:31:40 +00:00
|
|
|
itemConsumed = QGVAR(consumeItem_ToolKit);
|
2015-09-26 04:36:35 +00:00
|
|
|
claimObjects[] = {};
|
2015-08-09 06:54:44 +00:00
|
|
|
};
|
2015-08-11 19:35:13 +00:00
|
|
|
class RepairTrack: MiscRepair {
|
|
|
|
displayName = CSTRING(Repairing);
|
|
|
|
displayNameProgress = CSTRING(RepairingHitPoint);
|
2021-10-13 14:09:46 +00:00
|
|
|
condition = QFUNC(canRepairTrack);
|
|
|
|
callbackSuccess = QFUNC(doRepairTrack);
|
2015-08-14 18:49:51 +00:00
|
|
|
requiredEngineer = QGVAR(engineerSetting_Wheel);
|
2015-09-26 04:36:35 +00:00
|
|
|
claimObjects[] = {{"ACE_Track"}};
|
2015-12-09 02:31:40 +00:00
|
|
|
itemConsumed = 0;
|
2015-08-11 19:35:13 +00:00
|
|
|
};
|
2015-08-09 16:08:53 +00:00
|
|
|
class RemoveTrack: MiscRepair {
|
|
|
|
displayName = CSTRING(RemoveTrack);
|
|
|
|
displayNameProgress = CSTRING(RemovingTrack);
|
2021-10-13 14:09:46 +00:00
|
|
|
condition = QFUNC(canRemove);
|
|
|
|
callbackSuccess = QFUNC(doRemoveTrack);
|
2015-08-14 18:49:51 +00:00
|
|
|
requiredEngineer = QGVAR(engineerSetting_Wheel);
|
2015-12-09 02:31:40 +00:00
|
|
|
itemConsumed = 0;
|
2015-08-09 16:08:53 +00:00
|
|
|
};
|
|
|
|
class ReplaceTrack: RemoveTrack {
|
|
|
|
displayName = CSTRING(ReplaceTrack);
|
|
|
|
displayNameProgress = CSTRING(ReplacingTrack);
|
2021-10-13 14:09:46 +00:00
|
|
|
condition = QFUNC(canReplaceTrack);
|
|
|
|
callbackSuccess = QFUNC(doReplaceTrack);
|
2015-08-14 18:49:51 +00:00
|
|
|
requiredEngineer = QGVAR(engineerSetting_Wheel);
|
2015-09-26 04:36:35 +00:00
|
|
|
claimObjects[] = {{"ACE_Track"}};
|
2015-08-14 18:49:51 +00:00
|
|
|
};
|
|
|
|
class FullRepair: MiscRepair {
|
|
|
|
displayName = CSTRING(fullRepair);
|
|
|
|
displayNameProgress = CSTRING(fullyRepairing);
|
2023-07-06 03:52:04 +00:00
|
|
|
forceDisplayName = 1;
|
|
|
|
loopAnimation = 1;
|
2015-08-14 18:49:51 +00:00
|
|
|
requiredEngineer = QGVAR(engineerSetting_fullRepair);
|
|
|
|
repairLocations[] = {QGVAR(fullRepairLocation)};
|
2023-07-06 03:52:04 +00:00
|
|
|
repairingTime = QFUNC(getFullRepairTime);
|
|
|
|
condition = "((getAllHitPointsDamage _target) select 2) findIf {_x > 0} != -1";
|
2021-10-13 14:09:46 +00:00
|
|
|
callbackSuccess = QFUNC(doFullRepair);
|
2023-07-06 03:52:04 +00:00
|
|
|
callbackProgress = QFUNC(fullRepairProgress);
|
2019-10-25 02:52:04 +00:00
|
|
|
items = QGVAR(fullRepairRequiredItems);
|
2015-12-15 01:28:31 +00:00
|
|
|
itemConsumed = QGVAR(consumeItem_ToolKit);
|
2015-08-09 16:08:53 +00:00
|
|
|
};
|
2015-08-09 06:54:44 +00:00
|
|
|
};
|
2015-07-03 21:14:23 +00:00
|
|
|
};
|