Merge pull request #664 from KillahPotatoes/v0.96.6-allow-in-immobile
v0.96.6 - Allow enemies in immobile vehicles parameter
This commit is contained in:
commit
82c502b089
|
@ -77,8 +77,10 @@ _spawnedGroups pushBack _grp;
|
|||
sleep 30;
|
||||
|
||||
if (((random 100) <= 25) && !(KP_liberation_guerilla_vehicles isEqualTo [])) then {
|
||||
_vehicle = (selectRandom KP_liberation_guerilla_vehicles) createVehicle _startpos;
|
||||
_grp = [_startpos, 2] call F_spawnGuerillaGroup;
|
||||
private _vehicle = (selectRandom KP_liberation_guerilla_vehicles) createVehicle _startpos;
|
||||
_vehicle call F_allowCrewInImmobile;
|
||||
|
||||
private _grp = [_startpos, 2] call F_spawnGuerillaGroup;
|
||||
((units _grp) select 0) moveInDriver _vehicle;
|
||||
((units _grp) select 1) moveInGunner _vehicle;
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ if(isServer) then {
|
|||
GET_PARAM(KP_liberation_restart, "ServerRestart", 0);
|
||||
GET_PARAM(KP_liberation_respawn_cooldown, "RespawnCooldown", 900);
|
||||
GET_PARAM(KP_liberation_victoryCondition, "VictoryCondition", 0);
|
||||
GET_PARAM(KP_liberation_allowEnemiesInImmobile, "AllowEnemiesInImmobile", 50);
|
||||
GET_PARAM(KP_liberation_delayDespawnMax, "DelayDespawnMax", 5);
|
||||
|
||||
GET_PARAM_BOOL(KP_liberation_cr_param_buildings, "CR_Building", 0);
|
||||
|
|
|
@ -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
|
|
@ -24,6 +24,7 @@ if ( _classname in opfor_choppers ) then {
|
|||
_newvehicle flyInHeight (100 + (random 200));
|
||||
} else {
|
||||
_newvehicle = _classname createVehicle _spawnpos;
|
||||
_newvehicle call F_allowCrewInImmobile;
|
||||
_newvehicle setpos _spawnpos;
|
||||
};
|
||||
_newvehicle allowdamage false;
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -2631,6 +2631,10 @@
|
|||
<German>Eingeschränkte Zeus Funktionen</German>
|
||||
<Korean>제한된 제우스 인터페이스</Korean>
|
||||
</Key>
|
||||
<Key ID="STR_PARAM_ALLOW_ENEMIES_IN_IMMOBILE">
|
||||
<Original>Chance that enemies will stay in immobile/damaged vehicles</Original>
|
||||
<German>Chance, dass Feinde in fahrunfähigen/beschädigten Fahrzeugen verbleiben</German>
|
||||
</Key>
|
||||
<Key ID="STR_DEPLOY_IN_PROGRESS">
|
||||
<Original>Deployment in progress...</Original>
|
||||
<Korean>고공침투 중...</Korean>
|
||||
|
|
|
@ -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, 25, 50, 75, 100};
|
||||
text[] = { $STR_PARAMS_DISABLED, "25%", "50%", "75%", "100%"};
|
||||
default = 50;
|
||||
};
|
||||
class DelayDespawnMax {
|
||||
title = $STR_PARAM_DELAY_DESPAWN_MAX;
|
||||
values[] = {0,5,10,15,20,25,30};
|
||||
|
|
|
@ -192,6 +192,7 @@ class Missions
|
|||
* 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 enable/disable limitations on Zeus functionalities. Default enabled to keep old behaviour.
|
||||
* Added: Parameter to decide to start the campaign with a FOB container (default, like before) or a FOB truck.
|
||||
* Added: Parameter to allow enemies stay in immobile vehicles (default 50% chance).
|
||||
* Added: Sector despawn scaling. The longer sector is activated the longer it de-activates. Configurable as parameter, 5min additional delay max by default.
|
||||
* Added: Korean localization. Thanks to [PanzerKoLee](https://github.com/PanzerKoLee)
|
||||
* Updated: Russian localization. Thanks to [DjHaski](https://github.com/DjHaski)
|
||||
|
|
Loading…
Reference in New Issue