bug fixes
This commit is contained in:
parent
a1a39799e4
commit
bbbd73a18e
@ -31,12 +31,12 @@ private _emplacedWepData = +_missionEmplacedWeapons;
|
|||||||
// Define _emplacedWepData if not already configured.
|
// Define _emplacedWepData if not already configured.
|
||||||
if (_emplacedWepData isEqualTo []) then
|
if (_emplacedWepData isEqualTo []) then
|
||||||
{
|
{
|
||||||
_missionEmplacedWeaponPositions = [_coords,_noEmplacedWeapons,35,50] call blck_fnc_findPositionsAlongARadius;
|
private _wepPositions = [_coords,_noEmplacedWeapons,35,50] call blck_fnc_findPositionsAlongARadius;
|
||||||
|
|
||||||
{
|
{
|
||||||
_static = selectRandom blck_staticWeapons;
|
_static = selectRandom blck_staticWeapons;
|
||||||
_emplacedWepData pushback [_static,_x];
|
_emplacedWepData pushback [_static,_x];
|
||||||
} forEach _missionEmplacedWeaponPositions;
|
} forEach _wepPositions;
|
||||||
_useRelativePos = false;
|
_useRelativePos = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ if (_backpacks isEqualTo []) then {_backpacks = [_skillAI] call blck_fnc_sele
|
|||||||
if (_weaponList isEqualTo []) then {_weaponList = [_skillAI] call blck_fnc_selectAILoadout};
|
if (_weaponList isEqualTo []) then {_weaponList = [_skillAI] call blck_fnc_selectAILoadout};
|
||||||
if (_sideArms isEqualTo []) then {[_skillAI] call blck_fnc_selectAISidearms};
|
if (_sideArms isEqualTo []) then {[_skillAI] call blck_fnc_selectAISidearms};
|
||||||
|
|
||||||
private["_vehGroup","_vehiclePatrolSpawns""_missiongroups","_vehiclePatrolSpawns","_vehicle","_spawnPos","_return"];
|
private["_spawnPos","_return"];
|
||||||
private _vehicles = [];
|
private _vehicles = [];
|
||||||
private _missionAI = [];
|
private _missionAI = [];
|
||||||
private _abort = false;
|
private _abort = false;
|
||||||
@ -31,13 +31,16 @@ private _patrolsThisMission = +_missionPatrolVehicles;
|
|||||||
if (_patrolsThisMission isEqualTo []) then
|
if (_patrolsThisMission isEqualTo []) then
|
||||||
{
|
{
|
||||||
_useRelativePos = false;
|
_useRelativePos = false;
|
||||||
_vehiclePatrolSpawns = [_coords,_noVehiclePatrols,45,60] call blck_fnc_findPositionsAlongARadius;
|
private _spawnLocations = [_coords,_noVehiclePatrols,45,60] call blck_fnc_findPositionsAlongARadius;
|
||||||
|
//diag_log format["_spawnMissionVehiclePatrols (35): _spawnLocations = %1",_spawnLocations];
|
||||||
{
|
{
|
||||||
|
|
||||||
private _v = [_skillAI] call blck_fnc_selectPatrolVehicle;
|
private _v = [_skillAI] call blck_fnc_selectPatrolVehicle;
|
||||||
_patrolsThisMission pushBack [_v, _x];
|
_patrolsThisMission pushBack [_v, _x];
|
||||||
}forEach _vehiclePatrolSpawns;
|
diag_log format["_spawnMissionVehiclePatrols(36): _v = %1 | _patrolsThisMission = %2",_v,_patrolsThisMission];
|
||||||
|
}forEach _spawnLocations;
|
||||||
};
|
};
|
||||||
|
//diag_log format["_spawnMissionVehiclePatrols(42): _patrolsThisMission = %1",_patrolsThisMission];
|
||||||
#define configureWaypoints false
|
#define configureWaypoints false
|
||||||
{
|
{
|
||||||
if (_useRelativePos) then
|
if (_useRelativePos) then
|
||||||
@ -47,9 +50,8 @@ if (_patrolsThisMission isEqualTo []) then
|
|||||||
_spawnPos = _x select 1;
|
_spawnPos = _x select 1;
|
||||||
};
|
};
|
||||||
private _vehicle = _x select 0;
|
private _vehicle = _x select 0;
|
||||||
_vehGroup = [blck_AI_Side,true] call blck_fnc_createGroup;
|
private _vehGroup = [blck_AI_Side,true] call blck_fnc_createGroup;
|
||||||
_patrolVehicle = objNull;
|
_patrolVehicle = objNull;
|
||||||
|
|
||||||
if !(isNull _vehGroup) then
|
if !(isNull _vehGroup) then
|
||||||
{
|
{
|
||||||
_vehGroup setVariable["soldierType","vehicle"];
|
_vehGroup setVariable["soldierType","vehicle"];
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
|
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
|
||||||
|
|
||||||
params["_vehType","_pos",["_special","NONE"],["_radius",30]];
|
params["_vehType",["_pos",[]],["_special","NONE"],["_radius",30]];
|
||||||
//diag_log format["_spawnVehicle: _vehType = %1 | _special = %2 | _radiu = %3",_vehType,_special,_radius];
|
|
||||||
private _veh = createVehicle[_vehType, _pos, [], _radius, _special];
|
private _veh = createVehicle[_vehType, _pos, [], _radius, _special];
|
||||||
_veh setVectorUp surfaceNormal position _veh;
|
_veh setVectorUp surfaceNormal position _veh;
|
||||||
_veh allowDamage true;
|
_veh allowDamage true;
|
||||||
|
Loading…
Reference in New Issue
Block a user