Commit graph

7930 commits

Author SHA1 Message Date
Sally Coolatta
cf1c7f9f10 FULLY fix the respawn finish line exploit, by adding a "P_HitSpecialLines" function 2020-05-29 11:49:32 -04:00
Sally Coolatta
2bfe5c9dd2 Noclip properly 2020-05-29 11:41:39 -04:00
Sally Coolatta
0879459142 Add distance based on air time
Using the respawn command gives you barely any distance, while flying off huge  MGZ pits gives you a bunch.
2020-05-29 10:37:34 -04:00
Sally Coolatta
d062a35a3a Huge respawn overhaul
- Moved respawn code to its own file
- Reorganized a lot of the code related to respawning
- As a result of the massive reorganization, I squashed several bugs. Most notably: mid-game joiners having weird spawns, being able to skip laps by respawning.
- Respawn lightsnake no longer takes you straight to your nextwaypoint -- it now has a minimum distance forward that it tries to put you at when you respawn.
2020-05-29 01:04:51 -04:00
Sally Coolatta
990733a5cc Minimum prediction distance
Lets them properly steer while respawning
2020-05-28 18:46:33 -04:00
Sally Coolatta
d2aa03b44e Change 3*rad/4 to rad
Should let them use slightly more of the track
2020-05-28 18:45:14 -04:00
Sally Coolatta
5f97070a47 FixedDiv should be here instead of FixedMul 2020-05-28 18:29:00 -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
fdb13b76d1 Make K_BotTopSpeedRubberband a function 2020-05-28 16:46:21 -04:00
Sally Coolatta
08198ef1b4 Don't display ping for bots 2020-05-28 13:50:47 -04:00
Sally Coolatta
b8b4d913a8 Reverse order bots are removed 2020-05-28 13:44:53 -04:00
Sally Coolatta
5ad6812f17 No modify power level for beating/losing to players with no power level set
This mainly is intended for bots, but also applies to splitscreen guests who also probably shouldn't have any power level
2020-05-28 13:42:11 -04:00
Sal
8c5e1a71aa Merge branch 'fix-ogl-log-crash' into 'master'
Fix opengl crashing on startup due to lack of checks

See merge request KartKrew/Kart-Public!179
2020-05-28 09:47:16 -04:00
Latapostrophe
5dbfff2f53 Merge branch 'master' of git.magicalgirl.moe:KartKrew/Kart into v2-master 2020-05-27 13:18:30 +02:00
Sally Coolatta
20b2dabae9 Merge branch 'pet-robo' into grand-pricks 2020-05-25 12:44:59 -04:00
Sally Coolatta
9933687c6e Merge branch 'master' into pet-robo 2020-05-24 17:18:02 -04:00
Sally Coolatta
4916516e2e Prevent duplicate skins, fix bots not being able to be disabled, change default to "off" 2020-05-24 17:12:58 -04:00
Sally Coolatta
5d77807a78 const radreduce, removed unused "dir" property 2020-05-24 16:16:01 -04:00
Sally Coolatta
597baf212b Allow rubberbanding up to exiting players 2020-05-24 15:55:26 -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
Sal
e18d71d562 Merge branch 'flame-shield-adjust' into 'master'
Flame shield adjust

See merge request KartKrew/Kart!270
2020-05-24 11:20:30 -04:00
Sally Coolatta
5e11068328 Merge branch 'pet-robo' of https://git.magicalgirl.moe/KartKrew/Kart into pet-robo 2020-05-24 11:13:26 -04:00
Sally Coolatta
56867fb203 Going above top speed makes radius smaller 2020-05-24 11:13:20 -04:00
Sally Coolatta
edfc14c506 Better steering
- If they're already turning in one direction, they are more likely to steer in that direction for objects
- Bots have to want to turn in 1 direction for a few frames in a row before it'll let them

Prevents twitching & makes them less indecisive in general
2020-05-24 11:12:38 -04:00
Sal
a31ac14e61 Merge branch 'pet-robo-toast' into 'pet-robo'
toast robo

