Remove Clearance upon FOB removal
This commit is contained in:
parent
f8a66620c4
commit
5a8fc4dd0d
|
@ -15,10 +15,12 @@ if ( dorepackage > 0 ) then {
|
||||||
|
|
||||||
_fob = [] call F_getNearestFob;
|
_fob = [] call F_getNearestFob;
|
||||||
|
|
||||||
if ( count _fob > 0 ) then {
|
if (count _fob > 0) then {
|
||||||
GRLIB_all_fobs = GRLIB_all_fobs - [ _fob ];
|
GRLIB_all_fobs = GRLIB_all_fobs - [_fob];
|
||||||
publicVariable "GRLIB_all_fobs";
|
KP_liberation_clearances deleteAt (KP_liberation_clearances findIf {(_x select 0) isEqualTo _fob});
|
||||||
};
|
publicVariable "GRLIB_all_fobs";
|
||||||
|
publicVariable "KP_liberation_clearances";
|
||||||
|
};
|
||||||
|
|
||||||
{deleteVehicle _x} foreach (((getpos player) nearobjects [ FOB_typename, 250 ]) select {getObjectType _x >= 8});
|
{deleteVehicle _x} foreach (((getpos player) nearobjects [ FOB_typename, 250 ]) select {getObjectType _x >= 8});
|
||||||
|
|
||||||
|
|
|
@ -471,6 +471,7 @@ publicVariable "stats_civilian_vehicles_seized";
|
||||||
publicVariable "stats_ieds_detonated";
|
publicVariable "stats_ieds_detonated";
|
||||||
publicVariable "blufor_sectors";
|
publicVariable "blufor_sectors";
|
||||||
publicVariable "GRLIB_all_fobs";
|
publicVariable "GRLIB_all_fobs";
|
||||||
|
publicVariable "KP_liberation_clearances";
|
||||||
|
|
||||||
// Check for deleted military sectors or deleted classnames in the locked vehicles array
|
// Check for deleted military sectors or deleted classnames in the locked vehicles array
|
||||||
GRLIB_vehicle_to_military_base_links = GRLIB_vehicle_to_military_base_links select {((_x select 0) in elite_vehicles) && ((_x select 1) in sectors_military)};
|
GRLIB_vehicle_to_military_base_links = GRLIB_vehicle_to_military_base_links select {((_x select 0) in elite_vehicles) && ((_x select 1) in sectors_military)};
|
||||||
|
|
|
@ -16,4 +16,7 @@ _all_buildings_to_destroy = [];
|
||||||
{
|
{
|
||||||
_x setdamage 1;
|
_x setdamage 1;
|
||||||
sleep (random 3);
|
sleep (random 3);
|
||||||
} foreach _all_buildings_to_destroy
|
} foreach _all_buildings_to_destroy;
|
||||||
|
|
||||||
|
KP_liberation_clearances deleteAt (KP_liberation_clearances findIf {(_x select 0) isEqualTo _fobposdestroy});
|
||||||
|
publicVariable "KP_liberation_clearances";
|
||||||
|
|
|
@ -16,6 +16,9 @@ private _objects = nearestTerrainObjects [_centerPos, [], _radius, false, true];
|
||||||
_x allowDamage false;
|
_x allowDamage false;
|
||||||
} forEach _objects;
|
} forEach _objects;
|
||||||
|
|
||||||
if (_save) then {KP_liberation_clearances pushBackUnique [_centerPos, _radius];};
|
if (_save) then {
|
||||||
|
KP_liberation_clearances pushBackUnique [_centerPos, _radius];
|
||||||
|
publicVariable "KP_liberation_clearances";
|
||||||
|
};
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
|
@ -2288,18 +2288,6 @@
|
||||||
<Turkish>Bu FOB'yi yeniden paketlemek istediğinize emin misiniz?</Turkish>
|
<Turkish>Bu FOB'yi yeniden paketlemek istediğinize emin misiniz?</Turkish>
|
||||||
<Portuguese>Você tem certeza que quer mobilizar esta FOB?</Portuguese>
|
<Portuguese>Você tem certeza que quer mobilizar esta FOB?</Portuguese>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_FOB_REPACKAGE_HINT">
|
|
||||||
<Original>FOB repackaged.</Original>
|
|
||||||
<French>FOB repliée.</French>
|
|
||||||
<German>FOB eingepackt.</German>
|
|
||||||
<Spanish>FOB reempaquetada</Spanish>
|
|
||||||
<Russian>FOB свёрнута</Russian>
|
|
||||||
<Italian>FOB smontata.</Italian>
|
|
||||||
<Chinesesimp>前哨已收起。</Chinesesimp>
|
|
||||||
<Chinese>前線基地已收起。</Chinese>
|
|
||||||
<Turkish>FOB yeniden paketlendi.</Turkish>
|
|
||||||
<Portuguese>FOB mobilizada.</Portuguese>
|
|
||||||
</Key>
|
|
||||||
<Key ID="STR_HALO_PARAM">
|
<Key ID="STR_HALO_PARAM">
|
||||||
<Original>HALO jump</Original>
|
<Original>HALO jump</Original>
|
||||||
<French>Saut HALO</French>
|
<French>Saut HALO</French>
|
||||||
|
@ -6158,5 +6146,9 @@
|
||||||
<Original>-- Clear FOB area</Original>
|
<Original>-- Clear FOB area</Original>
|
||||||
<German>-- FOB Gebiet räumen</German>
|
<German>-- FOB Gebiet räumen</German>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_FOB_REPACKAGE_HINT">
|
||||||
|
<Original>FOB repackaged.\nPossibly created clearance will be reverted upon server restart.</Original>
|
||||||
|
<German>FOB eingepackt.\nEventuelle Gebietsräumung wird zum Serverneustart rückgängig gemacht.</German>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Reference in New Issue