Add "AllowEnemiesInImmobile" param
This commit is contained in:
parent
635358ef01
commit
88a41fe5b7
|
@ -54,6 +54,7 @@ if(isServer) then {
|
|||
GET_PARAM_BOOL(KP_liberation_cr_param_buildings, "CR_Building", 0);
|
||||
GET_PARAM_BOOL(KP_liberation_ailogistics, "AiLogistics", 1);
|
||||
GET_PARAM_BOOL(KP_liberation_clear_cargo, "ClearCargo", 1);
|
||||
GET_PARAM_BOOL(KP_liberation_allowEnemiesInImmobile, "AllowEnemiesInImmobile", 50);
|
||||
GET_PARAM_BOOL(KP_liberation_arsenalUsePreset, "ArsenalUsePreset", 1);
|
||||
GET_PARAM_BOOL(KP_liberation_mapmarkers, "MapMarkers", 1);
|
||||
GET_PARAM_BOOL(KP_liberation_mobilerespawn, "MobileRespawn", 1);
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
F_allowKrewInImmobile
|
||||
|
||||
File: F_kp_allowCrewInImmobile.sqf
|
||||
Author: veteran29 - https://github.com/veteran29
|
||||
Date: 2019-09-05
|
||||
Last Update: 2019-09-05
|
||||
|
||||
Description:
|
||||
Allows crew in immobile vehicle depending on AllowEnemiesInImmobile parameters.
|
||||
|
||||
Parameter(s):
|
||||
0: OBJECT - Vehicle which should allow immobile crew. (Default objNull)
|
||||
|
||||
Returns:
|
||||
BOOL
|
||||
*/
|
||||
params [
|
||||
["_vehicle", objNull, [objNull]]
|
||||
];
|
||||
|
||||
// KP_liberation_allowEnemiesInImmobile (0-50-100)
|
||||
_vehicle allowCrewInImmobile (random 100 < KP_liberation_allowEnemiesInImmobile);
|
||||
|
||||
true
|
|
@ -66,5 +66,6 @@ F_getSaveableParam = compileFinal preprocessFileLineNumbers "scripts\shared\func
|
|||
F_setLoadableViV = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_setLoadableViV.sqf";
|
||||
F_getNearestViVTransport = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_getNearestViVTransport.sqf";
|
||||
F_addObjectInit = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_addObjectInit.sqf";
|
||||
F_allowCrewInImmobile = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_allowCrewInImmobile.sqf";
|
||||
F_isRadio = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_isRadio.sqf";
|
||||
F_createClearance = compileFinal preprocessFileLineNumbers "scripts\shared\functions\F_kp_createClearance.sqf";
|
||||
|
|
|
@ -2422,6 +2422,9 @@
|
|||
<Portuguese>Remover carga do veículo requisitado</Portuguese>
|
||||
<Chinese>移除載具上的物品</Chinese>
|
||||
</Key>
|
||||
<Key ID="STR_PARAM_ALLOW_ENEMIES_IN_IMMOBILE">
|
||||
<Original>Chance that enemies will stay in immobile/damaged vehicles.</Original>
|
||||
</Key>
|
||||
<Key ID="STR_DEPLOY_IN_PROGRESS">
|
||||
<Original>Deployment in progress...</Original>
|
||||
<French>Déploiement en cours...</French>
|
||||
|
|
|
@ -264,6 +264,12 @@ class Params
|
|||
texts[] = { $STR_PARAMS_ENABLED, $STR_PARAMS_DISABLED };
|
||||
default = 1;
|
||||
};
|
||||
class AllowEnemiesInImmobile {
|
||||
title = $STR_PARAM_ALLOW_ENEMIES_IN_IMMOBILE;
|
||||
values[] = {0, 50, 100};
|
||||
text[] = { $STR_PARAMS_DISABLED, "50%", "100%"};
|
||||
defualt = 50;
|
||||
};
|
||||
class Spacer3 {
|
||||
title = "";
|
||||
values[] = { "" };
|
||||
|
|
Loading…
Reference in New Issue