Commit graph

7165 commits

Author SHA1 Message Date
Sally Coolatta
3b6a2fed77 Make the safe distance from the road farther 2020-05-04 21:46:00 -04:00
Sally Coolatta
2188391d42 add botvars to resynch packet 2020-05-04 20:37:52 -04:00
Sally Coolatta
766c6da005 Give bots servernode, D_NumPlayers no longer counts bots 2020-05-04 19:49:18 -04:00
Sally Coolatta
2dfa20f758 Merge branch 'master' into pet-robo 2020-05-03 23:08:00 -04:00
Sal
aa948b1de3 Merge branch 'handling-fix' into 'master'
Handling code clean-up

See merge request KartKrew/Kart!249
2020-05-03 23:01:22 -04:00
Sal
805d7a17c6 Merge branch 'fun-signpost' into 'master'
Fun server signpost

See merge request KartKrew/Kart!248
2020-05-03 22:54:16 -04:00
Sal
b090b03514 Merge branch 'port-port' into 'master'
Random client port 2.2 port

See merge request KartKrew/Kart!250
2020-05-03 22:51:32 -04:00
James R
8cb58fb394 -clientport (it's back!) and -serverport, which is an alias to -port
If you ever need to, you can change the client port number.

(cherry picked from commit 843d9b9f0a345330d97c579e94f208eb2b65c156)
2020-05-03 18:35:52 -07:00
James R
5c0566d906 Use a pointer for port_name
Using strcpy is stupid because we don't know how long the argument would be.
There's no need for a buffer anyway.

(cherry picked from commit 4e321012894b2aa87e312597f19be26b30545a8b)
2020-05-03 18:35:51 -07:00
James R
77ddf635a5 Use a random port when connecting
(cherry picked from commit f584b61c93a97e1a9852f306acba673ced21e03a)
2020-05-03 18:35:51 -07:00
Sally Coolatta
ecb01ef83b Merge branch 'master' into pet-robo 2020-05-03 21:33:30 -04:00
Sally Coolatta
b9ff3403a9 Add missing netxcmdnames from james stuff 2020-05-03 21:32:12 -04:00
Sally Coolatta
cb12d1ebf8 Merge branch 'master' into pet-robo 2020-05-03 21:30:40 -04:00
Sal
25ba7e386f Merge branch 'conveyor-camera-jitter' into 'master'
Fix camera jitter after leaving a conveyor

See merge request KartKrew/Kart!245
2020-05-03 21:28:02 -04:00
Sal
765227d380 Merge branch 'speed-pads-tweaks' into 'master'
Speed pads tweaks

See merge request KartKrew/Kart!246
2020-05-03 21:27:54 -04:00
Sally Coolatta
cc87418db8 Handling code clean-up
- Cleans up multiple FixedMul instances, ensuring only fixed_t numbers are ever passed in.
- Prevents speed values from overflowing by giving it a maximum. This both gives you more control when moving above 200% top speed, and fixes the bug which corrupted your turn inputs (turning wrong direction, turning without pressing anything, etc) when moving too fast.
2020-05-03 21:26:57 -04:00
Sal
5a56271392 Merge branch 'more-debug' into 'master'
More item debug

See merge request KartKrew/Kart!185
2020-05-03 21:16:58 -04:00
Sal
98f33790f8 Merge branch 'fucking-spring-fix' into 'master'
Fix items vs springs crash

See merge request KartKrew/Kart!247
2020-05-03 21:03:06 -04:00
Sally Coolatta
48ba151d98 Rather than showing random added skins, show random other players in the server on the signpost! 2020-05-03 20:58:12 -04:00
Sally Coolatta
c9b2396efb Fix items vs springs crash 2020-05-03 20:12:01 -04:00
Sally Coolatta
d4efbb710b Lost fix 2020-05-03 19:45:59 -04:00
Sal
bd9c68183a Merge branch 'resume' into 'master'
Music resuming/fading

See merge request KartKrew/Kart!222
2020-05-03 19:35:46 -04:00
James R
e52d569c58 Use all your momentum to push back the camera 2020-05-02 19:10:38 -07:00
James R
01cdc1af49 Also preserve player angle on speed pads 2020-05-02 19:10:05 -07:00
James R
652b7bbb9e Retain drift on speed pads 2020-05-02 19:10:04 -07:00
Sally Coolatta
cb34ea1388 Consider FOFs when figuring out sectors to be careful near 2020-05-02 02:01:39 -04:00
Sally Coolatta
e6e2cd5d82 Adjust air speed cap easing with bot rubberbanding 2020-05-02 00:54:54 -04:00
Sally Coolatta
df099864b6 Whoops 2020-05-01 23:45:12 -04:00
Sally Coolatta
69e5cf8205 Bots can use bubble shield and flame shield, albiet a bit simplisticly
This means they can now use ALL items!
2020-05-01 23:44:03 -04:00
Sally Coolatta
664a9528ed Eggbox stuff
- Bots can roll & use eggboxes now
- Bots can be "tricked" by eggboxes and treat them like normal items, depending on their difficulty and how many normal items are around them.
- If exploding and in 1st place, they'll slow down to try and find someone to explode next to.
- Item usage is difficulty dependent, and thus far more aggressive for the rivals
2020-05-01 22:55:58 -04:00
Sally Coolatta
b9e24d921c Bots reduce their rubberbanding top speed if they're facing the wrong way 2020-04-30 17:28:34 -04:00
Sally Coolatta
1fcfdd5bae Bot hints
Thing type 2004, adds a map-defined point for bots to gravitate towards or away from.
Angle: Changes radius, defaults to a 32 radius (or 64x64 area) without.
Ambush: When off, makes bots steer towards. When on, makes bots steer away.
Parameter: Changes how much the bot steers away/towards this point. If 0, defaults to 2.

(also, made bots ignore strong offroad if they could take a shortcut)
2020-04-30 14:15:10 -04:00
James R
a1502046cf Merge remote-tracking branch 'origin/master' into resume 2020-04-30 09:32:40 -07:00
Sally Cochenour
174a76f7e8 Merge branch 'master' into pet-robo 2020-04-28 21:10:16 -04:00
Sally Cochenour
fb68e4f164 Merge branch 'master' into pet-robo 2020-04-28 20:20:05 -04:00
Sal
fae498f097 Merge branch 'fof-things-suck' into 'master'
Generic raise things line special, Waypoint Riser and Waypoint Anchor

See merge request KartKrew/Kart!233
2020-04-28 20:19:03 -04:00
Sally Cochenour
c06c4049c4 Bots play more careful around damage, insta-kill, and strong offroad 2020-04-28 14:24:09 -04:00
Sally Cochenour
44334602e5 New "wall steering"
Rather than trying to steer away from walls (and failing), just pull the predicted point back and make the radius stricter.

Not an ideal solution compared to what the other method was trying to go for, but this has a better success rate -- and even in cases where false positives come up (like many instances Ezo pointed out), they will no longer be incapacitated by it.
2020-04-27 17:06:36 -04:00
Sally Cochenour
be70afcbbd Object steer polishing
Notably, looks in an oval area instead of a circle
2020-04-27 13:42:01 -04:00
Sally Cochenour
80b59382f4 Tighten up radius slightly 2020-04-26 22:41:00 -04:00
Sally Cochenour
6846d7c3a1 Bring back strong rubberbands now that they can properly predict 2020-04-26 20:36:57 -04:00
Sally Cochenour
6b3e7c8e16 Adjust prediction future sight based on the bot's handling 2020-04-26 20:36:40 -04:00
Sally Cochenour
4ec61a2e11 Subtract your distance to the nextwaypoint from the distance to predict ahead
Helps the GHZ turn out a LOT, and other instances with waypoints far apart from each other
2020-04-26 13:06:53 -04:00
Sal
c50670752a Merge branch 'prevent-div-by-zero' into 'master'
Prevent divide by zero in slopes code

See merge request KartKrew/Kart!243
2020-04-25 01:37:54 -04:00
James R
48b7c75e47 Why is this still here 2020-04-24 20:39:54 -07:00
James R
4b2c13da0c Merge remote-tracking branch 'origin/master' into fof-things-suck 2020-04-24 20:36:30 -07:00
Sal
720ec3ba8a Merge branch 'scroll-back-and-front' into 'master'
Line special 507 - Scroll front and back textures of tagged lines by front and back texture offsets

See merge request KartKrew/Kart!239
2020-04-24 20:54:23 -04:00
Sally Cochenour
e26bb897d6 Prevent divide by zero in slopes code
Not exactly sure why this happens, or if this is the correct way to fix it
2020-04-23 14:18:43 -04:00
Sal
c53b09c48c Merge branch 'update-cmakelists' into 'master'
Add new files to src/CMakeLists.txt

See merge request KartKrew/Kart!242
2020-04-23 12:48:43 -04:00
Sally Cochenour
372544d28f Merge branch 'master' into pet-robo 2020-04-22 21:54:40 -04:00