small bug fixes

This commit is contained in:
Ghostrider [GRG] 2022-08-03 00:04:45 -04:00
parent 73f0672f85
commit 48280a933c
3 changed files with 12 additions and 8 deletions

View File

@ -17,10 +17,12 @@ params[
]; ];
private _helis = []; private _helis = [];
private _units = []; private _units = [];
if (_missionHelis isEqualto []) then {_noChoppers = -1};
for "_i" from 0 to (_noChoppers) do for "_i" from 0 to (_noChoppers) do
{ {
private _spawnPos = _coords getPos[30,random(359)]; private _spawnPos = _coords getPos[30,random(359)];
private _heli = selectRandom _missionHelis; private _heli = selectRandom _missionHelis;
diag_log format["GMS_fnc_spawnMissionHelis: _difficulty %1 | _heli %2",_difficulty,_heli];
private _noCrew = [_heli,false] call BIS_fnc_crewCount; private _noCrew = [_heli,false] call BIS_fnc_crewCount;
#define patrolArea [1000,1000] #define patrolArea [1000,1000]
private _crewGroup = [_spawnPos,_noCrew,_difficulty,patrolArea,_uniforms,_headGear,_vests,_backpacks,_weaponList, _sideArms] call GMS_fnc_spawnGroup; private _crewGroup = [_spawnPos,_noCrew,_difficulty,patrolArea,_uniforms,_headGear,_vests,_backpacks,_weaponList, _sideArms] call GMS_fnc_spawnGroup;

View File

@ -240,18 +240,18 @@ switch (GMSCore_modType) do
// The chance of paratroops dropping from the heli is defined by GMS_chancePara(Blue|Red|Green|Orange) above. // The chance of paratroops dropping from the heli is defined by GMS_chancePara(Blue|Red|Green|Orange) above.
// Recommend setting the change = 1 if you wish to spawn multiple helis at a mission. // Recommend setting the change = 1 if you wish to spawn multiple helis at a mission.
GMS_patrolHelisBlue = _GMS_littleBirds; GMS_patrolHelisBlue = _GMS_littleBirds;
GMS_noPatrolHelisBlue = 1; GMS_noPatrolHelisBlue = 0;
GMS_chanceHeliPatrolRed = 0.75; // 0.4; GMS_chanceHeliPatrolRed = 0.75; // 0.4;
GMS_patrolHelisRed = _GMS_littleBirds; GMS_patrolHelisRed = _GMS_littleBirds;
GMS_noPatrolHelisRed = 1; GMS_noPatrolHelisRed = 0;
GMS_chanceHeliPatrolGreen = 0.85; GMS_chanceHeliPatrolGreen = 0.85;
GMS_patrolHelisGreen = _GMS_armed_hellcats + _cup_Helis_missiles; // _GMS_armed_orcas + _GMS_armed_ghosthawks; //_GMS_littleBirds; GMS_patrolHelisGreen = _GMS_armed_hellcats + _GMS_armed_orcas; // _GMS_armed_orcas + _GMS_armed_ghosthawks; //_GMS_littleBirds;
GMS_noPatrolHelisGreen = 1; GMS_noPatrolHelisGreen = 1;
GMS_chanceHeliPatrolOrange = 0.95; GMS_chanceHeliPatrolOrange = 0.95;
GMS_patrolHelisOrange = _GMS_armed_heavyAttackHelis + _GMS_armed_attackHelis; //_GMS_littleBirds; GMS_patrolHelisOrange = _GMS_armed_orcas + _GMS_armed_ghosthawks; //_GMS_armed_heavyAttackHelis + _GMS_armed_attackHelis; //_GMS_littleBirds;
GMS_noPatrolHelisOrange = 1; GMS_noPatrolHelisOrange = 1;
//////////////////// ////////////////////

View File

@ -152,10 +152,10 @@ AI WEAPONS, UNIFORMS, VESTS AND GEAR
//GMS_AIPatrolVehicles = ["B_G_Offroad_01_armed_EPOCH","B_LSV_01_armed_F","I_C_Offroad_02_LMG_F","B_T_LSV_01_armed_black_F","B_T_LSV_01_armed_olive_F","B_T_LSV_01_armed_sand_F"]; // Type of vehicle spawned to defend AI bases //GMS_AIPatrolVehicles = ["B_G_Offroad_01_armed_EPOCH","B_LSV_01_armed_F","I_C_Offroad_02_LMG_F","B_T_LSV_01_armed_black_F","B_T_LSV_01_armed_olive_F","B_T_LSV_01_armed_sand_F"]; // Type of vehicle spawned to defend AI bases
GMS_AIPatrolVehicles = GMS_lightlyArmed_CUP; GMS_AIPatrolVehicles = GMS_lightlyArmed_CUP;
GMS_AIPatrolVehiclesBlue = ["B_G_Offroad_01_armed_EPOCH","B_LSV_01_armed_F","I_C_Offroad_02_LMG_F","B_T_LSV_01_armed_black_F","B_T_LSV_01_armed_olive_F","B_T_LSV_01_armed_sand_F"]; GMS_AIPatrolVehiclesBlue = GMS_lightlyArmed_CUP; //["B_G_Offroad_01_armed_EPOCH","B_LSV_01_armed_F","I_C_Offroad_02_LMG_F","B_T_LSV_01_armed_black_F","B_T_LSV_01_armed_olive_F","B_T_LSV_01_armed_sand_F"];
GMS_AIPatrolVehiclesRed = ["O_MBT_02_cannon_F","O_APC_Tracked_02_AA_F","O_APC_Tracked_02_cannon_F"]; // I recomend you switch Red and Green here GMS_AIPatrolVehiclesRed = GMS_lightlyArmed_CUP; //["O_MBT_02_cannon_F","O_APC_Tracked_02_AA_F","O_APC_Tracked_02_cannon_F"]; // I recomend you switch Red and Green here
GMS_AIPatrolVehiclesGreen = ["B_G_Offroad_01_armed_EPOCH","B_LSV_01_armed_F","I_C_Offroad_02_LMG_F","B_T_LSV_01_armed_black_F","B_T_LSV_01_armed_olive_F","B_T_LSV_01_armed_sand_F"]; GMS_AIPatrolVehiclesGreen = GMS_lightlyArmed_CUP; //["B_G_Offroad_01_armed_EPOCH","B_LSV_01_armed_F","I_C_Offroad_02_LMG_F","B_T_LSV_01_armed_black_F","B_T_LSV_01_armed_olive_F","B_T_LSV_01_armed_sand_F"];
GMS_AIPatrolVehiclesOrange = ["O_MBT_02_cannon_F","O_APC_Tracked_02_AA_F","O_APC_Tracked_02_cannon_F"]; GMS_AIPatrolVehiclesOrange = GMS_lightlyArmed_CUP; //["O_MBT_02_cannon_F","O_APC_Tracked_02_AA_F","O_APC_Tracked_02_cannon_F"];
// Blacklisted itesm // Blacklisted itesm
GMS_blacklistedOptics = ["optic_Nightstalker","optic_tws","optic_tws_mg"]; GMS_blacklistedOptics = ["optic_Nightstalker","optic_tws","optic_tws_mg"];
@ -618,6 +618,8 @@ AI WEAPONS, UNIFORMS, VESTS AND GEAR
GMS_epochVehicleRepair = ["EngineParts","FuelTank","SpareTire","ItemGlass", GMS_epochVehicleRepair = ["EngineParts","FuelTank","SpareTire","ItemGlass",
"ItemDuctTape","VehicleRepair"]; "ItemDuctTape","VehicleRepair"];
GMS_buildingMaterials = GMS_epochBuildingSupplies + GMS_epochVehicleRepair; GMS_buildingMaterials = GMS_epochBuildingSupplies + GMS_epochVehicleRepair;
GMS_tools = [];
GMS_loot = GMS_buildingMaterials + GMS_tools;
/*************************************************************************************** /***************************************************************************************
DEFAULT CONTENTS OF LOOT CRATES FOR EACH MISSION DEFAULT CONTENTS OF LOOT CRATES FOR EACH MISSION