Jump to content

Recommended Posts


HIVE STRATEGIC AI V3.1


Arma 3 version:


Usage

Initialize with execVM "HIVE.sqf", settings are adjusted there.
Requires "HIVE_AO" marker present. Marker size "b" is radius of included locations.
Requires "Functions module".

Overview

HIVE.sqf

  • Initializes and loops scripts.
  • HIVE_ACTIVE can be used to pause looping.
  • HIVE_WEST/EAST/GUER can be used to pause side control.
  • HIVE_DEBUG enables drawing markers, displays messages about forces comparison and defend toggle.
  • HIVE_GROUP_BLACKLIST can be used to blacklist groups.
  • HIVE_LOCATIONS location types to be included in "HIVE_AO".

 

HIVE_LOCATIONS.sqf

  • sets HIVE_AREAS array from locations.
  • Creates debug markers.

 

HIVE_UNITS.sqf.

  • Sorts groups intro arrays based on their vehicles.
  • Creates arty modules.
  • Places "support" waypoint for support units.
  • Sets support groups custom MARTA icons.

 

HIVE_STRATEGIC.sqf

  • Gets location area status based on unit count.
  • Updates debug markers.
  • Forces comparison based on group type.
  • Activates defensive mode based on forces comparison.
  • Sets objective arrays.

 

HIVE_TACTICAL.sqf

  • Adds "busy" units to array.
  • Sets waypoint to objective, if group is not busy.
  • Vehicles and infantry seperation, infantry has preference for buildings.
  • Artillery and air units get their missions from known enemies array.

 

Demo and files

https://drive.google.com/drive/folders/1D59AmyaK4PlIWtLCcHPiBqv7P_6PTzFG?usp=drive_link

  • Like 3

Share this post


Link to post
Share on other sites

I was trying it, I liked it a lot, it's very good, thanks for sharing it :rthumb:

  • Like 1

Share this post


Link to post
Share on other sites
17 hours ago, dalber24 said:

I was trying it, I liked it a lot, it's very good, thanks for sharing it :rthumb:

Thanks for trying! I am currently cooking another version of this, here's a little sneak peek

/// ARTILLERY

{
_group = createGroup sideLogic;
_battery = _group createUnit ["BIS_ARTY_LOGIC",[0,0,0], [], 0, ""];
_battery synchronizeObjectsAdd [vehicle leader _x];
vehicle leader _x synchronizeObjectsAdd [_battery];

if (side _x == WEST			) then {_x setVariable ["MARTA_customicon", ["b_art"]] };
if (side _x == EAST			) then {_x setVariable ["MARTA_customicon", ["o_art"]] };
if (side _x == RESISTANCE	) then {_x setVariable ["MARTA_customicon", ["n_art"]] };
}forEach HIVE_ART;

/// _handle = [HIVE_ART select 0, TARGET, "HE",  2] call HIVE_FIREMISSION;
HIVE_FIREMISSION = {	
	_battery = (synchronizedObjects (vehicle leader (_this select 0)) select 0);
	_target = getPosATL (_this select 1);
	_type = _this select 2;
	_rounds = _this select 3;
	[_battery, _target, ["IMMEDIATE", _type, 0, _rounds]] call BIS_ARTY_F_ExecuteTemplateMission;
};

 

  • Like 1

Share this post


Link to post
Share on other sites
6 hours ago, Kosmo_ said:

Thanks for trying! I am currently cooking another version of this, here's a little sneak peek


Hey I liked that! :slayer::rthumb:

  • Like 1

Share this post


Link to post
Share on other sites

Hey @Kosmo_, I have a question, can the AI use artillery too or is it just for the player?
It's not that it's super important... but, it wouldn't be bad if the AI could also blow your ass off.

Cheers :rthumb:

  • Like 1

Share this post


Link to post
Share on other sites
53 minutes ago, dalber24 said:

Hey @Kosmo_, I have a question, can the AI use artillery too or is it just for the player?
It's not that it's super important... but, it wouldn't be bad if the AI could also blow your ass off.

Cheers :rthumb:

Yes, the AI does use artillery in v2. More specifically "recon" type units call it in with good effect

  • Like 1

Share this post


Link to post
Share on other sites
3 hours ago, Kosmo_ said:

Yes, the AI does use artillery in v2. More specifically "recon" type units call it in with good effect


Nice! Thx!   ySDpRRr.jpeg

  • Like 1

Share this post


Link to post
Share on other sites

Hey I just realized you had updated it... :yay: I was waiting for the new version, but since you hadn't said anything, I was waiting for the announcement message...:whistle:
I hadn't looked at the first post...:sleep: I just saw it...:suspect:g5BI3J1.jpeg  In your last message you had not mentioned the update, you should do it, because it is usually rare when there are several messages, to see the first one.:thumbs-up: 

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, dalber24 said:

Hey I just realized you had updated it... :yay: I was waiting for the new version, but since you hadn't said anything, I was waiting for the announcement message...:whistle:
I hadn't looked at the first post...:sleep: I just saw it...:suspect:g5BI3J1.jpeg  In your last message you had not mentioned the update, you should do it, because it is usually rare when there are several messages, to see the first one.:thumbs-up: 

Oh yeah I basically rewrote the thing 3 times since first posting xd. But yeah I'll probably take a little bit of a break now since stalker 2 came out. All of the versions are in drive folders, I'll maybe look into making some kind of battle generator type mission utilizing the script in future.

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, Kosmo_ said:

Oh yeah I basically rewrote the thing 3 times since first posting xd. But yeah I'll probably take a little bit of a break now since stalker 2 came out. All of the versions are in drive folders, I'll maybe look into making some kind of battle generator type mission utilizing the script in future. 


Okay, you have a well-deserved break, and a very good excuse, Stalker 2! Good thing it's already been released...:slayer: I also have to play Metro Awakening which I haven't even installed yet, and now that you mention it I'm going to go for Stalker 2 too.:soldier:

Thanks for the update, and I look forward to your return for your new scripting beauties.:drinking2:

Cheers :rthumb:

  • Like 1

Share this post


Link to post
Share on other sites

Version 3.2

  • Added transportation handling.
  • Vehicles without gunners, eg. trucks will be assigned to "logistics" category.
  • All vehicles that have more free cargo seats than units in group will be available for transportation missions.
  • Infantry that gets a waypoint that is far away (> 1000m) will be added to cargo array.
  • Transportation missions will be assigned from this cargo pool, depending if they can fit the infantry group in question.
  • Changed forces comparison, now counts individual units and vehicles instead of group types.
  • Thanks 1

Share this post


Link to post
Share on other sites

7nS8bOs.jpeg  :yay: It seems that Metro Awakening will wait a little longer...


Edit: @Kosmo_ wait a minute, you're kidding me... :icon_bash: you didn't update the files :whip::whistle:

Cheers :thumbs-up:

  • Haha 1

Share this post


Link to post
Share on other sites
50 minutes ago, dalber24 said:

7nS8bOs.jpeg  :yay: It seems that Metro Awakening will wait a little longer...


Edit: @Kosmo_ wait a minute, you're kidding me... :icon_bash: you didn't update the files :whip::whistle:

Cheers :thumbs-up:

I did update the files, however I didn't update the link 🤦‍♂️ (fixed now)

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, Kosmo_ said:

I did update the files, however I didn't update the link 🤦‍♂️ (fixed now)


Excellent, thank you very much,:rthumb:  I didn't want to have to use force...:don14:  🤣   🤣

Cheers, have a nice weekend! :thumb:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×