Jump to content
Sign in to follow this  
redarmy

Remove all smoke from faction spawned in

Recommended Posts

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

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

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
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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×