Gadavre wrote:I have no such code. The bot shoots as it is specified to him in the original game. yes, i m coding into a custom sniper rifle. But bots do not shoot at long range
with a standart sniperrifle.My SniperRifle does not affect the behavior of the bot.
I suggest community to fix it. I don't know what to do.
Funny that you suggested the community to fix it (like really? Not all of us can do it!). It's a lot more complicated than that. Coding is beyond the simplification of getting things up and running in easy mode, and, a lot of time to learn to learn to code properly and how to work on some progress to build up.
Just like planning a house, you'd need knowledge and specific requirements, the tools, and your own design in mind.
So to resume, I can tell that you're simply lying that you said you have no such code. The code you posted up there in beginning of the thread, IS part of a code...
Not sure what you rather wanting to do with the sniper, so we have no idea what's going on without the full context of details of what you are trying to do.
But there can be errors in the code you are trying to work on already so we don't know where to look if you modify something else already in full source.
So tbh, if you wanting to make your own sniper rifle in custom, look at some that are already made. No need to modify anything else to swap the engine into trouble and errors by modifying bots and everything else.
Just my 2 cent.