Commit graph

98 commits

Author SHA1 Message Date
Sally Coolatta
e287474ef1 Slowest bot rubberbanding at the end of maps 2024-04-29 01:35:29 -04:00
Sal
b39f69c403 Merge branch 'tutorial-shorten' into 'master'
Tutorial shortening

See merge request KartKrew/Kart!2306
2024-04-26 18:58:24 +00:00
Sally Coolatta
2b46d49a3c Nerf tutorial challenge difficulty even harder
Screw it, it's not even a challenge anymore lol
2024-04-25 23:59:49 -04:00
Eidolon
140a56f513 Add build option to disable discord RPC 2024-04-25 21:05:58 -05:00
James R
5561928ad4 Tutorial Skip: clear bots so Eggman bot does not carry over from Tutorial 2024-04-25 17:45:33 -07:00
Sally Coolatta
f5777f1f20 Reduce tutorial challenge difficulty
All Lv 6, harder than Robotnik Coaster but not for maniacs like before.
2024-04-25 16:28:01 -04:00
Sally Coolatta
abef7460b5 Don't transfer clientpowerlevels to a bot 2024-04-10 01:41:00 -04:00
Sally Coolatta
7dfa597c7d SRB2 -> DRRR copyright in src, acs, android folder
Be consistent with toaster's recent changes to copyright
2024-04-05 02:08:23 -04:00
toaster
8c269b26b9 Guarantee 0 Match Race bots on Titlescreen (resolves #1216) 2024-03-29 22:04:17 +00:00
toaster
a4cec98c26 K_SetNameForBot
Func specifically for setting name for CPU players.
Lets anything go in offline mode, as per previous behaviour.
In online mode, attempts to append a slot-specific char before running EnsurePlayerNameIsGood (which removes characters at the end if a pre-existing match is found).
2024-03-18 19:23:55 +00:00
Sally Coolatta
0904728046 Bots don't fastfall while respawning 2024-03-13 05:07:22 -07:00
Sally Coolatta
dc8a3e712a Reduce rubberbanding on ice & in offroad 2024-03-13 05:07:16 -07:00
toaster
2bfcfeb560 Fix Skin unlocks at the beginning of replays
- DXD_JOINDATA: Actually correctly write demo data
- SetPlayerSkinByNum, bot skin iteration code: Use demo skinlist index instead of actual skin ID
2024-03-05 13:21:38 -08:00
AJ Martinez
b81fdef870 Fix some low-hanging comments 2024-03-02 00:24:34 -07:00
AJ Martinez
36c2f19bc4 Top-end difficulty 1.0->1.05 2024-03-02 00:21:02 -07:00
AJ Martinez
1ccd24c280 Stronger bot rubberbanding, weaker high-end bots 2024-03-01 22:07:33 -07:00
AJ Martinez
64dd306138 Revert "Make ticcmd throwdir -1, 0, or 1, add deadzone"
This reverts commit 9028668104.
2024-02-28 18:33:07 -07:00
James R
6c2736bd1d Move party construction to G_AddPlayer
- Fixes crash when a player leaves when viewing a replay
- Slightly refactors player joining code (including bots)
2024-01-28 23:02:57 -08:00
Sal
5a659d7a6c Merge branch 'snifferbot-spectapalooza' into 'master'
Prevent bots from smelling spectators (resolves #238)

Closes #238

See merge request KartKrew/Kart!1801
2024-01-14 21:05:43 +00:00
AJ Martinez
3b610b140c Merge branch 'modify-throw-threshold' into 'master'
Make ticcmd throwdir -1, 0, or 1, add deadzone

See merge request KartKrew/Kart!1802
2024-01-13 00:39:07 +00:00
James R
076e2ad650 debugbots: do not spawn prediction mobjs while game is paused
Ticcmd code runs while the game is paused, so this leads
to infinite mobjs being spawned without being cleaned up.
2024-01-11 02:48:46 -08:00
Eidolon
9028668104 Make ticcmd throwdir -1, 0, or 1, add deadzone 2024-01-09 19:13:03 -06:00
toaster
dcd4f37759 K_BotRubberbandDistance: Don't sniff spectators 2024-01-09 20:37:32 +00:00
James R
331be71735 Add forcebots cheat, spawn bots in non-GTR_BOTS gametypes 2024-01-08 19:01:05 -08:00
Sal
6a241772fc Merge branch 'bots-disable-no-ring-shooter' into 'master'
No Ring Shooter in disable controls bot controller

See merge request KartKrew/Kart!1774
2024-01-04 11:02:01 +00:00
Sally Coolatta
6736f8f26f Fix bot Flame Shield 2024-01-03 01:22:15 -05:00
Sally Coolatta
05cbd90e4e No Ring Shooter in disable controls bot controller 2024-01-03 00:08:51 -05:00
Sal
439115927b Tracy extensions 2023-12-30 09:04:00 +00:00
Sal
075691fa85 Rebalance bot rubberbanding, take 2 2023-12-25 01:25:07 -05:00
Sally Coolatta
de59fedc56 Fix rubberband value being reset every frame 2023-12-25 01:24:39 -05:00
Sally Coolatta
fac381cdf1 Fix spindash behavior regression from abde576c 2023-12-25 01:24:39 -05:00
Sally Coolatta
b14f29daa2 Bots account for underwater strafing 2023-12-25 01:24:39 -05:00
Sally Coolatta
abde576c58 Enforce const in bot ticcmds
There were a few remaining cases of bot ticcmd generation editing player structures directly. Fix all of this and make as much of it pass const player pointers so this physically can't be allowed to happen ever again. Appears to improve bot sync in netgames & demos bot support, but I have not tested extensively.
2023-12-22 23:28:08 -05:00
Sally Coolatta
266c745bda Set trySpindash to false when using bot controller 2023-12-21 22:23:57 -05:00
Sally Coolatta
1911a45e3f Simplify forced bot direction behavior
Resolves #741
2023-12-19 09:14:04 -05:00
Sally Coolatta
1ff3706e64 Revert bot complexity modifier ceiling 2023-12-18 14:38:11 -05:00
toaster
8e7e1938a8 The ROYGBIV Rangers
Special set of Eggrobo for the Tutorial Challenge
Basically just surface-level stuff but I'm sure we'll get fanart of them beating you up or something
2023-11-16 23:01:59 +00:00
toaster
0762b93ef2 Tutorial skipping challenge - first pass
- Go to a MainCfg-specified map on its guessed gametype
    - `TutorialChallengeMap = RR_ZonedCity`
- Some unique settings
    - K_CanChangeRules() == false
    - If GTR_CIRCUIT, make it Hard Speed
    - If GTR_BUMPERS, die in one hit
    - If GTR_BOTS, make them all difficulty 13 of the default bot skin
    - No Medals or Spray Cans during the Tutorial Challenge
- Complete the stage in 1st place or don't bother at all
- Has the "Give up" menu option available, but no "Try Again"
- Condition for successfully completing the Tutorial Skip
    - `Condition1 = TutorialSkip`

Related bugfixes:
- Correctly wipe skipstats when returning to the Title/menus
- Typing of `ultimatemode` (hey this isn't accessible by anything right now I wonder)
2023-11-16 21:44:52 +00:00
toaster
239388a1fa Add TRICKSTATE_ constants
Replaces the magic numpers <-- typo I have left in for posterity
2023-11-07 23:06:50 +00:00
Oni
bb537b8de9 Merge branch 'bot-controller' into 'master'
Revamped Bot Controllers

See merge request KartKrew/Kart!1574
2023-10-24 01:03:01 +00:00
Sally Coolatta
896829c904 Add fof support for new bot controllers 2023-10-21 04:00:09 -04:00
Sally Coolatta
de9780ab3f Bot controller is stored on the sector now
- Moved destination tag off of linedef tag and into args.
- Bot controller values can be changed mid-level with ACS. (Linedefs using type 2004 will still be activated on level load.)
- Add flag to make bots fastfall
2023-10-21 03:36:26 -04:00
toaster
acad8754c8 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into break-through-them-all 2023-10-17 23:32:08 +01:00
Sally Coolatta
6bd14c83ba Bots don't spindash in weak offroad
Intended to improve Sunsplashed
2023-10-07 23:20:06 -04:00
toaster
8bb41b787b Fix SECRET_SKIN locks preventing Rivals from showing up
Previously, there was a permanent exception for Eggrobo (the default bot skin).
Now that exception is generalised for the specific skin the bot is being assigned, which we assume is intentful and correct.

In addition, the randomclass PR_BOTS now controls K_RetireBots as well, matching the other two random calls done for bot skins.
2023-10-05 18:12:32 +01:00
Sal
bb8499b43d Track-based bot difficulty 2023-09-23 03:28:43 +00:00
Eidolon
cfec5973c5 Fix bot prediction finally pointer 2023-09-10 21:33:05 +00:00
Sally Coolatta
bfecf45110 Use srb2::finally on bot predictions
I'm not sure exactly where the bot code leaks, other than knowing its the prediction for sure (because the prediction is the only memory bots ever allocate), but srb2::finally is cool and lets me not care :)
2023-09-10 03:20:29 -04:00
Renamed from src/k_bot.c (Browse further)