See merge request KartKrew/Kart!268
2020-05-24 01:08:45 -04:00
Sally Coolatta
7cb574351d Merge branch 'master' into flame-shield-adjust 2020-05-23 21:51:03 -04:00
Sally Coolatta
12be3ea882 Increase handling with flame shield dash 2020-05-23 21:50:52 -04:00
Sally Coolatta
b1ec2d8f74 Scale with mapobjectscale 2020-05-23 21:34:30 -04:00
Sal
5d923226aa Merge branch 'let-spec-have-fun' into 'master'
Allow spectators through Block Players lines

See merge request KartKrew/Kart!266
2020-05-23 21:29:59 -04:00
Sal
f0ed1a58ce Merge branch 'demoman-tf2' into 'master'
Additional local explosion effects.

See merge request KartKrew/Kart!263
2020-05-23 21:29:38 -04:00
Sal
0524def20b Merge branch 'flameshield-spectate-fix' into 'master'
Fix Spectating With a flameshield on Crashing

See merge request KartKrew/Kart!269
2020-05-23 21:29:24 -04:00
Steel Titanium
52c8ba5d49 Fix opengl crashing on startup due to lack of checks
Also fixes the log file not being written to the home directory.
2020-05-23 16:21:26 -04:00
Sryder
f5b570da39 Set this variable after making sure the target and player exist. 2020-05-23 16:08:51 +01:00
Sally Coolatta
ca7154f521 Make rubberband air speed cap even harsher 2020-05-22 21:19:50 -04:00
Sally Coolatta
38ec153e90 A bit redundant 2020-05-22 20:49:33 -04:00
Sally Coolatta
f442b934cc Adjust wall steer radius with speed 2020-05-22 20:20:17 -04:00
Sally Coolatta
19f352e4a4 Commentate K_BotReducePrediction better, use angle rather than distance for path split picking 2020-05-22 20:19:58 -04:00
toaster
6d7dad12f0 Merge branch 'pet-robo' of https://git.magicalgirl.moe/KartKrew/Kart.git into pet-robo-toast
# Conflicts:
#	src/k_bot.c
2020-05-22 21:59:57 +01:00
toaster
56226fae45 Only iterate blockmap once for Random Items and Eggboxes. 2020-05-22 21:51:05 +01:00
toaster
84f277c323 Adjust the finish line detection to exclude a handful of circumstances I've tripped before. 2020-05-22 21:34:05 +01:00
toaster
97e261f443 Fix some issues with the tab rankings and end screen that bots exposed.
* Laps now have an initial zero instead of being directly indexed from 1, so start counting from there.
* Clean up the circumstances under which LAGLESS! is shown next to a name - specifically removing it from both non-netgames in general, and bots in netgames.
* Fix `(powertype == -1)` being broken on the intermission drawer, which was especially obvious with bots outside of netgames.
2020-05-22 21:27:55 +01:00
Sryder
7132eeab48 Merge branch 'fake-contrast-2-electric-boogaloo' into 'master'
Fake contrast 2: Electric Boogaloo

See merge request KartKrew/Kart!267
2020-05-21 19:08:30 -04:00
Sryder
ad51b791d5 Fix software not contrasting properly to +-2 2020-05-21 18:11:38 +01:00
Sryder
8d34ca0533 Use a const for the contrast, and double it for extra impact. 2020-05-21 17:55:33 +01:00
Sryder
195920acdc Update light offset on polyobjects when they rotate 2020-05-21 17:15:50 +01:00
Sryder
d4080e94f7 Better fake contrast.
Fake contrast for the segs are calculated at map load.
OpenGL only has the options "Standard" and "Smooth" now. Standard is default and replicates software. Smooth changes the contrast more smoothly depending on angle.
2020-05-21 16:32:34 +01:00
Sryder
6aad5608c4 Merge branch 'fix-clang-compile' into 'master'
Fix clang compiling

See merge request KartKrew/Kart-Public!176
2020-05-20 11:49:47 -04:00
Sryder
7509e1b06f Merge branch 'opengl-maybe-uninitialised' into 'master'
Some uninitialised variables that GCC 4.4 complains about

See merge request KartKrew/Kart-Public!177
2020-05-20 11:49:34 -04:00
Sal
d09c798534 Merge branch 'visplane-fix' into 'master'
Fix visplane getting allocated twice

See merge request KartKrew/Kart-Public!172
2020-05-20 10:11:06 -04:00