Fxi triggers, ad hotness to task descrtipion

This commit is contained in:
Eero af Heurlin 2016-07-24 18:09:51 +03:00
parent c1bae4eaa5
commit 66520a76c8
3 changed files with 20 additions and 5 deletions

View File

@ -51,10 +51,26 @@ if (!!(ferryingArray select _playerno)) then
diag_log format["creating ferry task for %1 (player %2)", _squad, _playerno];
_longdesc = format["%1 wants to fly to this location", _squad];
_shortdesc = format["Drop off %1", _squad];
if (_lzAA and _lzhot) then
{
_longdesc = _longdesc + "<br/><strong>Be advised:</strong> Intel reports heavy enemy activity with AA assets at the location";
};
if (!_lzAA and _lzhot) then
{
_longdesc = _longdesc + "<br/><strong>Be advised:</strong> Intel reports enemy activity at the location";
};
} else {
diag_log format["creating pickup task for %1 (player %2)", _squad, _playerno];
_longdesc = format["%1 is requesting airlift from this location", _squad];
_shortdesc = format["Pick up %1", _squad];
if (_lzAA and _lzhot) then
{
_longdesc = _longdesc + "<br/><strong>Be advised:</strong> LZ is hot and enemy AA assets have been observed";
};
if (!_lzAA and _lzhot) then
{
_longdesc = _longdesc + "<br/><strong>Be advised:</strong> LZ is hot";
};
};
_taskid = format["p%1_lz%2", _playerno, _lzLoc];

View File

@ -40,16 +40,14 @@ taskIdsArray set [_playerno, false];
publicVariable "taskIdsArray";
null = [_vehiclePlayer, (_squadArray select _squadCount -1), _playerno] execVM "loadSquad.sqf";
_handle = [_vehiclePlayer, (_squadArray select _squadCount -1), _playerno] execVM "loadSquad.sqf";
_trgLoaded = createTrigger["EmptyDetector",getPos _prevLZ];
_trgLoaded setTriggerArea[lzSize,lzSize,0,false];
_trgLoaded setTriggerActivation["WEST","PRESENT",false];
_trgLoaded setTriggerTimeout [3, 3, 3, true];
_trgcond = format["(squadLoadedArray select %1)", _playerno];
_trgaction = format["null = [(playersArray select %1), %2, %3, %1] execVM 'createObj.sqf'; hint 'Fly to the next LZ!';", _playerno, null, _prevLZ];
_trgaction = format["null = [(playersArray select %1),null, %2, %1] execVM 'createObj.sqf';", _playerno, _prevLZ];
diag_log format["load condition: %1", _trgcond];
diag_log format["load action: %1", _trgaction];
_trgLoaded setTriggerStatements[_trgcond, _trgaction, ""];
// TODO: should we delete _trgLoaded somewhere ??

View File

@ -96,7 +96,7 @@ class AddonsMetaData
randomSeed=14406749;
class ScenarioData
{
author="rambo";
author="Eero 'rambo' af Heurlin";
respawn=3;
};
class CustomAttributes
@ -380,6 +380,7 @@ class Mission
{
class Intel
{
briefingName="Helicopter training MP";
startWeather=0;
startWind=0.099999994;
startWaves=0.099999994;