bug fix, remove some logging
This commit is contained in:
parent
5a29cb2d94
commit
633e8101d0
@ -15,10 +15,10 @@ private _surfacesAbove = lineInterSectsSurfaces [_pos, [_pos select 0, _pos sele
|
||||
if (_building isEqualTo objNull) then
|
||||
{
|
||||
private _surfacesBelow = lineInterSectsSurfaces [_pos, [_pos select 0, _pos select 1, (_pos select 2) - 10],_u,_u,true,100];
|
||||
diag_log format["_surfacesBelow = %1",_surfacesBelow];
|
||||
//diag_log format["_surfacesBelow = %1",_surfacesBelow];
|
||||
{
|
||||
if ((_x select 2) isKindOf _category && !(_x isEqualTo _u)) exitWith {_building = (_x select 2)};
|
||||
} forEach _surfacesBelow;
|
||||
};
|
||||
diag_log format["_fn_buildingContainer: _u = %1 | _building = %2",_u,_building];
|
||||
//diag_log format["_fn_buildingContainer: _u = %1 | _building = %2",_u,_building];
|
||||
_building
|
@ -9,7 +9,7 @@ private _garrisonedBuildings = missionNamespace getVariable["blck_garrisonedBuil
|
||||
private _count = 0;
|
||||
private _staticsText = [];
|
||||
private _unitsText = [];
|
||||
private _buildingGarrisonATL = "";
|
||||
private _buildingGarrisonATL = [];
|
||||
private _configuredStatics = [];
|
||||
private _configuredUnits = [];
|
||||
private _statics = nearestObjects[getPosATL _building,["StaticWeapon"],sizeOf (typeOf _building)];
|
||||
@ -24,7 +24,7 @@ private _lineBreak = toString [10];
|
||||
if (_isInside && (_container isEqualTo _building)) then
|
||||
{
|
||||
_configuredStatics pushBackUnique _x;
|
||||
diag_log format["Building %1 | buildingPos %2 | _pos %3",typeOf _x, getPosATL _x,_pos];
|
||||
//diag_log format["Building %1 | buildingPos %2 | _pos %3",typeOf _x, getPosATL _x,_pos];
|
||||
_staticsText pushBack [format['%1',typeOf _x],(getPosATL _x) vectorDiff (_pos),getDir _x];
|
||||
};
|
||||
};
|
||||
@ -62,6 +62,5 @@ if !((_staticsText isEqualTo []) && (_unitsText isEqualTo [])) then
|
||||
_unitsText
|
||||
];
|
||||
};
|
||||
|
||||
//diag_log format["_buildingGarrisonATL = %1",_buildingGarrisonATL];
|
||||
_buildingGarrisonATL
|
||||
[_buildingGarrisonATL,_configuredStatics,_configuredUnits]
|
||||
|
@ -20,6 +20,7 @@ lootVehicleVariableName = getText(configFile >> "CfgBlck3DEN" >> "configs" >> "
|
||||
buildingPosGarrisonVariableName = getText(configFile >> "CfgBlck3DEN" >> "configs" >> "buildingPosGarrisonVariableName");
|
||||
buildingATLGarrisionVariableName = getText(configFile >> "CfgBlck3DEN" >> "configs" >> "buildingATLGarrisionVariableName");
|
||||
|
||||
/*
|
||||
{
|
||||
diag_log format["param %1 = %2",_forEachIndex,_x];
|
||||
} forEach [
|
||||
@ -37,7 +38,7 @@ buildingATLGarrisionVariableName = getText(configFile >> "CfgBlck3DEN" >> "conf
|
||||
lootVehicleVariableName,
|
||||
buildingPosGarrisonVariableName,
|
||||
buildingATLGarrisionVariableName
|
||||
];
|
||||
];*/
|
||||
|
||||
CENTER = [0,0,0];
|
||||
|
||||
@ -167,14 +168,20 @@ private _landscape = _objects select{
|
||||
private _garrisonATL = [];
|
||||
{
|
||||
_atl = [_x,CENTER] call blck3DEN_fnc_configureGarrisonATL;
|
||||
|
||||
// format["_fnc_exportDynamic: _building = %1 | _atl = %2",_x,_atl];
|
||||
//diag_log format["_fnc_exportDynamic: typeName _atl = %1",typeName _atl];
|
||||
if (typeName _atl isEqualTo "STRING") then {diag_log format["_fnc_exportDynamic: length _atl = %1 | _atl = '' is %2",count _atl, _atl isEqualTo ""]};
|
||||
if !(_atl isEqualTo "") then {
|
||||
_garrisonATL pushBack _atl;
|
||||
if !(_atl isEqualTo []) then {
|
||||
if !((_atl select 0) isEqualTo []) then
|
||||
{
|
||||
_garrisonATL pushBack (_atl select 0);
|
||||
_garisonedBuildings pushBack _x;
|
||||
_garisonedStatics append (_atl select 1);
|
||||
_garisonedUnits append (_atl select 2)
|
||||
//diag_log format["_fnc_exportDynamic: garrisoned building added: %1",_atl];
|
||||
};
|
||||
};
|
||||
} forEach _landscape;
|
||||
diag_log format["_garrisonATL = %1",_garrisonATL];
|
||||
|
||||
@ -249,6 +256,7 @@ private _infantry = _units select {
|
||||
!(surfaceIsWater (getPos _x)) &&
|
||||
!(_x in _garisonedUnits)
|
||||
};
|
||||
diag_log format["_garisonedUnits = %1",_garisonedUnits];
|
||||
diag_log format["_infantry = %1",_infantry];
|
||||
_infantryGroups = [];
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user