English Bots Skill

6 replies
Goto Page
To the start Previous 1 Next To the start
03.12.22 05:16:09 pm
Up
Mami Tomoe
User
Offline Off
It was today that I found out that the standard AI has no impact on the behaviour of the cs2d cmd bot_weapons setting.
That is baked into CS2D.

Therefore, I must ask, does the same apply to cs2d cmd bot_skill?
Because in the built in standard AI for the bots, there's only one check for the skill setting, and that is if the bot should buy armour on spawn or not.
That seems odd, so is there internal logic handling bot skills or is bot skills just simply not used very much (only once) by default?
It's hard being the best girl in the whole wide world
04.12.22 11:00:12 am
Up
DC
Admin
Offline Off
Bot skills are used internally. They affect these things:

• what you already found out: if bots buy kevlar(+helmet).

• perception range: how close do enemies have to be to be so bots aim at them. This is only a difference of like 30 pixels between worst and best skill so it's doesn't have a huge impact in most scenarios.

• max rotation speed: This affects how good/fast bots are at aiming. Probably has the biggest impact on difficulty!
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
04.12.22 01:11:07 pm
Up
Mami Tomoe
User
Offline Off
Are the last two things not modifiable by the Lua bots folder?
This is what I mean by "baked in".
It's hard being the best girl in the whole wide world
04.12.22 01:44:32 pm
Up
DC
Admin
Offline Off
Yes, these skill effects are hard coded and can't be changed with Lua.

The only way to work around this would be not using the built-in methods cs2d lua cmd ai_findtarget (to get rid of the perception range skill impact) and cs2d lua cmd ai_aim (to get rid of the rotation speed skill impact). Instead you would have to find targets manually and also rotate bots manually using cs2d lua cmd ai_rotate.

Probably replacing cs2d lua cmd ai_findtarget is not worth it because it will (probably) be much slower using pure Lua and also, as I already said, the impact of the skill isn't huge there.

Replacing cs2d lua cmd ai_aim with your own rotation logic shouldn't be super difficult though and probably also shouldn't affect performance that much.
edited 1×, last 04.12.22 01:52:19 pm
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
04.12.22 01:51:54 pm
Up
Mami Tomoe
User
Offline Off
Thank you for the vast amount of knowledge.
I don't seek to change any of that, rather I only seek to understand it for I'm making a bot A.I. from nearly scratch and I needed this cleared up so I'll know what I'm going up against.

Thanks again.
It's hard being the best girl in the whole wide world
04.12.22 01:59:46 pm
Up
DC
Admin
Offline Off
You're welcome. I improved the documentation for the related commands a bit so things are more clear.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
04.12.22 07:15:49 pm
Up
Mami Tomoe
User
Offline Off
You might want to document the "hooks" for bots as well.
Although they're not added, and are documented in the default folder, having them on the website too couldn't harm.
It's hard being the best girl in the whole wide world
To the start Previous 1 Next To the start