parent
5174e4a28a
commit
116ea5cc23
|
@ -1,7 +1,9 @@
|
|||
if (!isServer) exitWith {};
|
||||
|
||||
private _newID = [count KP_liberation_logistics] call F_getMilitaryID;
|
||||
|
||||
KP_liberation_logistics append [[
|
||||
military_alphabet select (count KP_liberation_logistics), // ID
|
||||
_newID, // ID
|
||||
0, // Truck Count
|
||||
[0,0,0], // Position Point A
|
||||
[0,0,0], // Position Point B
|
||||
|
|
|
@ -2,16 +2,12 @@ if (!isServer) exitWith {};
|
|||
|
||||
params ["_groupToDelete"];
|
||||
|
||||
private ["_temp", "_i"];
|
||||
|
||||
_temp = KP_liberation_logistics;
|
||||
private _temp = +KP_liberation_logistics;
|
||||
|
||||
_temp = _temp - [_groupToDelete];
|
||||
|
||||
_i = 0;
|
||||
{
|
||||
_x set [0, (military_alphabet select _i)];
|
||||
_i = _i + 1;
|
||||
_x set [0, [_forEachIndex] call F_getMilitaryID];
|
||||
} forEach _temp;
|
||||
|
||||
KP_liberation_logistics = _temp;
|
||||
KP_liberation_logistics = +_temp;
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
F_kp_getMilitaryID.sqf
|
||||
Author: Wyqer
|
||||
Website: www.killahpotatoes.de
|
||||
Date: 2017-09-14
|
||||
|
||||
Description:
|
||||
Converts a number to an ID string
|
||||
|
||||
Parameters:
|
||||
_this select 0 - INT - ID number to convert
|
||||
|
||||
Return:
|
||||
String
|
||||
*/
|
||||
|
||||
params ["_count"];
|
||||
private _level = 0;
|
||||
private _return = "";
|
||||
|
||||
for [{_i = (count military_alphabet)}, {(_count + 1) > _i}, {_i = _i + (count military_alphabet)}] do {
|
||||
_level = _level + 1;
|
||||
};
|
||||
|
||||
if (_level == 0) then {
|
||||
_return = military_alphabet select _count;
|
||||
} else {
|
||||
_return = format ["%1 %2", [(_level - 1)] call F_getMilitaryID, [(_count - (_level * (count military_alphabet)))] call F_getMilitaryID];
|
||||
};
|
||||
|
||||
_return
|
|
@ -49,3 +49,4 @@ F_crateToStorage = compileFinal preprocessFileLineNumbers "scripts\shared\functi
|
|||
F_crateFromStorage = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_crate_from_storage.sqf";
|
||||
F_crateCheckValue = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_crate_checkValue.sqf";
|
||||
F_sortStorage = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_sort_storage.sqf";
|
||||
F_getMilitaryID = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_getMilitaryID.sqf";
|
||||
|
|
|
@ -181,6 +181,7 @@ class Missions
|
|||
* Tweaked: Localization support for the extended options menu. Thanks to [nercon](https://github.com/nercon)
|
||||
* Tweaked: Highlight color in production list changed to blue instead of misleading green.
|
||||
* Tweaked: Amounts of resources on each FOB and production site is now visible in logistic dropdown menu as `(Supplies/Ammo/Fuel)`.
|
||||
* Tweaked: Removed the logistic convoy cap of 26 (which was due to the alphabet).
|
||||
* Fixed: Player got custom recoil and aiming coefficients on respawn.
|
||||
* Fixed: Rare script error on closing respawn screen directly after joining the mission.
|
||||
* Fixed: Players could deploy multiple FOBs when they selected deploy fast enough on the same container.
|
||||
|
|
Loading…
Reference in New Issue