Skip to content

Schalldampfer/service_points

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 

Repository files navigation

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

Battleye filter install.

  1. In your config<yourServerName>\Battleye\scripts.txt around line 2: 5 addAction add this to the end of it:

    !"_vehicle addAction [_actionTitle"

    So it will then look like this for example:

    5 addAction <CUT> !"_vehicle addAction [_actionTitle"
  2. In your config<yourServerName>\Battleye\scripts.txt around line 52: 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;"

Credits - Axe Cop, salival

Releases

No releases published

Packages

No packages published

Languages

  • SQF 100.0%