Jump to content

masel

Member
  • Posts

    5
  • Joined

  • Last visited

Reputation Activity

  1. Like
    masel got a reaction from Schalldampfer in [Release] DayZ Mission System   
    A friend of mine "complained" about the equalness of missions so i digged a bit in the code and changed this lines
    _unitcount = _this select 1; _skill = _this select 2; in DZMS\Scripts\DZMSAISpawn.sqf into
    _unitcount = _this select 1; if (typeName _unitcount == "ARRAY") then { _unitcount = _unitcount call BIS_fnc_selectRandom; }; _skill = _this select 2; if (typeName _skill == "ARRAY") then { _skill = _skill call BIS_fnc_selectRandom; }; . Unitcount and skill could then picked randomly from an handed over array instead of fixed numbers.
    So one could change the lines responsible for spawning the AI groups (for example in DZMS/Missions/Major/SM2.sqf) from
    [_coords,6,1,"DZMSUnitsMajor"] call DZMSAISpawn; to
    [_coords,[5,6,6,7],[1,1,2,2,3],"DZMSUnitsMajor"] call DZMSAISpawn; to add some more randomness. What do you think?
     
    Edit:
    One could also move the skill assignment into the generation loop like this
    https://pastebin.com/raw/1aThfBQB
    for even more randomness of AI. But i don't know how much this affects performance on highly populated servers.
     
     
     
     
×
×
  • Create New...