
Originally Posted by
guyfawkestom
I tried the "B_127x99_Ball_noTracer" ammunition, and the dragunov one, and even after unloading a mag the red balls did not appear. But I'll try a bit more, it may be a question of FPS ?
My point was rather when a AI group is patrolling, and a hidden sniper is shooting down one unit, that every body could be suppressed. I also thought about artillery explosion, and finally about IEDs. That's why i f I knew which part of the code trigger the suppressed mode, I'll could do research on my side, and let you know... For instance, if I remember well Artillery create a crater at the explosion. Perhaps AI could try to detect crater around and become suppressed ?
But this is only ideas, what you did is already wonderful, i cannot stop trying since I ran the script for the first time !
OK, last post before I head off to bed after a long day of Arma nerdism. -Coulum- can hopefully take over while I sleep (good thing about this Australia/Canada collaboration)!
Stupid question GFt: you were more than 25m away when trying to suppress right? After your last post I went back in and did a lot of sniping with decent success. If I sniped out a baddy in a patrol, anyone else within 10m of him was suppressed - but only crouched because I only shot one bullet in 5 seconds. I have a shit computer which routinely drops below 30fps and it still worked.
The code which does the reacting to projectiles is
PHP Code:
if !(isnull tpwc_ai_sup_bullet) then
{
_bc = count ((getposatl _unit) nearobjects ["bulletbase",tpwc_ai_sup_br]);
if (_bc > 0) then ......
Firstly, there has to actually be an active bullet object on the map, and if so, then nearobjects ["bulletbase" counts how many bullet objects are within tpwc_ai_sup_br (10m) of the unit. This means the computationally expensive nearobjects function only runs when it needs to. I guess you could make it try to detect things other than bulletbase, but you might run into the problem that a static thing like a crater will be counted over and over, every frame. Still, it could be finessed.
All food for thought.