Jump to content
Kingsley1997

What's dangerRadiusHit?

Recommended Posts

I can't find it on Google or any BI wiki... What does it mean/do?
 

class GrenadeCore: Default
{
	dangerRadiusHit = 1000;
};

As a side question, how can I completely disable hand grenades for AI units? I never want them to throw them...

Share this post


Link to post
Share on other sites

I may be wrong, but isn't it part of the AI Suppression simulation?

 

Also, to remove the AI from throwing grenades, try this in their init (may or may not work):

this removeweaponglobal "Throw";

Share this post


Link to post
Share on other sites

 

I may be wrong, but isn't it part of the AI Suppression simulation?

 

Also, to remove the AI from throwing grenades, try this in their init (may or may not work):

this removeweaponglobal "Throw";

I was hoping for a config way of doing it as I don't want to have to make sure that's in every mission etc..

Share this post


Link to post
Share on other sites

I was hoping for a config way of doing it as I don't want to have to make sure that's in every mission etc..

Then in the unit's weapons array don't put "Throw": Again, this may or may not work, things may have changed in ArmA3 - I last coded units in ArmA2 and for that particular game if you didn't give the unit "Throw" or "Put" then they couldn't throw grenades or put down satchel charges etc.

Share this post


Link to post
Share on other sites

still works the same... no weapon "throw" - no magazines "grenades" can be used...

Share this post


Link to post
Share on other sites

Then in the unit's weapons array don't put "Throw": Again, this may or may not work, things may have changed in ArmA3 - I last coded units in ArmA2 and for that particular game if you didn't give the unit "Throw" or "Put" then they couldn't throw grenades or put down satchel charges etc.

The only problem now is that when I put weapons[] = {"Put"}; it removes the rifle and pistol etc. I can't just affect the base class since each unit has its own set of weapons. This isn't a unit mod or anything, it's purely server-side AI mod and all I need it to do is make AI never use grenades.

Share this post


Link to post
Share on other sites

Never mind, I fixed it. I just added these values to the grenade base classes to prevent them from being used.

aiAmmoUsageFlags = 32;
allowAgainstInfantry = 0;
cost = 1000000;

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

×