Jump to content

AI recruitment for epoch


Lacost

Recommended Posts

 
Download:
 
 
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.
Link to comment
Share on other sites

  On 4/18/2014 at 10:21 PM, STENCHOVDETH said:

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

  On 4/19/2014 at 9:21 AM, Razorman said:

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

		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

  On 4/19/2014 at 10:18 AM, Razorman said:

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

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  On 4/20/2014 at 3:34 AM, STENCHOVDETH said:

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

  On 4/20/2014 at 3:34 AM, STENCHOVDETH said:

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

  On 4/20/2014 at 8:22 AM, insertcoins said:

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...