redarmy 422 Posted July 9, 2014 Guys hope someone can help cant find awnser anywhere. Im using the excellent,drongos toolkit. However one feature im not happy about is the use of smoke grenades(the ai all throw smoke similtaniously when enough men drop dead,and then again when each other man dies. When that smoke is in frame,my fps plummits.For large infantry battles,its too much to bare. I know i can use a code in the init sqf,to remove smoke from all factions.But the issue is im spawning groups in 90% of the mission,so the code wont apply to them. Is there a code to remove all factions,or even all in group,smoke grenades(hand held) maybe something i can add to on activation for say a waypoint. Any help much appreciated. Share this post Link to post Share on other sites
redarmy 422 Posted July 10, 2014 73 views and nobody any clue? This cannot be impossible to do,just impossible to find the awnser anywhere,iv even searched previous arma titles forums. Cmon guys some one must know. Share this post Link to post Share on other sites
BL1P 35 Posted July 10, 2014 I am not very good at this code stuff but something like this might work. And if your lucky someone smarter might show where I went wrong :) while {true} do { clean = true; { if (side _x == east) then { while {clean} do { if ("smokeShell" in magazines _x) then {_x removeMagazines "smokeShell"}; if ("smokeShellRed" in magazines _x) then {_x removeMagazines "smokeShellRed"}; If !("smokeShell" in magazines _x) && !("smokeShellRed" in magazines _x) then {clean = false;}; }; }; } foreach allunits; sleep 2; }; Change the side _x == east to what ever side the faction is And add the other smokes if needed. haven't tested just trying to help a bit. Also you might want to ask these questions in the Editing section :) Share this post Link to post Share on other sites
redarmy 422 Posted July 10, 2014 I am not very good at this code stuff but something like this might work.And if your lucky someone smarter might show where I went wrong :) while {true} do { clean = true; { if (side _x == east) then { while {clean} do { if ("smokeShell" in magazines _x) then {_x removeMagazines "smokeShell"}; if ("smokeShellRed" in magazines _x) then {_x removeMagazines "smokeShellRed"}; If !("smokeShell" in magazines _x) && !("smokeShellRed" in magazines _x) then {clean = false;}; }; }; } foreach allunits; sleep 2; }; Change the side _x == east to what ever side the faction is And add the other smokes if needed. haven't tested just trying to help a bit. Also you might want to ask these questions in the Editing section :) Thanks for your reply mate. It sounds worth a look anyway. Will check it now and post back. Share this post Link to post Share on other sites
redarmy 422 Posted July 11, 2014 Unfortunaltly,that dosent work. Its accepted in an on activation trigger,but dosent do anything. Thanks anyway Share this post Link to post Share on other sites