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);
|
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);
|
2015-08-14 18:49:51 +00:00
|
|
|
repairingTime = 10;
|
2015-08-09 06:54:44 +00:00
|
|
|
repairingTimeSelfCoef = 1;
|
2015-09-15 14:54:55 +00:00
|
|
|
items = QGVAR(wheelRepairRequiredItems);
|
2015-08-09 13:53:52 +00:00
|
|
|
condition = QUOTE(call FUNC(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
|
|
|
|
2015-08-09 13:53:52 +00:00
|
|
|
callbackSuccess = QUOTE(call FUNC(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";
|
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);
|
2015-08-16 19:39:42 +00:00
|
|
|
condition = QUOTE(call FUNC(canRemove));
|
2015-08-09 13:53:52 +00:00
|
|
|
callbackSuccess = QUOTE(call FUNC(doRemoveWheel));
|
2015-09-26 04:36:35 +00:00
|
|
|
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);
|
2015-08-24 03:14:04 +00:00
|
|
|
condition = QUOTE(call FUNC(canMiscRepair));
|
2015-12-09 02:31:40 +00:00
|
|
|
requiredEngineer = QGVAR(engineerSetting_Repair);
|
2015-08-14 18:49:51 +00:00
|
|
|
repairingTime = 15;
|
2015-08-09 13:53:52 +00:00
|
|
|
callbackSuccess = QUOTE(call FUNC(doRepair));
|
2015-09-15 14:54:55 +00:00
|
|
|
items[] = {"ToolKit"};
|
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);
|
|
|
|
condition = QUOTE(call FUNC(canRepairTrack));
|
|
|
|
callbackSuccess = QUOTE(call FUNC(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);
|
2015-08-16 19:39:42 +00:00
|
|
|
condition = QUOTE(call FUNC(canRemove));
|
2015-08-09 16:08:53 +00:00
|
|
|
callbackSuccess = QUOTE(call FUNC(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);
|
|
|
|
condition = QUOTE(call FUNC(canReplaceTrack));
|
|
|
|
callbackSuccess = QUOTE(call FUNC(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);
|
|
|
|
requiredEngineer = QGVAR(engineerSetting_fullRepair);
|
|
|
|
repairLocations[] = {QGVAR(fullRepairLocation)};
|
|
|
|
repairingTime = 30;
|
2015-08-26 21:09:46 +00:00
|
|
|
condition = "damage _target > 0";
|
2015-08-14 18:49:51 +00:00
|
|
|
callbackSuccess = QUOTE(call FUNC(doFullRepair));
|
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
|
|
|
};
|