smilz0 / Left4Bots

Improvements for the L4D2 survivor bots
https://steamcommunity.com/sharedfiles/filedetails/?id=3022416274
34 stars 4 forks source link

Aiming and other improvements + new setting: "manual_attack_always" #55

Closed 4512369781 closed 10 months ago

4512369781 commented 10 months ago

Hi, I finish it, after some testing, I think there shouldn't be much of a problem.

This allows bots to aim without having to freeze them, so it doesn't affect movement. and bots can always look at the target without shaking their head. left4bots_afterload_aim.zip

smilz0 commented 10 months ago

Hey, can you add me on steam? I want to ask something.

4512369781 commented 10 months ago

Hey, can you add me on steam? I want to ask something.

I sent a friend request, my English is not very good and due to the time difference, the reply may be a bit slow.

4512369781 commented 10 months ago

Hi, I updated some things and tested them too, and they look better than the first version.

line 472 has a error, fixed. left4bots_afterload_aim.zip

4512369781 commented 10 months ago

update:

fix bots rotating when pick up item adjust shove jockey/hunter

left4bots_afterload_aim.zip

smilz0 commented 10 months ago

Thank you man, i like this. I also changed it so your aiming function is always active, not only while executing orders, but i will probably add a setting to enable/disable this when i merge the code. Btw i made some changes to the code of the entire addon to try optimize it more so your code needed some changes too in order to work. Here is the updated version. left4bots_afterload_new.zip I will test it a bit more and i will merge it when i can. Thx!

4512369781 commented 10 months ago

If it is activated all the time, I think the max range can be reduced to about 300, It only improves the self-rescue ability of the bot when surrounded, instead of having them kill any infected on sight.

smilz0 commented 10 months ago

The Range is configurable by changing the "manual_attack_radius" setting. I added "manual_attack_always" so the people can choose if they want your aiming function to be always active or only when executing the orders. It's 0 by default, 1 for expert difficulty. Let me know if there is any issue with it. I tested them on Dark Center Expert and i can tell there is a huge difference. Good job man!

smilz0 commented 10 months ago

Hey, i'm closing this so it will appear in the changelog of the next release. Thanks again