Start with FOB box or truck as parameter
This commit is contained in:
parent
ba27d7c846
commit
f66aea9342
|
@ -27,17 +27,20 @@ if (count GRLIB_all_fobs == 0) then {
|
|||
private _fobbox = objNull;
|
||||
|
||||
while {count GRLIB_all_fobs == 0} do {
|
||||
_fobbox = FOB_box_typename createVehicle (getposATL base_boxspawn);
|
||||
_fobbox = ([FOB_box_typename, FOB_truck_typename] select KP_liberation_fob_vehicle) createVehicle (getposATL base_boxspawn);
|
||||
_fobbox setdir getDir base_boxspawn;
|
||||
_fobbox setposATL (getposATL base_boxspawn);
|
||||
|
||||
_fobbox call F_setFobMass;
|
||||
clearWeaponCargoGlobal _fobbox;
|
||||
clearMagazineCargoGlobal _fobbox;
|
||||
clearBackpackCargoGlobal _fobbox;
|
||||
clearItemCargoGlobal _fobbox;
|
||||
// Add ViV actions to FOB Box
|
||||
[_fobBox] remoteExecCall ["F_setLoadableViV", 0, _fobBox];
|
||||
|
||||
if (!KP_liberation_fob_vehicle) then {
|
||||
_fobbox call F_setFobMass;
|
||||
// Add ViV actions to FOB Box
|
||||
[_fobBox] remoteExecCall ["F_setLoadableViV", 0, _fobBox];
|
||||
};
|
||||
|
||||
sleep 3;
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ if(isServer) then {
|
|||
GET_PARAM_BOOL(KP_liberation_mobilearsenal, "MobileArsenal", 1);
|
||||
GET_PARAM_BOOL(KP_liberation_arsenal_type, "ArsenalType", 0);
|
||||
GET_PARAM_BOOL(KP_liberation_fog_param, "VanillaFog", 1);
|
||||
GET_PARAM_BOOL(KP_liberation_fob_vehicle, "FirstFobVehicle", 0);
|
||||
|
||||
GET_PARAM_BOOL(GRLIB_adaptive_opfor, "AdaptToPlayercount", 1);
|
||||
GET_PARAM_BOOL(GRLIB_deployment_cinematic, "DeploymentCinematic", 1);
|
||||
|
@ -225,6 +226,10 @@ if (!isDedicated && hasInterface) then {
|
|||
_value = if (GRLIB_build_first_fob) then {localize "STR_YES";} else {localize "STR_NO";};
|
||||
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];
|
||||
|
||||
_param = localize "STR_PARAMS_FIRSTFOBVEHICLE";
|
||||
_value = if (KP_liberation_fob_vehicle) then {localize "STR_PARAMS_FIRSTFOBVEHICLE_TRUCK";} else {localize "STR_PARAMS_FIRSTFOBVEHICLE_CONTAINTER";};
|
||||
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];
|
||||
|
||||
_param = localize "STR_PARAM_FOBS_COUNT";
|
||||
_value = str GRLIB_maximum_fobs;
|
||||
_text = _text + format ["<font color='#ff8000'>%1</font><br />%2<br /><br />", _param, _value];
|
||||
|
|
|
@ -6268,5 +6268,17 @@
|
|||
<Original>Dynamic fog (A3 Vanilla)</Original>
|
||||
<German>Dynamischer Nebel (A3 Vanilla)</German>
|
||||
</Key>
|
||||
<Key ID="STR_PARAMS_FIRSTFOBVEHICLE">
|
||||
<Original>Start FOB provided as</Original>
|
||||
<German>Start-FOB bereitgestellt als</German>
|
||||
</Key>
|
||||
<Key ID="STR_PARAMS_FIRSTFOBVEHICLE_CONTAINTER">
|
||||
<Original>FOB Container</Original>
|
||||
<German>FOB Container</German>
|
||||
</Key>
|
||||
<Key ID="STR_PARAMS_FIRSTFOBVEHICLE_TRUCK">
|
||||
<Original>FOB Truck</Original>
|
||||
<German>FOB LKW</German>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
|
|
@ -54,6 +54,12 @@ class Params
|
|||
texts[] = { $STR_YES, $STR_NO };
|
||||
default = 0;
|
||||
};
|
||||
class FirstFobVehicle {
|
||||
title = $STR_PARAMS_FIRSTFOBVEHICLE;
|
||||
values[] = {0, 1};
|
||||
texts[] = {$STR_PARAMS_FIRSTFOBVEHICLE_CONTAINTER, $STR_PARAMS_FIRSTFOBVEHICLE_TRUCK};
|
||||
default = 0;
|
||||
};
|
||||
class MaximumFobs {
|
||||
title = $STR_PARAM_FOBS_COUNT;
|
||||
values[] = {3,5,7,10,15,20,26};
|
||||
|
|
|
@ -190,6 +190,7 @@ class Missions
|
|||
### 0.96.6 (tbd)
|
||||
* Added: [Swedish Forces Pack](https://steamcommunity.com/sharedfiles/filedetails/?id=826911897) transport configs. Thanks to [Dahlgren](https://github.com/Dahlgren)
|
||||
* Added: Parameter to enable/disable the vanilla A3 dynamic fog behavior. Default enabled, so `fucking_set_fog.sqf` isn't running by default.
|
||||
* Added: Parameter to decide to start the campaign with a FOB container (default, like before) or a FOB truck.
|
||||
* Updated: Russian localization. Thanks to [DjHaski](https://github.com/DjHaski)
|
||||
* Tweaked: Initial FOB box doesn't have equipment in the inventory anmore.
|
||||
* Tweaked: Height check for mobile respawn now relies on `isTouchingGround` instead of z value of position.
|
||||
|
|
Loading…
Reference in New Issue