Jump to content
Lacost

AI recruitment for epoch

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.

Share this post


Link to post
Share on other sites

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))

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

How many mags they carry 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Hallo,

 

Can you update us with BE filters?

I got kicked and got this message:

 

21.04.2014 06:27:37: Maestro_Roel (178.84.188.39:2344) f177522166a502991e25f4d47358fc27 - #0 "bon_recruit_newunit" = <NULL-object>

 

and this is my "publicvariable.txt" file:

 

//new
5 "" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !="drn_AskServerDynamicWeatherEventArgs" !="BIS_effects_gepv" !="PVDZ_Server_Simulation"
5 "remExFP" !="\"remExFP\" = \[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]" !"\[,,\"per\",\"execVM\",\"ca\\Modules\\Functions\\init.sqf\"\]"

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...