Commit graph

20115 commits

Author SHA1 Message Date
James R
f3668fbd7c Merge branch 'top-final' 2022-09-29 10:52:45 -07:00
James R
ff05234783 Merge branch 'water-skip-conditions' into 'master'
Fun times at the pool

See merge request KartKrew/Kart!710
2022-09-29 17:18:15 +00:00
James R
8529e8b95e Make Garden Top backwards throw leap consistent across player scales 2022-09-29 10:02:28 -07:00
Sal
3e378ecd9b Merge branch 'switching-racers' into 'master'
Skin change condition tweak

See merge request KartKrew/Kart!491
2022-09-29 16:42:57 +00:00
James R
cc7ceff30e Clamp Top float modulation 2022-09-29 09:35:12 -07:00
Sal
0acaf80d2c Merge branch 'refactor-weaponpref' into 'master'
Refactor weapon pref

See merge request KartKrew/Kart!715
2022-09-29 16:31:33 +00:00
Sal
9f7a04f4d5 Merge branch 'kill-twod' into 'master'
Kill last of MF2_TWOD

See merge request KartKrew/Kart!716
2022-09-29 16:30:32 +00:00
James R
e30232e103 Kill last of MF2_TWOD -- toggletwod, line action 432 2022-09-29 03:16:11 -07:00
James R
36a40d0971 Refactor weapon pref into one place 2022-09-28 21:23:49 -07:00
James R
b7852c94d4 Merge remote-tracking branch 'origin/master' into switching-racers 2022-09-28 19:13:17 -07:00
James R
7ab84ebd2f Merge remote-tracking branch 'origin/chat-flood-fix' 2022-09-28 19:06:38 -07:00
James R
c5b132e8db Fix -Wsign-compare 2022-09-28 18:28:19 -07:00
James R
56a5432f41 Adjust most player physics for Garden Top
- Auto accel
- 800% acceleration
- 110% top speed
- Infinite tether like Lightning Shield

- Resists going upward on slopes
- Less friction

- Can always turn your sprite
- Turning speed does not get weaker at high speeds
- Turning speed is normal underwater
- Keeps moving in momentum direction, regardless of how
you turn
- Releasing a drift redirects all your momentum in that
direction

- Floats over bananas, damage sectors and offroad
- No stair janking while floating

- Hold drift for extra gravity. Not only does this fast
fall (this stacks with true fast falling), it builds
momentum down slopes too!

- Parries Big Players (Grow), Invincibility, Flame Shield
and, of course, other Tops -- all except if you're
grinding
- Wipes out anyone you touch
- Infinite weight like Bubble Shield

- Does not water skip
- Does not water run while holding drift
2022-09-28 02:01:37 -07:00
James R
5063a4acf1 The Garden Top
This is all the visual effects and item logic of the Top
minus (almost all [1]) physics adjustments when a player is
riding one.

While on a Top:

- Otherwordly humming while floating

- Cannot drift [1]. Instead, holding drift begins grinding
the Top into the ground -- sparks fly out
- Sprite tilts left and right as you turn
- No wheel screech when turning too far
- Speed lines while holding drift
- Tripwire Boost effect scales to cover you AND the Top

- One hit and you lose it

- Throwing forward, getting hit or just losing it because
you were in first place for too long: the Top flies out
from under you and begins snaking like crazy
- Throwing backward also makes the Top fly out from under
you but it also thrusts you forward. The Top dies
instantly so it's not dangerous ;-)

- If you're in first for too long, it begins vibrating
- If you tumble, it dances across your entire screen

A loose top will tumble anyone it hits.
2022-09-28 02:01:37 -07:00
James R
b5cdf25298 Add P_LerpFlip 2022-09-28 02:01:37 -07:00
James R
a6f206cd62 Add topdriftheld and topinfirst to player_t 2022-09-28 02:01:37 -07:00
James R
aba30a1c16 Rebalance item odds around Garden Top 2022-09-28 02:01:35 -07:00
James R
77bc259986 Separate water skipping condition into K_WaterSkip 2022-09-28 00:07:26 -07:00
James R
7b301452cc Add Garden Top related states
MT_GARDENTOP
S_GARDENTOP
KITEM_GARDENTOP
KSHIELD_TOP
2022-09-28 00:07:25 -07:00
James R
d66b82605b Cleanup order and indentation of item definitions 2022-09-28 00:07:00 -07:00
Sally Coolatta
de506b8ff1 Merge branch 'master' into water-skip-conditions 2022-09-27 19:21:20 -04:00
Sally Coolatta
66da84f1f7 Fixes for various maps
- Don't skip on sloped water. Prevents water skipping on the top of the waterfall and then continuing the skip onto the water at the bottom in Aqueduct Crystal.
- Fix Nova Shore regression in this branch by prevents water running if you can step down onto real ground.
2022-09-27 19:18:06 -04:00
Sally Coolatta
e34ec94721 Smoothly adjust underwater turn nerf
The actual issue was that turning was nerfed by a flat x0.5 when strafing was enabled, but the strafe amount was speed based. This meant that you got way less turning at low speed, and no strafe to make up for it.
2022-09-27 18:14:44 -04:00
Sal
5d8df43b10 Merge branch 'cheats-streamline' into 'master'
Streamline cheats

