Jump to content
Sign in to follow this  
AINC_STALKER

DMS - Difficulty level = mission.obj

Recommended Posts

So just some free advice if you want to add some variation to your missions.

On the mission.sqf you can set the paramater for the mission.obj file there.

Example.

// Create Buildings - use separate file as found in the mercbase mission
_baseObjs =
[
    "Research_Camp_EASY_objects",
    _pos
] call DMS_fnc_ImportFromM3E_3DEN;

can be added to -

 

//_msgStart = ['#FFFF00',format["A %1 research camp has been spotted, find out what they are up to",_difficulty]];
_msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];

if (_difficulty isEqualTo "easy") then
{
    _baseObjs =
[
    "Research_Camp_EASY_objects",
    _pos
] call DMS_fnc_ImportFromM3E_3DEN;

    _pinCode = (1000 +(round (random 8999)));
            _vehicle = ["B_G_Offroad_01_armed_F",[(_pos select 0) +30, (_pos select 1) -0],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
        _msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];
        _msgWIN = ['#0080ff',format ["AINC compound secured.Vehicle Code secured.Code is %1...",_pinCode]];

};
    
Then you can load a different object file for the other difficulties .


if (_difficulty isEqualTo "moderate") then
{
_baseObjs =
[
    "Research_Camp_MODERATE_objects",
    _pos
] call DMS_fnc_ImportFromM3E_3DEN;
    _pinCode = (1000 +(round (random 8999)));
        _vehicle = ["B_LSV_01_armed_olive_F",[(_pos select 0) +30, (_pos select 1) -0],_pinCode] call DMS_fnc_SpawnPersistentVehicle;
        _msgStart = ['#FFFF00',"AINC Security have set up a _difficulty re-supply compound. Raid them before they complete operations"];
        _msgWIN = ['#0080ff',format ["AINC compound secured.Vehicle Code secured.Code is %1...",_pinCode]];

};
    

And so on etc.


TLDR -

You can create variant mission objects as Mission Object.sqfs for the varying difficulty levels.
Thus creating changing and dynamic mission layouts.

The EASY Sniper camp has a completely different lay out to the HARDCORE one.
The EASY Sniper camp may be a couple of tents and 10-15 AI with a crate full of 5.56 marksman variants.

The HARDCORE Sniper camp may be a full concrete compound , with a barracks building , some small scout towers , barb wire fencing and a firing range
With a crate of 12.7 and below marksman / snipers + ammo etc.

Easy to do , and makes approaching missions a little different and unique.
 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.. Please view our Privacy Policy