Commit graph

45 commits

Author SHA1 Message Date
toaster
cb48d53f02 Leader-penalty counter
Allows for penalising 1st in a positiondelay-friendly way.
Does not increment outside of circuit, with only one player, in Sealed Stars or Cooperative contexts.
Currently applies to Hyudoro only, since that one's *really* instant in terms of giving the frontrunner an inadvisable tool for single-tic position flickers.
2025-10-19 16:34:03 +01:00
Antonio Martinez
d236620adf Fix cantact with duel Hyudoro crashing in GP bonus (trivial) 2025-05-23 03:03:08 -04:00
Lach
ca06b2a334 Replace further P_CanPickupItem constants and allow them to be parsed in Lua 2025-05-14 02:04:40 +10:00
Eidolon
cb7f437e60 Merge public master 2025-02-13 15:48:11 -06:00
Eidolon
a4d304a1f5 Update copyright years to 2025 2025-02-13 15:32:26 -06:00
Antonio Martinez
e6db4e4d9b Backshots resurrection 2024-08-23 21:02:43 -07:00
toaster
1e502da748 Merge branch 'master' of https://git.do.srb2.org/KartKrew/RingRacers 2024-08-17 20:16:27 +01:00
Antonio Martinez
2b61497536 WIP - Overdrive polish 2024-07-22 20:35:28 -07:00
JugadorXEI
dbac449272 Fix hyudoro being incorrectly flipped during roaming status 2024-05-22 21:54:45 +02:00
Sally Coolatta
747f09852d SRB2 -> DRRR copyright in objects folder 2024-04-05 10:26:52 -04:00
AJ Martinez
db6a8efdeb Add Hyudoro sounds 2024-02-09 18:36:01 -07:00
James R.
08056a9ae2 hyudoro_patrol_hit_player: do not make 1st place invisible 2023-09-17 21:59:35 -07:00
James R.
4347af5069 Hyudoro: increase hitbox size 2023-09-17 21:56:20 -07:00
James R.
6878c7dd90 Apply PF_CASTSHADOW when player touches patrolling Hyudoro's shadow, darken player to pure black 2023-09-17 21:56:20 -07:00
James R.
5c1332f977 Add R_CustomShadowZ, Obj_FakeShadowZ, Obj_HyudoroShadowZ; let Hyudoro shadow float while patrolling 2023-09-17 21:56:19 -07:00
James R.
25837afc8c Hyudoro: use B frame when holding item 2023-09-17 21:56:19 -07:00
James R.
0a6fedc48a Hyudoro: carry item capsule back to player, use MT_EMERALD for collect animation
- Carry back item capsule, painted with the skincolor of
  the player who was stolen from
- Give player item by orbiting and shrinking into the
  player like an emerald
  - Lock player item box while animation plays, draw an
    empty item box on the HUD
  - At end of animation, burst item capsule to place item
    in player's hotbar
- Hyudoros can no longer stack items in the hotbar --
  consistent with item capsules
  - (If you have a Super Ring in your hotbar and Hyudoro
    is holding a Super Ring too, it will wait for you to
    use yours)

---

MT_ITEMCAPSULE changes:

- extravalue2 != 0: use this color on caps
- MF2_STRONGBOX: award items like the roulette
  - Super Ring is placed in the hotbar instead of awarding
    rings directly
  - SPB is placed in the hotbar instead of throwing it
    immediately
- DMG_INSTAKILL: don't respawn
2023-09-17 21:56:19 -07:00
James R.
3eeaaefc5f Hyudoro: stack uses modulate blendmode (with ghost trick) if player is in first place
- If player is in first place, they cannot use the stack
- Use ghost trick to lessen the effect, since modulate
  blendmode cannot be controlled with translucency
2023-09-17 21:56:19 -07:00
James R.
e0d7d08dde Hyudoro: flickering shadows for patrolling and stealing from a player
- Shadow flickers in high contrast colors while patrolling
- Shadow flickers black/white for short time after Hyudoro
  steals from a player
- (Resetting shadow for hovering stack already handled by
  append_hyudoro)
