Commit graph

25 commits

Author SHA1 Message Date
Sally Coolatta
436b6d50ea Bot predict nudging scale is based on the prediction's radius 2021-12-18 16:31:08 -05:00
Sally Coolatta
19463d6b20 New bot prediction wall detection
Instead of searching for walls around the player, and then deciding to make the radius tighter if it found anyway, it instead checks if the waypoint it's trying to predict towards was blocked by any walls / hazards.

Needs adjusted some, I think its being pulled back too hard sometimes, but I am optimistic about some of the improvements I already saw.
2021-12-10 17:42:00 -05:00
Sally Coolatta
3536c73b66 Fix eggbox stealth being bugged and never being used... 2021-11-28 15:08:54 -05:00
toaster
00972a83d2 remove the prefix since everything seems to function 2021-04-17 11:30:08 +01:00
toaster
b3d006b093 structs gunched 2021-04-17 00:27:13 +01:00
Sally Coolatta
cb655f863c Reduce object distance by its radius
Just gives bot hint size a purpose again, even if it's minor.
2021-02-26 22:43:10 -05:00
Sally Coolatta
03c13052e8 Fix bot hint weighting 2021-02-26 22:37:46 -05:00
Sally Coolatta
ebaef5d0af Flip side properly for objects to go towards. 2021-02-26 19:46:52 -05:00
Sally Coolatta
00227ee7f0 Don't ever go too far behind the bot 2021-02-26 19:42:08 -05:00
Sally Coolatta
9f91c2dcdc Buff the object nudging now that wall detection doesn't step on its toes :) 2021-02-26 19:28:49 -05:00
Sally Coolatta
bbfad3a544 Adjust wall detection
Wall detection range was doubled, how much the prediction is adjusted was halved. This is a much nicer middle-ground compared to what it was doing before.
2021-02-26 19:04:24 -05:00
Sally Coolatta
59fa615cc8 Update comment 2021-02-26 06:12:19 -05:00
Sally Coolatta
c7e061155a Add weighting system back into prediction nudging
Simply adds the same object to the list several times. Necessary because otherwise rings are over-prioritized.
2021-02-26 05:44:57 -05:00
Sally Coolatta
ffaa4e2aa2 Differentiate between which side an object is on
This means that if there's objects on both sides of the bot, then the tie is broken by which side has the most objects. Before, it would average out to the middle, so they wouldn't swerve at all, which is kind of stupid for rings, but can ruin the bot's performance for dodging items & players especially!
2021-02-26 04:26:50 -05:00
Sally Coolatta
7eac54a749 Adjust nudging to values that feel nice 2021-02-26 03:21:33 -05:00
Sally Coolatta
0fb97a1b16 Use the proper variable for the average position 2021-02-26 02:50:20 -05:00
Sally Coolatta
43a92892e9 New turning towards objects style 2021-02-26 01:58:13 -05:00
Sally Coolatta
e16c7d722f Cherry-pick e1b265df2 2020-11-16 19:55:28 -05:00
Sally Coolatta
3e446a167c Restructure how damage works in kart COMPLETELY
Instead of doing its best to avoid P_DamageMobj, it embraces it, using the damagetype system to decide how the player takes damage. Overall less stupid.
2020-08-19 00:55:36 -04:00
Sally Coolatta
51aef1ce75 Fix some of the dehacked tables, change doomednums of haunted heights stuff to not conflict with items/waypoints, use "rings" variable instead of "kartstuff[k_rings]" 2020-08-16 01:46:54 -04:00
Sally Coolatta
9efdc98de6 Makes it through all kart files
All that's left is SDL, OGL, maybe also Lua
2020-08-15 04:42:56 -04:00
Sally Coolatta
42419f7bc6 Add comments for functions 2020-06-04 17:14:14 -04:00
Sally Coolatta
896c6b3952 Rewrite K_BotHatesThisSector slightly
Fixed a lot of its false positives, as well as some copy-paste errors
2020-05-28 17:58:35 -04:00
Sally Coolatta
dbc30da69f Dial back the bot steering changes a bit 2020-05-24 15:55:10 -04:00
Sally Coolatta
02605a5ace Split bot code into multiple files & clean up 2020-05-24 15:08:10 -04:00