Jump to content
Official BF Editor Forums
Sign in to follow this  
Frosty98B

How To Prevent Bots From Running From Thrown Grenades?

Recommended Posts

Hello, Frosty98B here.

I am trying to make the zombie AI realistic and one guy asked me if I can remove the AI programming that causes them to run from grenades. It is nice idea but I have no idea how to do it. I was looking for this programming in AI file of grenade but it seems like there is just usage programming - nothing like their reactions.

I will much appreciate any help.

(I am sorry for my bad english)

Edited by Frosty98B

Share this post


Link to post
Share on other sites

you might be better off looking at the ai for the soldiers rather than for the grenade - perhaps you could try changing their behaviour in AIBehaviours.ai, e.g. from memory there's a 'take cover' behaviour that might stop them running if its value was lowered enough, of course i might be wrong but it's worth a look

Edited by clivewil

Share this post


Link to post
Share on other sites

Thanks Clive, I changed Take Cover to 0 in UnitWeights and StandardWeights but unfortunately they are still running from grenades. :(

Share this post


Link to post
Share on other sites

Ah, got it, man.

I deleted this line "weaponTemplate.setExplosionRadius 10.0" from weapon AI folder and they are no more running from the thrown grenades. :D

Edited by Frosty98B

Share this post


Link to post
Share on other sites

Ah, got it, man.

I deleted this line "weaponTemplate.setExplosionRadius 10.0" from weapon AI folder and they are no more running from the thrown grenades. :D

So that makes 2 different ways, to stop the bots running from grenades

Share this post


Link to post
Share on other sites

Oh, does it? What is the other way, please? - If it is not a secret

Edited by Frosty98B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×