Making bots aim for the head

Please post any questions about developing your plugin here. Please use the search function before posting!
lemeshovich
Junior Member
Posts: 8
Joined: Mon Mar 19, 2018 9:32 pm

Re: Making bots aim for the head

Postby lemeshovich » Fri Mar 23, 2018 2:17 am

thanks for your help especially for comments in code
but my server is crashing now when bots see each other:/
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: Making bots aim for the head

Postby Kami » Fri Mar 23, 2018 5:05 pm

I just tested my code and it seems to run fine on windows. Not sure why it would crash on linux, sorry :(
lemeshovich
Junior Member
Posts: 8
Joined: Mon Mar 19, 2018 9:32 pm

Re: Making bots aim for the head

Postby lemeshovich » Fri Mar 23, 2018 11:12 pm

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
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Making bots aim for the head

Postby Ayuto » Fri Mar 23, 2018 11:31 pm

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
lemeshovich
Junior Member
Posts: 8
Joined: Mon Mar 19, 2018 9:32 pm

Re: Making bots aim for the head

Postby lemeshovich » Sun Mar 25, 2018 6:47 am

is there any way to avoid it?
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Making bots aim for the head

Postby Ayuto » Sun Mar 25, 2018 9:09 am

The short term solution is to change PreEvent to Event. Then bots will aim on the head on the second shot.
manico
Junior Member
Posts: 1
Joined: Mon Mar 25, 2019 9:27 pm

Re: Making bots aim for the head

Postby manico » Mon Mar 25, 2019 9:35 pm

Is there any way to make them aim for the head even better? Like they used to do in CS: Source?

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 22 guests