Skip to content

Draft: Add random movement and dodging for the bot

Grigory Vasilyev requested to merge h0tc0d3/xonotic-data.pk3dir:bot_dodge into master

Adds dodge and random movement for a bot with skill > 8. Which makes the game more like playing with a human. The bot also moves more left-right than back and forth to make it more like a strafe. At the moment, there is no complete check of the safety of movements. But I did not notice any criminal cases of suicide on the revdm3 map. On other open maps, everything is relatively good. Also slightly optimized the code and removed unnecessary calls to make vectors.

If g_midair is enabled on the map, then the bot stops jumping when dodging, as this makes it more vulnerable, instead jump the dodge vector increases by 1.5 times.

Added bot_ai_promode - Enable PRO Mode. Bot will play more agressive.

Edited by Grigory Vasilyev

Merge request reports