j435 Hello everyone, I am developing a FPS arena battle game similar to COD and CS. Currently, players can compete against bots. I spent three days implementing the protagonist throwing three different types of grenades (explosive grenade, flash grenade, smoke grenade). Then I hope the bot can also learn to throw these grenades. Because I don't understand how to implement this function at the bottom of COD and CS? So I would like to ask when do you think bots should release their grenades, or what conditions should be met? Thank you all for your help!
xyz j435 So I would like to ask when do you think bots should release their grenades I don't see any bots in screenshots.
j435 xyz The screenshot image shows the effect of a hand grenade in the player's hand, and bot refers to a computer-controlled character. Add a picture
xyz j435 So where's the problem? I assume you have the throwing animation. Just release it when it looks good.
j435 xyz As I mentioned earlier, my question is under what conditions do bots in popular shooting games trigger the action of throwing grenades? I just need a reference idea.😭
j435 xyz I have throwing animations, all of which are complete. I just want to learn about the strategy of throwing grenades
xyz j435 Introduce a number of criteria. When all are met - throw. Criteria can be parametrized so the aggression is scallable. has grenade didn't throw for at least x seconds player in radius but not too close player in cover for last x seconds etc
Tomcat j435 I just want to learn about the strategy of throwing grenades Is there a destructible environment in the game? Grenades are used when an opponent (player) is not accessible for direct fire and depending on the availability (number) of grenades. That is, it depends heavily on the gameplay.
j435 Tomcat It's similar to CS and COD, which have no destructible areas. The grenade only interacts physically with the scene and will explode after being thrown out for a while