took away VG dependenci

This commit is contained in:
Bjanski 2016-05-07 09:11:46 +02:00
parent 4b2d8ee02a
commit 46a7a4667a
2 changed files with 29 additions and 24 deletions

View File

@ -90,6 +90,10 @@ _player removeItem "Exile_Item_Laptop";
_flag = ((getPos _object) nearObjects ["Exile_Construction_Flag_Static", 150]) select 0; _flag = ((getPos _object) nearObjects ["Exile_Construction_Flag_Static", 150]) select 0;
_flag setVariable ["ExAd_HACKS_SUCCEEDED", (_flag getVariable ["ExAd_HACKS_SUCCEEDED",0]) + 1]; _flag setVariable ["ExAd_HACKS_SUCCEEDED", (_flag getVariable ["ExAd_HACKS_SUCCEEDED",0]) + 1];
if(_object isKindOf "Exile_Construction_Flag_Static")then{ if(_object isKindOf "Exile_Construction_Flag_Static")then{
if(!isClass(configFile >> "CfgPatches" >> "ExAd_VG"))then{
["startHack", "You are missing the ExAd_VG dependenci to run this function.", true] call ExAd_fnc_debugHandler;
"This server isn't using the ExAd Virtual Garage, tell the admins to get a grip!!"
}else{
private ["_vehList","_objId","_vehObj","_extDB2Message","_pos"]; private ["_vehList","_objId","_vehObj","_extDB2Message","_pos"];
_vehList = _object getVariable ["ExAdVGVeh", []]; _vehList = _object getVariable ["ExAdVGVeh", []];
if((count _vehList) > 0)then{ if((count _vehList) > 0)then{
@ -114,6 +118,7 @@ _player removeItem "Exile_Item_Laptop";
}else{ }else{
STR_ExAd_HACKING_NOTI_VG_NO_VEH STR_ExAd_HACKING_NOTI_VG_NO_VEH
} }
}
}else{ }else{
_object setVariable ["ExileIsLocked",0,true]; _object setVariable ["ExileIsLocked",0,true];
STR_ExAd_HACKING_NOTI_SAFE_SUCCESS STR_ExAd_HACKING_NOTI_SAFE_SUCCESS

View File

@ -19,7 +19,7 @@
class CfgPatches { class CfgPatches {
class ExAd_Hacking { class ExAd_Hacking {
requiredVersion = 0.1; requiredVersion = 0.1;
requiredAddons[] = {"ExAd_Core", "ExAd_VG"}; requiredAddons[] = {"ExAd_Core"};
}; };
}; };