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;
|
||||
|
||||
if ( count _fob > 0 ) then {
|
||||
GRLIB_all_fobs = GRLIB_all_fobs - [ _fob ];
|
||||
publicVariable "GRLIB_all_fobs";
|
||||
};
|
||||
if (count _fob > 0) then {
|
||||
GRLIB_all_fobs = GRLIB_all_fobs - [_fob];
|
||||
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});
|
||||
|
||||
|
|
|
@ -471,6 +471,7 @@ publicVariable "stats_civilian_vehicles_seized";
|
|||
publicVariable "stats_ieds_detonated";
|
||||
publicVariable "blufor_sectors";
|
||||
publicVariable "GRLIB_all_fobs";
|
||||
publicVariable "KP_liberation_clearances";
|
||||
|
||||
// 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)};
|
||||
|
|
|
@ -16,4 +16,7 @@ _all_buildings_to_destroy = [];
|
|||
{
|
||||
_x setdamage 1;
|
||||
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;
|
||||
} 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
|
||||
|
|
|
@ -2288,18 +2288,6 @@
|
|||
<Turkish>Bu FOB'yi yeniden paketlemek istediğinize emin misiniz?</Turkish>
|
||||
<Portuguese>Você tem certeza que quer mobilizar esta FOB?</Portuguese>
|
||||
</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">
|
||||
<Original>HALO jump</Original>
|
||||
<French>Saut HALO</French>
|
||||
|
@ -6158,5 +6146,9 @@
|
|||
<Original>-- Clear FOB area</Original>
|
||||
<German>-- FOB Gebiet räumen</German>
|
||||
</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>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue