Astrosammy
Member-
Content Count
7 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout Astrosammy
-
Rank
Rookie
-
AIs running over each other and the player can be very annoying. Maybe this quick and dirty script is useful for some: It detects these incidents using the Hit event handler, and repairs the damage. As I said, its quick and dirty, so I leave this here as a start for more experienced scripters. And sorry, I know it's a bit hard to read :p. _handled = []; //add eventhandler to units spawned at mission start {_x addEventHandler ["Hit",{ if((vehicle (_this select 1) != _this select 1) && (((_this select 1) distance (_this select 0)) < 10) && (side (_this select 0) == side (_this select 1) || ((side (_this select 0) == west) && (side (_this select 1) == civilian)) || ((side (_this select 1) == west) && (side (_this select 0) == civilian)))) then { hint format ["%4 %1 was hit by %5 %2's vehicle and damaged %3 percent.",name (_this select 0),name (_this select 1),((_this select 2)*100),side (_this select 0), side (_this select 1)]; (_this select 0) setDamage ((damage (_this select 0)) - (_this select 2)); }; }]; _handled = _handled + [_x]; } foreach allunits; while {true} do //add eventhandler to units spawned after mission start { { if (!(_x in _handled)) then { _x addEventHandler ["Hit",{ if((vehicle (_this select 1) != _this select 1) && (((_this select 1) distance (_this select 0)) < 10) && (side (_this select 0) == side (_this select 1) || ((side (_this select 0) == west) && (side (_this select 1) == civilian)) || ((side (_this select 1) == west) && (side (_this select 0) == civilian)))) then { hint format ["%4 %1 was hit by %5 %2's vehicle and damaged %3 percent.",name (_this select 0),name (_this select 1),((_this select 2)*100),side (_this select 0), side (_this select 1)]; (_this select 0) setDamage ((damage (_this select 0)) - (_this select 2)); }; sleep 0.1; }]; }; _handled = _handled + [_x]; } foreach allunits; sleep 0.1; }; (Script has no arguments)
-
HETMAN - Artificial Commander
Astrosammy replied to Rydygier's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
Some testing: G78vNvDVN0E One Screenshot every 60 seconds, the low framerate has been caused by the unusual camera position, not by HAC. -
HETMAN - Artificial Commander
Astrosammy replied to Rydygier's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
22 FPS in empty Chernogorsk, 30 in the Sobor region. In the test mission an average of 8, still quite good for my slow processor, which really is the bottleneck of my system: Toshiba Satellite L650D-15F Microsoft Windows 7 Home Premium Version 6.1.7600 Build 7600 (64 bit) AMD Athlon II P340 Dual-Core Processor, 2200 MHz ATI Mobility Radeon HD 5650 with 1 GB RAM 4 GB RAM (2x2GB) Well, one day I'll have a better desktop... maybe when Arma IV is released... :lol: When using some of my own small HAC missions it feels like the new alpha runs better. -
HETMAN - Artificial Commander
Astrosammy replied to Rydygier's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
Hmm UAV for recon would be cool. I just had a epic battle between CDF and Russia (just watched as civilian) around Vybor. I'll try to put some artillery and respawn in, try to find a way to take screenshots every minute or so, and just let it run overnight to see the results of hours of fighting... :D -
HETMAN - Artificial Commander
Astrosammy replied to Rydygier's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
Well usually it takes around four minutes. No problem for me. I placed some empty vehicles in my mission, and got a task to get into one of them. Nice feature! -
HETMAN - Artificial Commander
Astrosammy replied to Rydygier's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
alpha = group this; RydHQ_FirstToFight = [alpha]; RydHQ_AOnly = [alpha]; This seems to work better ("_" was missing). But I still don't get into the battle as soon as the mission starts. First there's a marker with the text "HOLD POSITION", and after a few minutes I get a task to move to the enemy. Shoudn't "FirstToFight" mean that I get such a task right when HAC is starting? -
HETMAN - Artificial Commander
Astrosammy replied to Rydygier's topic in ARMA 2 & OA - ADDONS & MODS: COMPLETE
Great addon, and a good reason for my first post here :). I don't know why something like this this isn't buit-in in any Arma version, this is exactly what I'm searching for since I bought Arma II. I already made a lot of testing and noticed a few things: - Behaviours like "Safe" and "Careless" cause units to walk, not run. Looking at the scripts I also see that you use "Limited" speed mode. It takes a long time sometimes until units reach their target this way. - In my mission I'm a team leader, with the following init: RydHQB_FirstToFight = [group this]; RydHQAOnly = [group this]; RydHQ_NoFlank = [group this]; RydHQ_NoDef = [group this]; But I only get recon tasks everytime (and always at the same position).