Dadido3 / D3bot

A very primitive AI for GMod bots designed to work with Jetboom's Zombie Survival gamemode.
40 stars 28 forks source link

Add probability for bot to miss a hit #30

Open arthurgeron opened 5 years ago

arthurgeron commented 5 years ago

Hi,

People comment a lot how bots have a "aimbot" type of aim, if you're in a certain range, doesn't matter what you do they will hit you.. If we could set like a chance, like 1 in 4 chances of missing ( a player, not props) a hit it would feel way more organic to play against bots.

Dadido3 commented 5 years ago

For now you can change the D3bot.BotAttackAngLerpFactor variable in lua/d3bot/sv_config.lua. Decreasing it should make the bot follow its target slower. But the bots will still do a 180 turn relatively fast.

I can change bot movement, to turn at a maximum speed. Additionally i can add a strength setting for random movements when bots are in melee mode. If i find some time i can experiment with that in a few days.

Prop attacking is not influenced by any of that, because bots don't actively attack props.

arthurgeron commented 5 years ago

I'm trying that out, thank you!