Axe Cops service point script updated for 1.0.6.2 by salival
Discussion thread on EpochMod: https://epochmod.com/forum/topic/43075-release-vehicle-service-point-refuel-repair-rearm-updated-for-106/
(original github url: https://github.com/vos/dayz/tree/master/service_point)
(original install/discussion url: https://epochmod.com/forum/topic/3935-release-vehicle-service-point-refuel-repair-rearm-script/)
**** REQUIRES DAYZ EPOCH 1.0.6.2 ****
Major Changes:
This version adds support for both single currency and gems (from the epoch 1.0.6 update) as well as the original epoch briefcase currency system.
Instead of pricing things like the original way, prices are now done on a "worth" similar to how coins are done. The price value of items are below.
If you are using coins, I would recommend using the _currencyModifier variable since coins typically are 10x the value of briefcase based currency (1 brief == 100,000 coins)
(You can either set this _currencyModifier variable to 1 then set the proper value or use the modifier, the modifier is mainly for dual currency servers)
1 silver = 1 worth
1 10oz silver = 10 worth
1 gold = 100 worth
1 10oz gold = 1,000 worth
1 briefcase = 10,000 worth
Please see dayz_code\configVariables.sqf for the value of gems (DZE_GemWorthArray) and their relevant worth if they are enabled.
Example config settings for _refuel_costs, _repair_costs and _rearm_costs:
All 3 sections can either be made free, disabled or a specifc price with the following examples:
["Air",_freeText] will make the vehicle config class of "Air" free for the specific action.
["Air",_disabledText] will make the vehicle config class of "Air" disabled for the specific action.
["Air",2000] will make the vehicle config class of "Air" have a worth of 2000 for the specific action.
["Armored_SUV_PMC",2000] will make the specific vehicle have a worth of 2000 for the specific action.
["Armored_SUV_PMC",_freeText] will make the specific vehicle be free for the specific action.
["Armored_SUV_PMC",_disabledText] will make the specific vehicle be disabled for the specific action.
Valid vehicle config classes as an example: "Air", "AllVehicles", "All", "APC", "Bicycle", "Car", "Helicopter", "Land", "Motorcycle", "Plane", "Ship", "Tank"
Installation Steps -
-
In your \dayzinstallfolder\MPMissions\DayZ_Epoch_11.Chernarus folder (or similar), create a subfolder called "scripts/service_points" or use another name if a folder with other add-on scripts exists.
-
Download this repo by clicking on the "Clone or Download" button and then click "Download ZIP" or click: https://github.com/oiad/service_points/archive/master.zip
-
Place the files that you've downloaded below into the "scripts/service_points" folder
-
Find this line in your
init.sqf
:execFSM "\z\addons\dayz_code\system\player_monitor.fsm";
Add this line directly after it:
execVM "scripts\servicePoints\init.sqf";
-
Edit "scripts/servicePoints\init.sqf" and customize it to your preference.
-
Download the
stringTable.xml
file linked below from the Community Localization GitHub and copy it to your mission folder, it is a community based localization file and contains translations for major community mods including this one.
>> Download stringTable.xml <<
-
In your config<yourServerName>\Battleye\scripts.txt around line 32:
5 setDamage
add this to the end of it:!="if (_allRepaired) then {\n_vehicle setDamage 0;"
So it will then look like this for example:
5 setDamage <CUT> !="if (_allRepaired) then {\n_vehicle setDamage 0;"
-
In your config<yourServerName>\Battleye\scripts.txt around line 51:
5 toString
add this to the end of it:!="_partName set [2,20];\n_partName = toString _partName;"
So it will then look like this for example:
5 toString <CUT> !="_partName set [2,20];\n_partName = toString _partName;"
Credits - Axe Cop, salival