Fixed some oversights
This commit is contained in:
parent
447df281e9
commit
7849e93627
|
@ -17,6 +17,7 @@ class KPLIB
|
|||
class createManagedUnit {};
|
||||
class crGetMulti {};
|
||||
class crGlobalMsg {};
|
||||
class fillStorage {};
|
||||
class forceBluforCrew {};
|
||||
class getAdaptiveVehicle {};
|
||||
class getCommander {};
|
||||
|
|
|
@ -5,7 +5,7 @@ veh_action_distance = 10;
|
|||
|
||||
while { true } do {
|
||||
|
||||
if (5] call KPLIB_fnc_hasPermission) then {
|
||||
if ([5] call KPLIB_fnc_hasPermission) then {
|
||||
|
||||
_detected_vehicles = ((getpos player) nearEntities [["Tank","APC","IFV","Car"], veh_action_distance]) select {
|
||||
(count crew _x) == 0 &&
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
private [ "_oldbuildtype", "_cfg", "_initindex", "_dialog", "_iscommandant", "_squadname", "_buildpages", "_build_list", "_classnamevar", "_entrytext", "_icon", "_affordable", "_affordable_crew", "_selected_item", "_linked", "_linked_unlocked", "_base_link", "_link_color", "_link_str", "_nearfob", "_actual_fob"];
|
||||
|
||||
if (([ getpos player , 500 , GRLIB_side_enemy ] call F_getUnitsCount ) > 4 ) exitWith { hint localize "STR_BUILD_ENEMIES_NEARBY";};
|
||||
if (([ getpos player , 500 , GRLIB_side_enemy ] call KPLIB_fnc_getUnitsCount ) > 4 ) exitWith { hint localize "STR_BUILD_ENEMIES_NEARBY";};
|
||||
|
||||
if (isNil "buildtype") then {buildtype = 1};
|
||||
if (isNil "buildindex") then {buildindex = -1};
|
||||
|
@ -13,7 +13,7 @@ _dialog = createDialog "liberation_build";
|
|||
waitUntil { dialog };
|
||||
|
||||
_iscommandant = false;
|
||||
if (player == [] call F_getCommander) then {
|
||||
if (player == [] call KPLIB_fnc_getCommander) then {
|
||||
_iscommandant = true;
|
||||
};
|
||||
|
||||
|
@ -151,7 +151,7 @@ while {dialog && alive player && (dobuild == 0 || buildtype == 1)} do {
|
|||
};
|
||||
|
||||
_affordable_crew = _affordable;
|
||||
if ( unitcap >= ([] call F_localCap)) then {
|
||||
if ( unitcap >= ([] call KPLIB_fnc_getLocalCap)) then {
|
||||
_affordable_crew = false;
|
||||
if (buildtype == 1 || buildtype == 8) then {
|
||||
_affordable = false;
|
||||
|
@ -168,7 +168,7 @@ while {dialog && alive player && (dobuild == 0 || buildtype == 1)} do {
|
|||
((findDisplay 5501) displayCtrl (134)) ctrlSetStructuredText formatText [
|
||||
"%1/%2 %3 - %4/%5 %6 - %7/%8 %9",
|
||||
unitcap,
|
||||
([] call F_localCap),
|
||||
([] call KPLIB_fnc_getLocalCap),
|
||||
image "\a3\Ui_F_Curator\Data\Displays\RscDisplayCurator\modeGroups_ca.paa",
|
||||
KP_liberation_heli_count,
|
||||
KP_liberation_heli_slots,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
diag_log format ["[KP LIBERATION] [SAVE] save_manager.sqf started - time: %1", diag_tickTime];
|
||||
diag_log format ["[KP LIBERATION] [SAVE] ----- save_manager.sqf started - time: %1", diag_tickTime];
|
||||
|
||||
// Handle possible enabled "wipe save" mission parameters
|
||||
if (GRLIB_param_wipe_savegame_1 == 1 && GRLIB_param_wipe_savegame_2 == 1) then {
|
||||
|
@ -15,7 +15,7 @@ if (GRLIB_param_wipe_savegame_1 == 1 && GRLIB_param_wipe_savegame_2 == 1) then {
|
|||
*/
|
||||
|
||||
// Version of the KP Liberation framework
|
||||
private _version = [0, 96, 6];
|
||||
private _version = [0, 96, 7];
|
||||
// All AI squads
|
||||
private _aiGroups = [];
|
||||
// Classnames of blufor vehicles
|
||||
|
@ -527,7 +527,7 @@ publicVariable "GRLIB_permissions";
|
|||
publicVariable "KP_liberation_cr_vehicles";
|
||||
save_is_loaded = true; publicVariable "save_is_loaded";
|
||||
|
||||
diag_log format ["[KP LIBERATION] [SAVE] save_manager.sqf done - time: %1", diag_tickTime];
|
||||
diag_log format ["[KP LIBERATION] [SAVE] ----- save_manager.sqf done - time: %1", diag_tickTime];
|
||||
|
||||
// Start the save loop
|
||||
while {true} do {
|
||||
|
|
|
@ -13,10 +13,10 @@
|
|||
<!-- Portuguese localization made by NomadRomeo: https://github.com/NomadRomeo -->
|
||||
<!-- Korean localization made by Panzer: https://github.com/PanzerKoLee -->
|
||||
<Key ID="STR_MISSION_TITLE">
|
||||
<Original>CTI 34 KP Liberation v0.96.6</Original>
|
||||
<Original>CTI 34 KP Liberation v0.96.7</Original>
|
||||
</Key>
|
||||
<Key ID="STR_MISSION_VERSION">
|
||||
<Original>v0.96.6</Original>
|
||||
<Original>v0.96.7</Original>
|
||||
</Key>
|
||||
<Key ID="STR_Deploy_OnPoint">
|
||||
<Original>Deploy</Original>
|
||||
|
|
Loading…
Reference in New Issue