toaster
a43a762b46
Instead of hacking ticcmd generation, add/modify helper functions acting as intermediaries that add the necessary changes.
...
* Introducing K_GetKartButtons(player_t), for adding false presses to.
* K_GetForwardMove(player_t) takes kickstarting into account, and is now applied to engine sound generation too.
* BT_REALACCELERATE has been deleted.
2021-02-22 12:21:48 +00:00
toaster
f71741f557
MT_BRAKEDRIFT appears to be broken, and self-removing if BT_ACCELERATE ISN'T there, as opposed to if it is as the comment suggests. Fix that here.
2021-02-21 16:58:37 +00:00
Sal
8853a4b8e3
Merge branch 'jumping-finish-line-distance' into 'master'
...
Finish line waypoint issues
See merge request KartKrew/Kart!384
2021-02-18 18:23:08 -05:00
Sal
db46507b81
Merge branch 'respawnstuff' into 'master'
...
Respawning, FAULTing and spectators
Closes #108
See merge request KartKrew/Kart!392
2021-02-18 18:15:27 -05:00
toaster
5310acc84e
* As predicted, remove FAULTing from simply becoming a spectator at the start of the race - only apply it if you attempt to rejoin!
...
* Mark FAULTing players as in pain, preventing you from using your rings in mid-air (which is especially egregrious when re-entering the race from being a spectator uses the item button).
2021-02-18 11:11:50 +00:00
toaster
2ec943a214
Several changes to respawning and race start.
...
* Becoming a spectator is now instant, and leaves no bumpable corpse behind.
* Players will now FAULT if they:
* change from a spectator into a player after the initial camera turnaround but before the end of POSITION.
* touch an instant kill FOF or get crushed during POSITION.
* become a spectator during POSITION. (I might change this later, seems overkill)
* If you respawn during POSITION, the jingle will not restart from the beginning.
* Change the FAULT animation to match spinout/currents.
* Clean up some of the spawning code to not place spectators on the ground.
2021-02-17 21:48:09 +00:00
James R
49bbdd537b
Move the debt spike fuse initialization from P_ZMovement to P_MobjThinker
...
slopes + upward momentum = no upward momentum haha
2021-02-16 04:43:20 -08:00
James R
81d162d19c
Add some helper functions for objects in reverse gravity
2021-02-16 04:42:27 -08:00
James R
0cf41dade0
Improve P_SpawnMobjFromMobj by factoring the scale from P_SpawnMobj in
...
This will copy the parent object's scale to the child, but scale it by the
child's original scale relative to the map scale. Also uses the child's actual
height, instead of the mobjinfo version. Might be useful if either the scale
or height was changed in P_SpawnMobj. Say, from a Lua hook.
2021-02-16 03:55:37 -08:00
James R
9fae8dbb41
Don't respawn on the finish line waypoint
...
This causes you to respawn at the waypoint before the finish line waypoint,
which I think looks a bit nicer.
2021-02-15 23:17:55 -08:00
James R
82718216cc
Respawn slightly before a waypoint, in the direction you came from, if the waypoint is exactly on a line
...
See notably the finish line. Basically respawning exactly on a line can let you
cross it twice, if you crossed it before respawning, or NOT cross it, depending
on which direction you drive after landing. So this just respawns very slightly
before the line so you can cross (or not cross) it normally.
2021-02-15 23:01:13 -08:00
James R
4f96fead3a
Search entire map, not just waypoint's sector, for finish line
2021-02-15 01:46:29 -08:00
James R
29d9bafb9e
Snap finish line waypoints to the nearest point of the finish line
...
Finish line waypoints must be exactly on the finish line to avoid erroneous
finish line distance from crossing the waypoint before/after the line. This
is only a problem in circuit maps and on laps before the last, due to the
multiplied circuit length.
2021-02-14 23:04:17 -08:00
LJ Sonic
85cd429d1d
Revert "Replace all instances of P_AproxDistance with FixedHypot"
...
This reverts commit 498ff708bb .
2021-02-13 17:45:20 +01:00
James R
f7fd39402a
Float flag for rings and horizontal springs no longer scales twice in mobjscaled maps
2021-02-12 16:20:18 -08:00
Sal
4b556ef114
Merge branch 'air-failsafe' into 'master'
...
Air failsafe boost
See merge request KartKrew/Kart!367
2021-02-12 13:57:55 -05:00
Sally Coolatta
038dd17de3
Debt spikes set their fuse when they land
...
Another request from oni
2021-02-07 15:44:43 -05:00
Sally Coolatta
233d257791
Give fling rings shadows, remove afterimages
...
Both oni requests
2021-02-07 15:30:45 -05:00
Sally Coolatta
93c5942ceb
Air failsafe boost
...
While in the air: release accelerate while at nearly-still speeds, and you'll preform a minisucle air drift boost. This mechanic is meant to fix the long-standing issue where you can get stuck in 0 speed in the air and not be able to do anything.
2021-02-07 14:07:27 -05:00
James R
44ec94f287
Merge remote-tracking branch 'origin/master' into funny-spikes
2021-02-06 03:00:50 -08:00
James R
f9c6a5e8b5
Drop Funny Spikes when getting stung
...
DEBTA0-DEBTH0
Instead of dropping rings, drop non collectable spikes!
2021-02-06 02:31:24 -08:00
Sally Coolatta
e2e342f3f7
Update panim for the new states
2021-02-03 19:29:13 -05:00
Sally Coolatta
c698ddaa6c
Balloons by default will randomly pick CNZ colors
...
Would like this actually for CNZ instead of manually picking them by number & then the numbers get desynced... :v
2021-02-02 22:44:53 -05:00
Sally Coolatta
cc2704bc87
Death animation
...
Art is missing, but functionality is complete.
The kart corpse is also placeable as type 4095. No way to set its color currently, it simply defaults to SKINCOLOR_RED.
2021-02-02 22:36:56 -05:00
LJ Sonic
05a75758ab
Merge branch 'redundant-hypot' into 'next'
...
Replace P_AproxDistance with FixedHypot, and replace FixedHypot's algorithm with R_PointToDist2's
See merge request STJr/SRB2!1320
2021-01-25 18:08:25 -05:00
LJ Sonic
9a2a1d25d6
Merge branch 'jimita-why-you-done-this!!!' into 'next'
...
Fix mobj unarchiving code
See merge request STJr/SRB2!1384
2021-01-22 18:26:26 -05:00
Jaime Ita Passos
9fc1379668
Revert "Move a few mobj spawn defaults to its own function"
...
This reverts commit 3f36a51f5b .
# Conflicts:
# src/p_mobj.c
2021-01-17 23:17:46 +01:00
Sally Coolatta
cfda66103d
Merge branch 'master' into just-tumble
2021-01-06 23:02:51 -05:00
Sal
542e0b88df
Merge branch 'hitlag-fixes' into 'master'
...
Try and fix hitlag damage, lightning shield, & punting mines
See merge request KartKrew/Kart!340
2021-01-06 21:09:07 -05:00
Sally Coolatta
7c86c686cf
Merge branch 'master' into hitlag-fixes
2021-01-06 18:30:23 -05:00
Latapostrophe
fe4d9ce889
New trick panel shit (but only the gameplay part)
2021-01-06 21:20:28 +01:00
Latapostrophe
74a39837bb
Merge conflicts
2021-01-06 18:33:42 +01:00
Tatsuru
eb82ed7837
Allow water running in reverse gravity
2021-01-04 18:10:41 -03:00
Nev3r
38bc937887
Merge branch 'spritestuff2-archiving-fix' into 'next'
...
Fix archived mobjs having no default blend mode and sprite scales
See merge request STJr/SRB2!1300
2020-12-16 08:57:36 -05:00
James R
3a7941391f
Merge branch 'amys' into 'next'
...
fix amy meeting herself in mario mode
See merge request STJr/SRB2!1330
2020-12-15 20:57:16 -05:00
James R
b98d27a1ba
Merge branch 'circuit-finallap' into 'next'
...
Final lap text for circuit
See merge request STJr/SRB2!1303
2020-12-15 20:42:59 -05:00
katsy
d37fd1aa23
remove amy
2020-12-14 02:36:00 -05:00
James R
498ff708bb
Replace all instances of P_AproxDistance with FixedHypot
2020-12-12 14:53:54 -08:00
James R
20e0d99ea0
Remove trailing whitespace
2020-12-12 02:40:46 -08:00
Jaime Ita Passos
0d81a70397
Fix ERZ3 mode
2020-12-10 21:55:22 -03:00
James R
8cc312a16d
Merge branch 'saloondoor-revengeance' into 'next'
...
Saloon door fixes (closes #394 )
Closes #394
See merge request STJr/SRB2!1296
2020-12-10 15:43:31 -05:00
James R
10fd3606ce
Merge branch 'firemelt' into 'next'
...
Fix objects with MF_FIRE disappearing in lava (Closes #366 )
Closes #366
See merge request STJr/SRB2!1287
2020-12-10 15:37:57 -05:00
James R
ff6eecb64d
Merge branch 'metal-sigfpe' into 'next'
...
Fix a division by zero in BCZ2 Metal Sonic's routine
See merge request STJr/SRB2!1283
2020-12-10 15:35:03 -05:00
James R
ed9d5960ef
Merge branch 'lastlineshit' into 'next'
...
Allow player.lastlinehit and player.lastsidehit to be usable outside of Knuckles' climbing ability
See merge request STJr/SRB2!1271
2020-12-10 15:14:16 -05:00
James R
fc27bbc6e4
Merge branch 'no-spin-jump' into 'next'
...
Fix a Few Spin Related Bugs (Closes #286 and #360 )
Closes #286 and #360
See merge request STJr/SRB2!1256
2020-12-10 15:02:29 -05:00
Zippy_Zolton
629b6d3bab
CTF text 2, branch is finished
2020-12-08 16:09:51 -06:00
Jaime Ita Passos
3f36a51f5b
Move a few mobj spawn defaults to its own function
2020-12-06 17:46:35 -03:00
Tatsuru
0e92f1818c
Kill saloon doors without a tracer, add height check for non-blocking doors
2020-12-06 14:11:08 -03:00
Zippy_Zolton
dc53970fac
g
2020-12-03 02:05:10 -06:00
Zippy_Zolton
5fc6864cc2
Fix fire objects disappearing in lava
2020-12-03 01:28:54 -06:00