Skip to content

Commit

Permalink
Disable dynamic symulation for mission critical units
Browse files Browse the repository at this point in the history
  • Loading branch information
theace0296 committed Aug 29, 2021
1 parent 7ea5f39 commit 44f332f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RandFramework/Missions/hvtMission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ MISSION_fnc_CustomMission = { //This function is the main script for your missio

_sInformant1Name = format["objInformant%1",_iTaskIndex];

_objInformant = [createGroup _sideToUse, _infClassToUse, [0,0,500], [], 0, "NONE"] call TRGM_GLOBAL_fnc_createUnit;
_objInformant = [createGroup _sideToUse, _infClassToUse, [0,0,500], [], 0, "NONE", true] call TRGM_GLOBAL_fnc_createUnit;
_objInformant allowDamage false;
_objInformant setVariable [_sInformant1Name, _objInformant, true];
_objInformant setVariable ["taskIndex",_iTaskIndex, true];
Expand Down
6 changes: 3 additions & 3 deletions RandFramework/Missions/meetingAssassinationMission.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ MISSION_fnc_CustomMission = { //This function is the main script for your missio
if (!isNil "_direction") then {
_objVehicle setDir (_direction);
};
_guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_poshVehPos,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit;
_guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_poshVehPos,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit;
}
else {
_flatPos = nil;
_flatPos = [getPos _objectiveMainBuilding, 10, 50, 5, 0, 0.5, 0,[],[getPos _objectiveMainBuilding,getPos _objectiveMainBuilding]] call TRGM_GLOBAL_fnc_findSafePos;
if ((_flatPos select 0) > 0) then {
_guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_flatPos,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit;
_guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,_flatPos,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit;
}
else {
_guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,getPos _objectiveMainBuilding,[],20,"NONE"] call TRGM_GLOBAL_fnc_createUnit;
_guardUnit1 = [(createGroup TRGM_VAR_EnemySide), selectRandom _HVTGuys,getPos _objectiveMainBuilding,[],20,"NONE", true] call TRGM_GLOBAL_fnc_createUnit;
};
};
(group _guardUnit1) setBehaviour 'CARELESS';
Expand Down
4 changes: 2 additions & 2 deletions RandFramework/Server/objectives/fn_setATMineEvent.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ if (_currentATFieldPos select 0 != 0) then {
_group = createGroup TRGM_VAR_FriendlySide;
_sUnitType = selectRandom (call FriendlyCheckpointUnits);

_guardUnit1 = [_group, _sUnitType,_pos1,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit;
_guardUnit1 = [_group, _sUnitType,_pos1,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit;
doStop [_guardUnit1];
_guardUnit1 setDir (floor random 360);
[_guardUnit1,"WATCH","ASIS"] call BIS_fnc_ambientAnimCombat;

_guardUnit2 = [_group, _sUnitType,_pos2,[],0,"NONE"] call TRGM_GLOBAL_fnc_createUnit;
_guardUnit2 = [_group, _sUnitType,_pos2,[],0,"NONE", true] call TRGM_GLOBAL_fnc_createUnit;
doStop [_guardUnit2];
_guardUnit2 setDir (floor random 360);
[_guardUnit2,"WATCH","ASIS"] call BIS_fnc_ambientAnimCombat;
Expand Down

0 comments on commit 44f332f

Please sign in to comment.