See merge request KartKrew/Kart!697
2022-09-27 20:23:04 +00:00
Sally Coolatta
9159f5da05 kartdebugitem defaultvalue = None
Should remove console spam
2022-09-27 16:16:45 -04:00
Sally Coolatta
b7bfa5a5c7 Don't try cheater warning if NULL netvar 2022-09-27 16:16:04 -04:00
Sally Coolatta
6a37c1962f Merge branch 'cheats-streamline' of https://git.do.srb2.org/KartKrew/Kart into cheats-streamline 2022-09-27 15:58:06 -04:00
Sally Coolatta
d61c9aefe1 Use cvar->string instead of svalue for the check 2022-09-27 15:57:31 -04:00
Sally Coolatta
9d383dd38f Use cvar->value instead of svalue for the check 2022-09-27 15:55:08 -04:00
Sally Coolatta
85499045f9 Merge branch 'master' into cheats-streamline 2022-09-27 15:41:17 -04:00
Sally Coolatta
c7241bdbe6 Merge branch 'cheats-streamline' of https://git.do.srb2.org/KartKrew/Kart into cheats-streamline 2022-09-27 15:24:40 -04:00
Sally Coolatta
fa343d4ecd Strip items when using kartgiveitem
Fixes some annoyances I have when using this command
2022-09-27 15:24:17 -04:00
Sally Coolatta
fd7cadd566 Strip items when using kartgiveitem
Fixes some annoyances I have when using this command
2022-09-27 15:23:26 -04:00
Sally Coolatta
e2b2b7785c Cheater warning 2022-09-27 15:22:59 -04:00
toaster
e03a97c18a Fix double i++ in M_LoadJoinedIPs 2022-09-27 19:52:37 +01:00
Sally Coolatta
562f5398a0 Properly say when a cvar is a cheat 2022-09-27 14:25:08 -04:00
Sal
be0b700b76 Merge branch 'joinedip-fixes' into 'master'
Joined IP fixes

Closes #287 and #288

See merge request KartKrew/Kart!694
2022-09-27 18:10:19 +00:00
Sal
8ced33c236 Merge branch 'turning-off-by-one' into 'master'
Fix right turning being slightly weaker than left turning

See merge request KartKrew/Kart!709
2022-09-27 18:02:54 +00:00
Sally Coolatta
afc2a0dcdc Properly spawn effects for the other objects 2022-09-27 13:09:30 -04:00
Sally Coolatta
6ca979d53e Oops, thought this was a splash, not the gasp...
Whoops!
2022-09-27 12:35:23 -04:00
Sally Coolatta
841bcf3619 Allow non-players to water skip/run
Water skipping is enabled for Orbinaut, Jawz, and Ballhog currently. Jawz can water run, as long as their target is on/above the plane they're at -- once their target goes into the water, they'll start skipping.
2022-09-27 12:31:33 -04:00
Sally Coolatta
81926947d5 Merge branch 'master' into water-skip-conditions 2022-09-27 12:02:34 -04:00
Sal
699666a5d3 Merge branch 'better-splash' into 'master'
TERRAIN expansion pak

See merge request KartKrew/Kart!680
2022-09-27 16:02:07 +00:00
Sally Coolatta
884f710269 Add minimum strafe to water physics 2022-09-27 11:43:55 -04:00
Sally Coolatta
f6b62b6ac6 Clean up water skip conditions
- Use Digital Empire's water running conditions (fully prevents ever being able to water-run on water that isn't level)
- Code cleanup of other parts of this code
- Made the threshold for water skipping much more strict
- Fixed water skip being scaled to player scale instead of map scale
- Make water run / tripwire easier for rubberbanding bots
2022-09-27 11:07:25 -04:00
James R
3d2f6770a5 Divide G_PlayerInputAnalog values by JOYAXISRANGE
Previously right shifted by 10, which should've been
equivalent to divide by 1024. It returned -799 or 800 for
a full turn in either direction though.

This commit lets turning values reach KART_FULLTURN in
either direction.
2022-09-26 20:44:09 -07:00
toaster
52f0217bac Completely rewrite how joined IPs are saved and written... again
- Use strlcpy instead of strcpy to prevent footguns
- Use fprintf instead of raw fputs
- Enforce consistent MAX_LOGIP (255) length for each component instead of a combination of magic number 255 and MAXSTRINGLENGTH (32!?) depending on where you look
- Fix fun memory leak in waiting
- Avoid pointless strlens
2022-09-26 21:28:33 +01:00
toaster
dfce863449 Dummy out connectedservername usage for now, as it's only ever written to when YOU host 2022-09-26 20:52:08 +01:00
toaster
5779ac6a05 Re-order IPs on successful connection to recent server 2022-09-26 20:41:14 +01:00
toaster
e58a109a2b Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into joinedip-fixes 2022-09-26 20:16:34 +01:00