Search found 5 matches

by Mikeemoo
Tue Dec 08, 2015 11:33 am
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 29
Views: 274441

Ayuto wrote:Which values does it return?


It just returns gpGlobals;

Code: Select all

  result = gpGlobals;
  *(float *)(this + 20920) = v26 * v25;
  *(float *)(this + 20924) = (float)(v26 * v25) + *(float *)(result + 16);
  return result;
by Mikeemoo
Mon Dec 07, 2015 8:51 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 29
Views: 274441

Unfortunately CSBot::PickNewAimSpot is... strange. - it does a lot of checking to see if the enemies various body parts are visible - but then just ignores it all and aims for body part '1' (GUT). - then sets the 3 values which seem to be 'next place to aim' (this+20852, this+20856, this+20860) - th...
by Mikeemoo
Mon Dec 07, 2015 8:24 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 29
Views: 274441

I got the values from digging around in IDA. (ushort) player + 20944 seems to be the player index of the bots current enemy target. I'm then looking up the player for that index, finding their eye position, and setting it as the bots new target aim point. Edit: I'm setting the Y position based on th...
by Mikeemoo
Mon Dec 07, 2015 8:13 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 29
Views: 274441

Seems to work for me. Without the plugin they aim for the gut, when you enable it they switch their aim to the head.
by Mikeemoo
Mon Dec 07, 2015 7:10 pm
Forum: Plugin Development Support
Topic: Making bots aim for the head
Replies: 29
Views: 274441

Making bots aim for the head

Bots in CS:GO are pretty poor. This is a first attempt to try to make them aim at the head instead of the body. It improves them a little bit, but there's still quite a bit more work to do. I'm not a python coder, and I know very little about source engine - so apologies if this is rubbish! I'd like...

Go to advanced search