Commit graph

24873 commits

Author SHA1 Message Date
James R
c7972f27a0 Revert "Try to correctly interpolate chase camera viewpoint as angle changes"
This reverts commit c758a8ad27.
2023-11-13 17:10:11 -08:00
AJ Martinez
aad6795ba7 Trickpanels: I don't even know who I am anymore 2023-11-13 16:41:09 -07:00
Oni
c0241f27b2 Merge branch 'fix-invisible-grow' into 'master'
Fix invisible Grow (resolves #757)

Closes #757

See merge request KartKrew/Kart!1614
2023-11-13 13:31:17 +00:00
Oni
9134e6a4e7 Merge branch 'bot-muffler' into 'master'
Don't force player sounds to full volume when exiting

See merge request KartKrew/Kart!1615
2023-11-13 13:30:51 +00:00
Oni
790d26d29c Merge branch 'prisons-polish' into 'master'
Prison Egg polish: Spawn three Followers on hit

See merge request KartKrew/Kart!1595
2023-11-13 13:29:43 +00:00
AJ Martinez
b946a66574 Trick Panel charge release WIP 2023-11-13 04:35:15 -07:00
AJ Martinez
041d7660ae Charge minimum viable visuals (plus future frame/obj setup) 2023-11-12 23:32:59 -07:00
toaster
3805a4d5f0 Adjust Prison followers based on feedback...
- Exist for 1.5 seconds before disappearing
    - Flickers away in the last half second
- Twice as many spawned, at half the size
- Different arc
    - Severely reduced gravity
    - Don't jump if they hypothetically touch the floor
2023-11-12 23:51:44 +00:00
toaster
9e49f761b0 Prison Egg polish: Spawn three Followers on hit
- Selected from the mapheader's Audience list
    - Since most Prison Break maps don't have Audience lists set, you'll be seeing a lot of Flicky/Motobuddy/Chao for now
- Yes, these will disappear in deathpits like in Sky Chase
- Intentionally did not do this for the CD Special Stage UFO
2023-11-12 22:43:07 +00:00
toaster
ec4ea384c3 Obj_AudienceInit: Clean up handling
- Don't require a mapthing to select a random Follower from the Audience list
- Don't print an error message if the mapheader Audience list is empty. This is probably intentional.
2023-11-12 22:43:06 +00:00
toaster
9bb1f56fa6 MT_FORWARDTRICK: Adjustments based on feedback
- Animate 4x as fast without flickering
- Fix interp issues
- Spawn additive trail of the final frame
2023-11-12 22:28:51 +00:00
Oni
c2d48e8ca7 Merge branch 'lite-steer-option' into 'master'
Lite Steer profile option, itemstate pflags -> player.itemflags

See merge request KartKrew/Kart!1611
2023-11-12 19:55:59 +00:00
toaster
2082a372df MT_FORWARDTRICK: Don't interp when your sweep returns you to the front of the player 2023-11-12 17:43:48 +00:00
toaster
3ab5da8a3e MT_CHARGEAURA: Fix target setting to track reference 2023-11-12 17:37:14 +00:00
toaster
1adfc7f2a4 TRICKSTATE_FORWARD blast effect
Fun and simple papersprite buffoonery
Hey remember when the author of this commit thought papersprites would be a one-off side feature

Also fixes a potential invalid dereference when getting the color for MT_SIDETRICK
2023-11-12 17:34:28 +00:00
toaster
5cab2401b6 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into catholic-vfx 2023-11-12 16:24:47 +00:00
AJ Martinez
e20218a9d6 Trick Charge VFX WIP 2023-11-12 03:38:17 -07:00
James R.
aac583f2eb Merge branch 'gremlins-sweep-revelation' into 'master'
Line sweep to eliminate Gremlins II, also mitigate getting stuck inside slope enclosures

Closes #393

See merge request KartKrew/Kart!1610
2023-11-12 02:46:12 +00:00
James R.
f1c24d0eeb Merge branch 'loop-camera' into 'master'
Loop camera + camera turning interpolation fix

See merge request KartKrew/Kart!1557
2023-11-12 02:28:52 +00:00
AJ Martinez
4997c4c0ed Add K_IsPlayingDisplayPlayer for HUD sounds 2023-11-10 17:28:54 -07:00
AJ Martinez
e3fe3ed54a Handle sound falloff for exiting player sounds 2023-11-10 17:08:39 -07:00
AJ Martinez
6cbfc5aead Merge branch 'postrace-cleanup' into 'master'
Don't do gameplay controller vibration after finishing

See merge request KartKrew/Kart!1587
2023-11-10 23:49:31 +00:00
AJ Martinez
ff131335d4 Don't force player sounds to full volume when exiting 2023-11-10 16:47:52 -07:00
AJ Martinez
90902997ba Unset RF_DONTDRAW during controllable non-flashing states 2023-11-10 16:33:50 -07:00
AJ Martinez
77af33d182 More idiomatic unused pflags 2023-11-10 02:58:05 -07:00
James R
7861d51a7f P_TryMove: sweep collided lines to find nearest normal 2023-11-10 00:03:06 -08:00
James R
5a62a07e54 Add srb2::sweep, AABB line sweep algorithms 2023-11-10 00:03:06 -08:00
James R
37f2384229 Add srb2::math, fixed-point, vector, line and slope formula classes
- srb2::math::Fixed
  - Operator overloads for FixedMul and FixedDiv
  - Implicit conversion between fixed_t, Fixed and
    floating-point types
- srb2::math::Vec2
  - Template to any type
  - Operator overloads for arithmetic operations
  - Convertible between different types
- srb2::math::LineSegment
  - Template to any type
  - Holds two Vec2 instances
  - Sorting methods and vertical/horizontal test
- srb2::math::LineEquation
  - Slope formula from LineSegment
  - y method to find y from x
  - Intersect algorithm
  - Fixed-point specialization to avoid overflows
- srb2::math::LineEquationX
  - Inherits LineEquation
  - x method to find x from y
2023-11-10 00:03:06 -08:00
AJ Martinez
3313935630 Don't allow respawn lap reset to increase lap 2023-11-09 20:27:18 -07:00
AJ Martinez
81e7ec6aa3 itemflag tyop 2023-11-09 17:30:19 -07:00
AJ Martinez
0b51bc91f9 Fix comment referring to itemflags by wrong name 2023-11-09 17:29:26 -07:00
AJ Martinez
06bc06869c Lite Steer profile option, itemstate pflags -> player.itemflags 2023-11-09 17:29:26 -07:00
Oni
6686215330 Merge branch 'hanicef-mobj-cache' into 'master'
Cache and reuse removed mobjs when spawning mobjs

See merge request KartKrew/Kart!1607
2023-11-09 12:29:53 +00:00
Oni
cd06b34cd1 Merge branch 'ballhog-limited-tapfire' into 'master'
Easier ballhog tapfire

See merge request KartKrew/Kart!1594
2023-11-09 12:28:54 +00:00
AJ Martinez
19edcbe9c2 WIP: Trickpanel crack IV 2023-11-09 02:02:41 -07:00
AJ Martinez
c11394ce83 WIP: Trick panel decrackening 2023-11-09 00:45:50 -07:00
AJ Martinez
954bd85139 WIP: Trickpanel crack experiments 2023-11-08 01:52:07 -07: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
toaster
6f22c5261e MT_POGOSPRING: Guarantee spawn of catholocism 2023-11-07 22:53:52 +00:00
toaster
2e760eff43 Merge branch 'trick-control-lock' of https://git.do.srb2.org/KartKrew/Kart into catholic-vfx
# Conflicts:
#	src/k_kart.c
2023-11-07 22:24:53 +00:00
toaster
c3d34e9377 Back Trick effect
A rising tornado swirling the opposite direction.
Sprites do not currently exist, but it's a one-line emergency-break-glass change if there's any danger of not shopping with them
2023-11-07 20:24:01 +00:00
toaster
c1f7546f99 Sneaker/invincibility: Trick Panel launch multiplier is 1.5x, nerfed from 2x 2023-11-07 20:10:01 +00:00
toaster
73f67f4c94 MT_MAGICIANBOX, MT_SIDETRICK: Fix some more interp issues
Also guarantees that MT_SIDETRICK will be visible for the first frame of the trick, since it was invisible for the entire duration of catholocism.
2023-11-07 14:53:03 +00:00
AJ Martinez
49fb2fe6b6 WIP: Trick Panel crack 2023-11-07 03:46:11 -07:00
toaster
af24fcd4bd Don't draw catholocism for other players
Your relationship with christ is personal
2023-11-06 22:18:27 +00:00
toaster
0016e8b9ec Boost the Trick Panel boost gotten from sneakers/invinc to 2* 2023-11-06 22:17:53 +00:00
toaster
48d93ec9f6 Side Trick effect
- Copiously reuses from MT_MAGICIANBOX, gomen
- Also set the lookback frame, for extra toaster-swag zaza
    - Because this feature is so old it predates lookback!?
2023-11-06 21:54:40 +00:00
toaster
8885a335e7 MT_MAGICIANBOX: Support gravflip 2023-11-06 21:49:28 +00:00
toaster
aa0b626467 Trick catholic swipe needs to have all layers be fully visible, even at the peak of the arc 2023-11-06 21:47:16 +00:00
toaster
b417c0655e Map command: If you provide -force and the level has no associated gametype, safely assume Race as the default instead of requiring a -gt race addition 2023-11-06 21:44:55 +00:00