Jump to content
bangabob

Enemy occupation system (eos)

Recommended Posts

Markers are not refreshed for the JIP... Invisible one stay default until there is one capture...

Edited by Mariodu62

Share this post


Link to post
Share on other sites

Is it possible to have a 30% of spawning 1 APC? Since for my mission, I found if I just used random 1, it spawned way too many vehicles.

Share this post


Link to post
Share on other sites

in files eos_init and eos_spawninfantry you have _currentmarker instead of _currentmarKER.

Share this post


Link to post
Share on other sites

Updated to v1.8 (Fixing errors)

Changelog

- Now Fully JIP compatible

- Implemented game logic server variable to handle JIP

- Fixed errors when clearing zones

- Undefined variables are fixed

Share this post


Link to post
Share on other sites
Updated to v1.8 (Fixing errors)

Changelog

- Now Fully JIP compatible

- Implemented game logic server variable to handle JIP

- Fixed errors when clearing zones

- Undefined variables are fixed

could you explain how you used the Gamelogic? I've never used them so far.

Share this post


Link to post
Share on other sites

Thanks for the update. Just wanted to say this script is AWESOME. Used it in an OP for my group I had been working on for a few weeks, OP had 6 OBJ's and one final OBJ, (should be on Armaholic soon, Operation Green Mamba) all using EOS. The larger objectives had dynamic battlefield enabled, and that worked extremely well. We took our second objective, and after about 5 minutes started getting hammered by enemy reinforcements, so before we were able to move out to OBJ3 we had to hunker down and defend OBJ2. Also spawned an enemy attack chopper which took me completely by surprise and was awesome. Script worked flawlessly, I encourage those of you who use ACRE and have a team to play with to try my mission, it went very well.

Thanks Banga for the great script and continued updates!!

Share this post


Link to post
Share on other sites
could you explain how you used the Gamelogic? I've never used them so far.

The game logic is a constant object which can be used to store variables through out the mission. In this case the server game logic holds all the eos markers and is used to set the market colours for all the jip players. Sorry for the block of writing. I'm on my phone

---------- Post added at 15:52 ---------- Previous post was at 15:51 ----------

Thanks for the update. Just wanted to say this script is AWESOME. Used it in an OP for my group I had been working on for a few weeks, OP had 6 OBJ's and one final OBJ, (should be on Armaholic soon, Operation Green Mamba) all using EOS. The larger objectives had dynamic battlefield enabled, and that worked extremely well. We took our second objective, and after about 5 minutes started getting hammered by enemy reinforcements, so before we were able to move out to OBJ3 we had to hunker down and defend OBJ2. Also spawned an enemy attack chopper which took me completely by surprise and was awesome. Script worked flawlessly, I encourage those of you who use ACRE and have a team to play with to try my mission, it went very well.

Thanks Banga for the great script and continued updates!!

Great. I'll be sure to check your mission out myself

Share this post


Link to post
Share on other sites
The game logic is a constant object which can be used to store variables through out the mission. In this case the server game logic holds all the eos markers and is used to set the market colours for all the jip players. Sorry for the block of writing. I'm on my phone

---------- Post added at 15:52 ---------- Previous post was at 15:51 ----------

Great. I'll be sure to check your mission out myself

No prob! Thought so while looking through the script, i'll have to keep that in mind. Your script really is a lifesaver for weaker Servers :D.

Share this post


Link to post
Share on other sites

hey BangaBob,

my units are still leaving the area when i use markers with a "B" size smaller than 100. It appears always when there is a chance that (random _eosMarkerSizeB * 0.5) is below 38~40.

setting a minimum distance works for me:

_InfMovDis = random _eosMarkerSizeB * 0.5;

if ( _InfMovDis < 40 ) then { _InfMovDis = 40; };		

0 = [_sideEOSInf, _currentPOS, _InfMovDis] call BIS_fnc_taskPatrol;

Share this post


Link to post
Share on other sites

BangaBob how do i make a trigger to tell "task is completed" when EOS marker is green/clear?

Share this post


Link to post
Share on other sites
Guest

Updated version frontpaged on the Armaholic homepage.

===================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites
hey BangaBob,

my units are still leaving the area when i use markers with a "B" size smaller than 100. It appears always when there is a chance that (random _eosMarkerSizeB * 0.5) is below 38~40.

setting a minimum distance works for me:

_InfMovDis = random _eosMarkerSizeB * 0.5;

if ( _InfMovDis < 40 ) then { _InfMovDis = 40; };		

0 = [_sideEOSInf, _currentPOS, _InfMovDis] call BIS_fnc_taskPatrol;

try to modify _currentmarker by _currentmarKER ... it should be better after...

Share this post


Link to post
Share on other sites
BangaBob how do i make a trigger to tell "task is completed" when EOS marker is green/clear?

waituntil {"colorGreen"==(getMarkercolor "mkrName")};

Hint "eos cleared";

---------- Post added at 23:26 ---------- Previous post was at 23:25 ----------

try to modify _currentmarker by _currentmarKER ... it should be better after...

Ah yes. I will do this in the next version. So the group patrol will be anchored to the marker and not the position they spawned.

Share this post


Link to post
Share on other sites
try to modify _currentmarker by _currentmarKER ... it should be better after...

no, that doesn't interfere with the problem & workaround I mentioned.

Share this post


Link to post
Share on other sites

waituntil {"colorGreen"==(getMarkercolor "mkrName")};

Hint "eos cleared";

did not work.

Should i put in condition or activation?

Share this post


Link to post
Share on other sites

in your eos_init.sqf it won't work anyway (afaik) as it's only run on the Server.

maybe try something like.

{

{waituntil {"colorGreen"==(getMarkercolor _x)};
hint "Area Cleared"; 
} forEach EOSmarkers;


No Idea if that'll work out, but give it a try.

Share this post


Link to post
Share on other sites

I don't know how the script interprets decimal values like 0.5, but when I tried to use random 0.5 or even as low and random 0.01, not much was changed. I tried setting up something like if (30>random 100) then {1} else {0}, but I'm not too familiar with scripting and I'm not sure how I would return those values, since I know that code needs to be executed for then and else. That's all I've tried and I'm not sure what else to try.

Share this post


Link to post
Share on other sites

Need variable definition in Gearbox...(for dedicated it should be necessary..)

private ["_eosMarkerArray","_eosTypeArray","_eosFactionsArray","_dynamicBattlefield"];

Share this post


Link to post
Share on other sites

How would I best go about spawning a sniper team with this?

Share this post


Link to post
Share on other sites
How would I best go about spawning a sniper team with this?

Add the group name into eos_SpawnInfantry.sqf

Share this post


Link to post
Share on other sites

Chances

_apchnc=0; if (30>random 100) then {_apchnc=1} else {_apchnc=0};

---------- Post added at 20:24 ---------- Previous post was at 20:23 ----------

Add the group name into eos_SpawnInfantry.sqf

But then it spawns in with all the other's. I'd want it to be a group of it's own.

Share this post


Link to post
Share on other sites

For both eos_GearBox and eos_JIP when local hosting (haven't tested dedicated server):

Error Undefined Variable In Expression: server

_eosMarkers=server getvariable "EOSmarkers";

Share this post


Link to post
Share on other sites
For both eos_GearBox and eos_JIP when local hosting (haven't tested dedicated server):

Error Undefined Variable In Expression: server

_eosMarkers=server getvariable "EOSmarkers";

Did you add the gamelogic called server?

Share this post


Link to post
Share on other sites

Well now I feel stupid. Thanks Bob, it's working. Gonna get some EOS 1.8 play time in, I'll let you know if anything goes awry.

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

×