coco69 10 Posted June 10, 2009 Hello ! I'm looking for someone skilled (or not :))who can help me in programming an AI wich can recruit several kind of unit : Basicaly in the warfare mission, there is only seperate kind of unit (Infantery, Light armor, heavy armor and air) and AI can't command several classes -> like recruiting men+M113+truckMG+UH60MG... I know this barrier has been broken in several warfare missions like "BEAS 1.026" or "WACO 1.1.8", but i didn't succeeded in adding this possibility in a simple BIS Warfare 1.1 ! Anyone would help ? Thank a lot ! P.S : i tried to add "use_light=true" for example in a code line in : Server/Ai/Advanced/Advanced_updatesquad.sqf -> if (_teamType In _infantryTypes && _infantryTime <= 0) then {_useBarracks = true;_useLight = true;_minFundsNeeded = _minFundsNeeded + AIMINBARRACKSFUNDS}; but it seems it is not enought to allow AI to merge several classes, i really need help guys ! :D Share this post Link to post Share on other sites
kuIoodporny 45 Posted June 11, 2009 I've tried doing mechanized units in zWarfare, but this thing seemed to be out range of my skills as this requires very deep changes to the Warfare 1 engine. Maybe you'll find my WIP work useful, it's avaiable in zWarfare PBO. Share this post Link to post Share on other sites
computica 0 Posted September 14, 2009 (edited) That's actually really easy to do! It was first brought up when Doomguy done it with M113's. Try pasting this code under the West Side "Common/Config/Config_AITeams.sqs": ------------- _n = _n + ["BlackOpsM113"] _d = _d + ["Black Ops Mechanized"] _u = ["M113"] ;I need to add "WestLightTeamTypes " since I'm using a light vehicle!!! _u = _u + [WSPECOPSNIPER] _u = _u + [WSPECOP] _u = _u + [WSPECOP] _u = _u + [WSPECOP] _u = _u + [WSPECOP] WestAITeamTemplates = WestAITeamTemplates + [_u] WESTAIBLACKOPSM113TEAMTYPE = Count WestAITeamTemplates - 1 WestInfantryTeamTypes = WestInfantryTeamTypes + [WESTAIBLACKOPSM113TEAMTYPE] WestLightTeamTypes = WestLightTeamTypes + [WESTAIBLACKOPSM113TEAMTYPE] ;Don't forget to add the extra Team types! See this one is Light! ----------------------- Everything is self explanitory, The specops that u see under the M113 will load and unload from the M113. Even with Heli's like MH-6's load like 4-5 ppl under that like this: ---------------------- _n = _n + ["MH6"] _d = _d + ["MH-6 BlackOps Squad"] _u = ["MH6"] _u = _u + [WSPECOP] _u = _u + [WSPECOP] _u = _u + [WSPECOP] _u = _u + [WSPECOP] ;_u = _u + [WSPECOP] (I normally might leave one space open but you can feel the spaces up) WestAITeamTemplates = WestAITeamTemplates + [_u] WESTAIMH6TEAMTYPE = Count WestAITeamTemplates - 1 WestInfantryTeamTypes = WestInfantryTeamTypes + [WESTAIMH6TEAMTYPE] WestAircraftTeamTypes = WestAircraftTeamTypes + [WESTAIMH6TEAMTYPE] ;Don't forget to add the extra Team types! This Aircraft Team type was added!!! ---------------------- These guys will fly together, land and load up together, and parachute if they have too. I've seen it, it's pretty cool! Edited January 28, 2010 by Computica Fixed the code; again... Share this post Link to post Share on other sites
kuIoodporny 45 Posted September 14, 2009 Does it really work this way? Don't you need to create changes to factories? Share this post Link to post Share on other sites
computica 0 Posted September 14, 2009 (edited) Yes it does, you might want to change the min and max AI a AI squad can have in the Constants. I can give more detail if you want. You might want to ask doom guy for more info though, It's not like you'll see a AI team pack in a Hummer :P To get the AI to build Heli's well that requires a bit more scripting... EDIT: Try my new Warfare maps, what I said about the AI in Hummers, well I got that to work too! ;) Edited January 28, 2010 by Computica Share this post Link to post Share on other sites