PaintShop Tweaks

This commit is contained in:
He-Man 2019-08-02 18:41:50 +02:00
parent 04febdf320
commit 3d3ef45f3b
2 changed files with 13 additions and 10 deletions

View File

@ -24,7 +24,7 @@ class build_upgrade
};
class PaintGarage
{
condition = "(dyna_cursortargettype isEqualTo 'paintshop' && {player distance2d (dyna_cursorTarget modelToWorld (dyna_cursorTarget selectionPosition 'action1')) < 1}) || dyna_cursortargettype in ['Add other Buildings here']";
condition = "(dyna_cursortargettype isEqualTo 'paintshop' && {player distance2d (dyna_cursorTarget modelToWorld (dyna_cursorTarget selectionPosition 'action1')) < 1.5}) || dyna_cursortargettype in ['Add other Buildings here']";
action = "";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\Paint.paa";
tooltip = "Paint Garage";

View File

@ -172,15 +172,6 @@ for "_i" from 0 to 9 do {
UseCustomTextures = ([_serverSettingsConfig, "UseCustomTextures", false] call EPOCH_fnc_returnConfigEntry);
if (([_serverSettingsConfig, "ReplaceCarService", false] call EPOCH_fnc_returnConfigEntry)) then {
{
private _shop = "paintshop" createvehicle (getpos _x);
_shop setposatl (getposatl _x);
_shop setVectorDirAndUp [VectorDir _x, VectorUp _x];
_x HideobjectGlobal true;
} foreach (epoch_centerMarkerPosition nearObjects ["Land_CarService_F", EPOCH_dynamicVehicleArea]);
};
//Execute Server Functions
diag_log "Epoch: Loading buildings";
EPOCH_BuildingSlotsLimit call EPOCH_server_loadBuildings;
@ -196,6 +187,18 @@ diag_log "Epoch: Spawning NPC traders";
call EPOCH_server_spawnTraders;
publicvariable "EPOCH_Traders";
if (([_serverSettingsConfig, "ReplaceCarService", false] call EPOCH_fnc_returnConfigEntry)) then {
{
private _shop = "paintshop" createvehicle (getpos _x);
_shop setposatl (getposatl _x);
_shop setVectorDirAndUp [VectorDir _x, VectorUp _x];
_x HideobjectGlobal true;
} foreach (epoch_centerMarkerPosition nearObjects ["Land_CarService_F", EPOCH_dynamicVehicleArea]);
};
{
_markers = ["ServicePoint", (getpos _x),"PaintGarage"] call EPOCH_server_createGlobalMarkerSet;
} foreach (allmissionobjects "paintshop");
diag_log "Epoch: Loading vehicles";
// Vehicle slot limit set to total of all allowed limits
_allowedVehicleIndex = if (EPOCH_modCUPVehiclesEnabled) then {if (EPOCH_mod_madArma_Enabled) then {3} else {1}} else {if (EPOCH_mod_madArma_Enabled) then {2} else {0}};