forked from Giallustio/HeartsAndMinds
-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/master_stable' into…
… master_daily # Conflicts: # =BTC=co@30_Hearts_and_Minds.Altis/core/def/mission.sqf # =BTC=co@30_Hearts_and_Minds.Altis/core/def/param.hpp # =BTC=co@30_Hearts_and_Minds.Altis/core/doc.sqf # =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/compile.sqf # =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_group.sqf # =BTC=co@30_Hearts_and_Minds.Altis/description.ext # =BTC=co@30_Hearts_and_Minds.Altis/mission.sqm # =BTC=co@30_Hearts_and_Minds.Altis/mission_Tanoa.sqm Some string are no more need (#400)
- Loading branch information
Showing
13 changed files
with
1,125 additions
and
1,593 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/findposoutsiderock.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
params ["_rpos"]; | ||
|
||
private _objects = lineIntersectsObjs [[_rpos select 0, _rpos select 1, (getTerrainHeightASL _rpos) + 1], [_rpos select 0, _rpos select 1, (getTerrainHeightASL _rpos) + 100], objNull, objNull, false, 16]; | ||
|
||
if (_objects isEqualTo []) exitWith {_rpos}; | ||
|
||
private _object = _objects select 0; | ||
if (_object in nearestTerrainObjects [_object, ["HIDE", "ROCK", "ROCKS"], 1]) then { | ||
_roads = _rpos nearRoads 100; | ||
if (_roads isEqualTo []) then { | ||
_rpos = [_rpos,5,50,10,false] call btc_fnc_findsafepos; | ||
} else { | ||
_rpos = getPos (_roads select 0); | ||
}; | ||
}; | ||
|
||
if (btc_debug_log) then { | ||
_objects = lineIntersectsObjs [[_rpos select 0, _rpos select 1, (getTerrainHeightASL _rpos) + 1], [_rpos select 0, _rpos select 1, (getTerrainHeightASL _rpos) + 100], objNull, objNull, false, 16]; | ||
if !(_objects isEqualTo []) then { | ||
_object = _objects select 0; | ||
if (_object in nearestTerrainObjects [_object, ["HIDE", "ROCK", "ROCKS"], 1]) then { | ||
diag_log format ["FIND POS OUTSIDE ROCK: POS %1 Still inside rock", _rpos]; | ||
if (btc_debug) then { | ||
systemChat "FIND POS OUTSIDE ROCK: Still inside rock"; | ||
private _marker = createmarker [format ["btc_inrock_%1", _rpos], _rpos]; | ||
_marker setmarkertype "mil_unknown"; | ||
_marker setMarkerText "In rock"; | ||
_marker setMarkerSize [0.5, 0.5]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
_rpos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.