2023-09-17 21:56:19 -07:00
James R.
43ca8a2f4c Hyudoro: toggle shadow in hovering stack so multiple shadows are not rendered 2023-09-17 21:56:19 -07:00
James R.
1cd0781648 Hyudoro: spawn ghost trail, colorized to owner, on return to owner 2023-09-17 21:56:19 -07:00
James R.
d86aaa8c0c Hyudoro: smoothly transition vertical position in hovering stack 2023-09-17 21:56:18 -07:00
James R.
3b19376848 append_hyudoro, pop_hyudoro: fix linked list handling
- Use P_SetTarget to handle reference counting properly
- Properly unlink from the start of the list
2023-09-17 21:56:18 -07:00
James R.
4c551a03ca project_hyudoro: match Z to slope of center point 2023-09-17 21:56:18 -07:00
James R.
fac5abf69e MT_SHADOW: move code to objects/shadow.cpp; copy whiteshadow from followed object 2023-09-17 21:56:17 -07:00
Sally Coolatta
5067bb854a Split hitlag into its own file 2023-06-30 23:05:40 -07:00
toaster
4b90a8d8bf Hyudoro: Fix an exploit where a player in first can touch their hyudotro while in first on a weirdly shaped map. 2023-04-06 21:17:01 +01:00
toaster
a6ecb25ed5 hyudoro_set_held_item_from_player
- Handles putting an object into the hyuu's inventory.
- Permits Sink conversion for items which are a little too powerful to give to someone who was JUST in first place.
    - For now, the item to convert is an SPB.
2023-04-06 21:04:38 +01:00
AJ Martinez
7e46ee1d13 Use non-damaging hitlag for Hyudoro collide 2022-11-03 04:28:02 -07:00
James R
f3545a6e6f Merge remote-tracking branch 'origin/duel-stuff' 2022-10-02 19:10:22 -07:00
Sally Coolatta
4404d0c098 Make hyu bob a static func 2022-10-01 22:23:52 -04:00
James R
2ba523e45c Remove unnecessary set old_angle after Hyudoro spawn 2022-10-01 15:01:47 -07:00
Sally Coolatta
0fb60afb97 Make Duel Hyudoro invisible by default 2022-09-28 02:11:45 -04:00
Sally Coolatta
13a77581c4 Hyudoro behaves properly without owner set
When it's placed by the level, it's given to whoever has the best position at time of stealing. Since this is meant for duels, this means always the other player.

This behavior is also used as a default whenever its owner gets unset for whatever reason.

If there is literally NO ONE (1P), then rotate in place violently.
2022-09-28 00:44:50 -04:00
Sally Coolatta
456c824abf Init Hyudoro center properly 2022-09-27 23:29:06 -04:00
toaster
d962803440 Commit unstaged hyudoro fix 2022-08-25 16:56:40 +01:00
James R
6a7b42c063 Cap hyudoro speed at 50% kart speed for first place 2022-06-10 18:24:56 -07:00
James R
a12c88c5e2 Strip items after stealing with Hyudoro 2022-05-22 19:20:27 -07:00
Sally Coolatta
800dcc6302 Revert "Some asserts in hyu code"
This reverts commit 0ce466e7ef.
2022-05-22 22:02:31 -04:00
Sally Coolatta
61d61dcf25 Revert "EVEN MORE"
This reverts commit 5ef78cbc16.
2022-05-22 22:02:21 -04:00
Sally Coolatta
5ef78cbc16 EVEN MORE
(also removed the define replacements since didn't work)
2022-05-22 21:41:40 -04:00
Sally Coolatta
0ce466e7ef Some asserts in hyu code
Instead of letting it crash due to a NULL subsector later, let it crash earlier so I can see what is happening...
2022-05-22 21:34:24 -04:00
James R
2de756d077 Fix typo 2022-05-01 18:31:17 -07:00
James R
3e8d50a44a Fix/finish hyudoro return delivery
- Fix item detection, matches paper sprite pickups
- Stacked hyudoros deliver item once player is not holding
2022-04-30 00:25:42 -07:00
James R
c6e7fe2d29 Hyudoro object code 2022-04-29 22:02:22 -07:00