Hooty Posted May 7, 2017 Report Share Posted May 7, 2017 The static ai would be nice. M2 gunners are not that hard to add. Cant wait to see it finished @TheVampire Link to comment Share on other sites More sharing options...
harcosgoogle Posted May 9, 2017 Report Share Posted May 9, 2017 How to change Max ai? Example: 15-30 ai group @TheVampire Link to comment Share on other sites More sharing options...
TheVampire Posted May 9, 2017 Author Report Share Posted May 9, 2017 You have to adjust all the spawn lines in each file. [[(_coords select 0) + 0.0352,(_coords select 1) - 6.8799, 0],6,1,"DZMSUnitsMajor"] call DZMSAISpawn; The 6 above is the amount of units per group but normally a mission has 4 groups each. Major SM1 spawns 20 AI for example (6,6,4,4). Link to comment Share on other sites More sharing options...
TheVampire Posted May 28, 2017 Author Report Share Posted May 28, 2017 I just updated the github to add Static AI. Now you can fill your AI Bases with DZMS AI. I have also adjusted some code to allow the addition of 50 cals. If someone wants to get some locations set up in the existing missions I will add them and setup the config for it. Here's a code snippet you can add to missions to configure them manually for now. { _m2 = createVehicle ["M2StaticMG",(_x select 0),[], 0, "CAN_COLLIDE"]; _m2 setDir (_x select 1); [_m2] call DZMSSetupVehicle; [(_x select 0),1,2,"DZMS50CalSpawn"] call DZMSAISpawn; (DZMS50CalSpawn select 0) moveInGunner _m2; DZMS50CalSpawn = []; [_m2] spawn { waitUntil{((count crew (_this select 0) < 1) || !alive ((crew (_this select 0)) select 0))}; (_this select 1) setDamage 1; }; _m2 setVehicleLock "LOCKED"; } forEach [ [[0,0,0],dir], [[0,0,0],dir] ]; If someone can test the current version and confirm it is working that would be greatly appreciated. Relentless and WLF 2 Link to comment Share on other sites More sharing options...
ViktorReznov Posted June 5, 2017 Report Share Posted June 5, 2017 Hello, I seem to be experiencing some real trouble here. Ive attempted to install DZMS (as well as wai, independently) and I cannot get it to work. Following the install instructions to the T, firing the server to hunt for errors and ...... nothing. No errors in either client or server .rpt and no missions spawning. Theres nothing in my .rpts to suggest the code even fires. Im desperately trying to get missions on my server, but no luck. I have tried with both a clean install and a modded install. Any help from anyone would be much appreciated. Already have WAI being looked into, cant tell whats going on here. Thanks in advance! For clarity, I am running an Overpoch 1061 server EDIT: Succeeded in at least getting an error report in the console, "DZMSInit.sqf not found" after inserting the install code into the mission init. I do not understand however, how it isnt locating it as the file dir is the exact spot it should be. Man im frustrated with this, many efforts, 0 successes Link to comment Share on other sites More sharing options...
masel Posted April 3, 2018 Report Share Posted April 3, 2018 (edited) 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. Edited April 4, 2018 by masel further edit Schalldampfer 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now