Page 2 of 2

Re: Making bots aim for the head

Posted: Fri Mar 23, 2018 2:17 am
by lemeshovich
thanks for your help especially for comments in code
but my server is crashing now when bots see each other:/

Re: Making bots aim for the head

Posted: Fri Mar 23, 2018 5:05 pm
by Kami
I just tested my code and it seems to run fine on windows. Not sure why it would crash on linux, sorry :(

Re: Making bots aim for the head

Posted: Fri Mar 23, 2018 11:12 pm
by lemeshovich
i just tested on windows and its working there aswell
but i need that for linux:(
I'm not sure, but it seems to me that the problem is in random.py for linux
but thank you anyway

Re: Making bots aim for the head

Posted: Fri Mar 23, 2018 11:31 pm
by Ayuto
No, it's probably player.view_entity, which is pretty much the same like this issue:
https://github.com/Source-Python-Dev-Te ... issues/233

Re: Making bots aim for the head

Posted: Sun Mar 25, 2018 6:47 am
by lemeshovich
is there any way to avoid it?

Re: Making bots aim for the head

Posted: Sun Mar 25, 2018 9:09 am
by Ayuto
The short term solution is to change PreEvent to Event. Then bots will aim on the head on the second shot.

Re: Making bots aim for the head

Posted: Mon Mar 25, 2019 9:35 pm
by manico
Is there any way to make them aim for the head even better? Like they used to do in CS: Source?