Skip to content

Latest commit

 

History

History
91 lines (59 loc) · 4.04 KB

README.md

File metadata and controls

91 lines (59 loc) · 4.04 KB

Service Points

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"

>> Download <<

Installation Steps -

  1. 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.

  2. 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

  3. Place the files that you've downloaded below into the "scripts/service_points" folder

  4. 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";
  5. Edit "scripts/servicePoints\init.sqf" and customize it to your preference.

  6. Copy the supplied stringTable.xml to your mission folder, it is a community based localization file and contains translations for major community mods including this one. See https://github.com/oiad/communityLocalizations for more information.

Battleye filter install.

  1. 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;"
  2. 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