Guerilla forces tweaks

This commit is contained in:
Christian 2018-04-04 22:18:43 +02:00
parent 529e3b2c81
commit 65b4d60817
No known key found for this signature in database
GPG Key ID: 2D3FEE0019ED51F5
7 changed files with 21 additions and 13 deletions

View File

@ -145,7 +145,7 @@ KP_liberation_resistance_tier2 = 30; // At which strength (0-1
KP_liberation_resistance_tier3 = 70; // At which strength (0-100) the guerilla forces will be at tier 3?
KP_liberation_resistance_at_chance = 20; // Chance that a guerilla unit has a RPG. (tier 2 and 3)
KP_liberation_resistance_sector_chance = 35; // Chance that a guerilla squad will join an ongoing sector attack.
KP_liberation_resistance_ambush_chance = 30; // Chance that some guerilla units will spawn in blufor sectors for an ambush, if reputation is low.
KP_liberation_resistance_ambush_chance = 25; // Chance that some guerilla units will spawn in blufor sectors for an ambush, if reputation is low.
/* - Default arsenal blacklist method.
Useless if you're using anything other than "kp_liberation_arsenal = 0;" above. A whitelisted arsenal is always more performance friendly then a blacklisted arsenal.

View File

@ -121,14 +121,14 @@ if ((_waitingTime <= 0) && (({alive _x} count (units _grp)) > 0)) then {
{
if (alive _x) then {
deleteVehicle _x;
_gain = _gain + 1;
_gain = _gain + 2;
};
} forEach (units _grp);
{
if ((typeOf (_x select 0)) == KP_liberation_ammo_crate) then {
_gain = _gain + 2;
_gain = _gain + 3;
} else {
_gain = _gain + 1;
_gain = _gain + 2;
};
deleteVehicle (_x select 0);
} forEach _crateArray;

View File

@ -60,20 +60,22 @@ _waypoint setWaypointBehaviour "AWARE";
_waypoint setWaypointCombatMode "YELLOW";
_waypoint setWaypointCompletionRadius 30;
_waypoint = _grp addWaypoint [markerpos _sector, 200];
_waypoint setWaypointSpeed "LIMITED";
_waypoint setWaypointSpeed "NORMAL";
_waypoint setWaypointType "SAD";
_waypoint = _grp addWaypoint [markerpos _sector, 200];
_waypoint setWaypointSpeed "LIMITED";
_waypoint setWaypointSpeed "NORMAL";
_waypoint setWaypointType "SAD";
_waypoint = _grp addWaypoint [markerpos _sector, 200];
_waypoint setWaypointSpeed "LIMITED";
_waypoint setWaypointSpeed "NORMAL";
_waypoint setWaypointType "SAD";
_waypoint = _grp addWaypoint [markerpos _sector, 200];
_waypoint setWaypointSpeed "LIMITED";
_waypoint setWaypointSpeed "NORMAL";
_waypoint setWaypointType "CYCLE";
_spawnedGroups pushBack _grp;
sleep 30;
if ((random 100) <= 25) then {
_vehicle = (selectRandom KP_liberation_guerilla_vehicles) createVehicle _startpos;
_grp = [_startpos, 2] call F_spawnGuerillaGroup;
@ -113,7 +115,7 @@ private _strengthChanged = false;
{
if (alive _x) then {
deleteVehicle _x;
KP_liberation_guerilla_strength = KP_liberation_guerilla_strength + 1;
KP_liberation_guerilla_strength = KP_liberation_guerilla_strength + 2;
_strengthChanged = true;
};
} forEach (units _x);

View File

@ -19,7 +19,7 @@ params ["_pos", ["_amount", 0]];
private _grp = createGroup [GRLIB_side_resistance, true];
private _tier = [] call F_getResistanceTier;
private _cr_multi = [] call F_cr_getMulti;
if (_amount == 0) then {_amount = (4 + (round (random _cr_multi)) + (round (random _tier)));};
if (_amount == 0) then {_amount = (6 + (round (random _cr_multi)) + (round (random _tier)));};
private _weapons = missionNamespace getVariable ("KP_liberation_guerilla_weapons_" + str _tier);
private _uniforms = missionNamespace getVariable ("KP_liberation_guerilla_uniforms_" + str _tier);
private _vests = missionNamespace getVariable ("KP_liberation_guerilla_vests_" + str _tier);

View File

@ -6128,9 +6128,13 @@
<Original>-- Lower</Original>
<German>-- Niedriger</German>
</Key>
<Key ID="STR_NOTIFICATION_GUERILLA_INCOMING">
<Key ID="STR_NOTIFICATION_GUER_INC_TITLE">
<Original>Guerilla forces on the way.</Original>
<German>Widerstandskämpfer sind unterwegs.</German>
</Key>
<Key ID="STR_NOTIFICATION_GUER_INC">
<Original>Guerilla forces are incoming to %1 from the %2.</Original>
<German>Guerillakräfte nähern sich %1 aus %2.</German>
<German>Widerstandskämpfer nähern sich %1 aus %2.</German>
</Key>
</Package>
</Project>

View File

@ -186,7 +186,8 @@ class CfgNotifications {
sound = "taskFailed";
};
class lib_asymm_guerilla_incoming : lib_reinforcements {
description = $STR_NOTIFICATION_GUERILLA_INCOMING;
title = $STR_NOTIFICATION_GUER_INC_TITLE;
description = $STR_NOTIFICATION_GUER_INC;
color[] = {0, 0.5, 0, 1};
sound = "taskUpdated";
};

View File

@ -169,6 +169,7 @@ class Missions
* Tweaked: All `spawn compileFinal preprocessFileLineNumbers` replaced with `execVM`.
* Tweaked: All `createGroup` now with activated `deleteWhenEmpty`.
* Tweaked: All `BIS_fnc_relPos` replaced with `getPos`.
* Tweaked: Guerilla forces event chances, strength gain values and unit amounts.
* Fixed: Placement of buildings after save/load. Thanks to [Cre8or](https://github.com/Cre8or)
* Fixed: Sometimes helicopters exploded when spawning on the deck of the USS Freedom.