Lacost Posted April 17, 2014 Report Share Posted April 17, 2014 Original script http://www.armaholic.com/page.php?id=12113 Download: https://www.dropbox.com/s/q9v46zx0ul6hefn/bon_recruit_units.rar Install: 1. Open description.ext at very bottom add this: #include "bon_recruit_units\dialog\common.hpp" #include "bon_recruit_units\dialog\recruitment.hpp" 2. Open init.sqf at very bottom [] execVM "bon_recruit_units\init.sqf"; 3. Open missin.sqm around 42 line. change class Groups { items=2; to class Groups { items=3; 4. Around 1155 line after this class Item1 { side="LOGIC"; class Vehicles { items=1; class Item0 { position[]={8810.7705,138.52499,11751.518}; id=50; side="LOGIC"; vehicle="FunctionsManager"; leader=1; lock="UNLOCKED"; skill=0.60000002; }; }; }; add this class Item2 { side="GUER"; class Vehicles { items=1; class Item0 { position[]={8260.7832,4.104394,15461.444};//Trader City Lenzburg azimut=138.222; special="NONE"; id=101; side="GUER"; vehicle="UN_CDF_Soldier_SL_EP1"; leader=1; skill=0.60000002; init="this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;this enableSimulation false;this setcaptive true;this addAction [""Recruit Units"",""bon_recruit_units\open_dialog.sqf""]"; }; }; }; 5. Copy bon_recruit_units to your MPMissions folder. P.s. 3,4 step only for NAPF vanila map. If you want to use the script on a different map. You must change trader position. position[]={8260.7832,4.104394,15461.444};//Trader City Lenzburg Known bugs: 1. Problem with safe zones. Bots can shoot in safe zones. Radec59437, SaintXMonkey, CartoonrBOY and 4 others 7 Link to comment Share on other sites More sharing options...
Guest Posted April 18, 2014 Report Share Posted April 18, 2014 wow this sounds amazing. Can download the link though. Anyone else have luck getting it? Link to comment Share on other sites More sharing options...
Pro_Speedy Posted April 18, 2014 Report Share Posted April 18, 2014 Could someone link me/ tell what this script does it sounds cool Link to comment Share on other sites More sharing options...
Flosstradamus Posted April 18, 2014 Report Share Posted April 18, 2014 Could someone link me/ tell what this script does it sounds cool The script handles recruitment, deletion of dead AI bodies as well as cleanup in case the player disconnects. This is what the armaholic page says. Link to comment Share on other sites More sharing options...
STENCHOVDETH Posted April 18, 2014 Report Share Posted April 18, 2014 Hello all, Any Advice on how to get this to work with Infi AH? I mean It works fine for Admin but not for players. Also I'm not russian, so what does the <system> text actually say when dialog char? STENCH Link to comment Share on other sites More sharing options...
Lacost Posted April 19, 2014 Author Report Share Posted April 19, 2014 Hello all, Any Advice on how to get this to work with Infi AH? I mean It works fine for Admin but not for players. Also I'm not russian, so what does the <system> text actually say when dialog char? STENCH <System>:Not enough gold. For hiring need 4 gold. Open recruit.sqf go to very bottom, replace hint and systemChat message. For those who use infistar. Open ah.sqf, around 920 line: if ((isNull (findDisplay 106)) && (isNull (findDisplay -1)) && (isNull (findDisplay 41144)) replace this: if ((isNull (findDisplay 106)) && (isNull (findDisplay 20001)) && (isNull (findDisplay -1)) && (isNull (findDisplay 41144)) Link to comment Share on other sites More sharing options...
Asian Kid Posted April 19, 2014 Report Share Posted April 19, 2014 Replace the bottom witth this hint "Not enough gold. hiring need for 4 gold."; systemChat ('<System>: Not enough gold. hiring need for 4 gold.') Link to comment Share on other sites More sharing options...
Pro_Speedy Posted April 19, 2014 Report Share Posted April 19, 2014 This script allows you to actually hire AI? Nice Link to comment Share on other sites More sharing options...
Razorman Posted April 19, 2014 Report Share Posted April 19, 2014 No errors on start up but where is it supposed to be on the map? Am I missing a trick here? Link to comment Share on other sites More sharing options...
insertcoins Posted April 19, 2014 Report Share Posted April 19, 2014 No errors on start up but where is it supposed to be on the map? Am I missing a trick here? P.s. 3,4 step only for NAPF vanila map. If you want to use the script on a different map. You must change trader position. position[]={8260.7832,4.104394,15461.444};//Trader City Lenzburg Link to comment Share on other sites More sharing options...
insertcoins Posted April 19, 2014 Report Share Posted April 19, 2014 class Item2 { side="GUER"; class Vehicles { items=1; class Item0 { position[]={7180.27,0.0011673,3000.21};//cherno hill azimut=238.222; special="NONE"; id=101; side="GUER"; vehicle="UN_CDF_Soldier_SL_EP1"; leader=1; skill=0.60000002; init="this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;this enableSimulation false;this setcaptive true;this addAction [""Recruit Units"",""bon_recruit_units\open_dialog.sqf""]"; }; }; }; }; combined with cherno hill addon places him in the cave there. Link to comment Share on other sites More sharing options...
Razorman Posted April 19, 2014 Report Share Posted April 19, 2014 Thanks, got him in cave all good, when recruiting all good but then I see no ai player, where is he? Link to comment Share on other sites More sharing options...
insertcoins Posted April 19, 2014 Report Share Posted April 19, 2014 Thanks, got him in cave all good, when recruiting all good but then I see no ai player, where is he? on the roof :facepalm: placed him here now position[]={7202.21,0.00128174,3030.54};//cherno hill that's outside by the campfire Link to comment Share on other sites More sharing options...
Razorman Posted April 19, 2014 Report Share Posted April 19, 2014 Lol yes I found them on roof lol! Thanks Link to comment Share on other sites More sharing options...
Asian Kid Posted April 19, 2014 Report Share Posted April 19, 2014 Easier way must add it to a menu.http://opendayz.net/threads/server-menu-script-for-dayz-interested.17907/ Install this and you can remove everything and add this below or just add whats below IN the server menu.sqf add this before s_player_servermenuCancel = player addAction ["close","custom\functions\server_menuClose.sqf","",-1,false,false,"", ""]; Add this s_player_servermenu13 = player addAction [("<t color=""#01DF01"">" + ("AI Recruitment") +"</t>"),"bon_recruit_units\open_dialog.sqf","",-1,false,false,"", ""]; In the server menu close Add player removeAction s_player_servermenu13; Do that same in the self actions Rythron 1 Link to comment Share on other sites More sharing options...
Lacost Posted April 20, 2014 Author Report Share Posted April 20, 2014 https://www.dropbox.com/s/q9v46zx0ul6hefn/bon_recruit_units.rar -Fix payment bug -Add multi language Link to comment Share on other sites More sharing options...
STENCHOVDETH Posted April 20, 2014 Report Share Posted April 20, 2014 Thank You Lacost, :D My players and I love this addon. But what I have found was the survivor model was invisible to me so I changed the model to the "CZ_Special_Forces_GL_DES_EP1_DZ" model and it works fine now. I also added this line to a custom "zombie_generate.sqf" around line 118 add this _agent addRating -1000000; for the AI to attack Z's. I have also changed there price to 2x10oz. I have given the AI backpacks and changed their loadouts and all seems to be working well. On the following line what are the [1,2,3,4,5,6] Values represent? {_unit addMagazine "30Rnd_556x45_Stanag"} forEach [1,2,3,4,5,6]; Thanks in advance STENCH Radec59437, insertcoins and Brockie 3 Link to comment Share on other sites More sharing options...
Asian Kid Posted April 20, 2014 Report Share Posted April 20, 2014 Thank You Lacost, :D My players and I love this addon. But what I have found was the survivor model was invisible to me so I changed the model to the "CZ_Special_Forces_GL_DES_EP1_DZ" model and it works fine now. I also added this line to a custom "zombie_generate.sqf" around line 118 add this _agent addRating -1000000; for the AI to attack Z's. I have also changed there price to 2x10oz. I have given the AI backpacks and changed their loadouts and all seems to be working well. On the following line what are the [1,2,3,4,5,6] Values represent? {_unit addMagazine "30Rnd_556x45_Stanag"} forEach [1,2,3,4,5,6]; Thanks in advance STENCH How many mags they carry Link to comment Share on other sites More sharing options...
Lacost Posted April 20, 2014 Author Report Share Posted April 20, 2014 But what I have found was the survivor model was invisible to me so I changed the model to the "CZ_Special_Forces_GL_DES_EP1_DZ" model and it works fine now. I know. I fixed it. Survivor1_DZ invisible model Link to comment Share on other sites More sharing options...
insertcoins Posted April 20, 2014 Report Share Posted April 20, 2014 someone found a way to have them be different prices? This way you can have an entry level AI, and high tier AI. Link to comment Share on other sites More sharing options...
Lacost Posted April 20, 2014 Author Report Share Posted April 20, 2014 someone found a way to have them be different prices? This way you can have an entry level AI, and high tier AI. ..... _unittype = bon_recruit_recruitableunits select _sel; _typename = lbtext [BON_RECRUITING_UNITLIST,_sel]; if (str _unittype == str "Soldier_Sniper_PMC_DZ") then { if([["ItemGoldBar",2]] call player_checkItems) then { _removed = [["ItemGoldBar",2]] call player_removeItems; goto "label"; } else { systemchat format ["<System>: Not enough money!"]; }; }; #label _queuepos = 0; _queuecount = count bon_recruit_queue; if(_queuecount > 0) then { ..... Not tested. Link to comment Share on other sites More sharing options...
Lacost Posted April 21, 2014 Author Report Share Posted April 21, 2014 -Add config file -Each bot at different prices -Small fixes https://www.dropbox.com/s/q9v46zx0ul6hefn/bon_recruit_units.rar Link to comment Share on other sites More sharing options...
insertcoins Posted April 21, 2014 Report Share Posted April 21, 2014 !="bon_recruit_newunit" Link to comment Share on other sites More sharing options...
Rythron Posted April 21, 2014 Report Share Posted April 21, 2014 They dont attack anything not the bandits not the zombies.. Tried _agent addRating -1000000; but no effect? They dont listen if i aim at the target and press 2 target at 12o clock they just look around and follow me ? :P Can anybody help me ? EDIT: Check post #28 Link to comment Share on other sites More sharing options...
Asian Kid Posted April 21, 2014 Report Share Posted April 21, 2014 How can I make the AI not kill players? They have a tendency to kill random players that have not hurt me. 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