Commit graph

88 commits

Author SHA1 Message Date
toaster
49f6b4516a Semibright for dark part of flicker 2024-09-03 11:19:45 +01:00
toaster
daa9d59232 Visible damage to Sealed Star catcher capsule
Flickers between undamaged frame and (fullbright) damage % frame (which can also be undamaged frame, if undamaged).
Also set up to convey accumulated GP damage on spawn.
2024-09-03 11:19:45 +01:00
Ashnal
70ad221aa0 Sneaker Lift 2024-08-25 23:50:10 +00:00
James R
4485436eed InitSpecialUFO: fix -Wsign-compare 2024-05-05 17:43:42 -07:00
toaster
2dc8ce330a Review
- Update SAV_VERSIONMINOR so 2.0/2.1 cup backup files won't load
- Move specialDamage to grandprixinfo_t (from rank_t, per Sal review)
2024-05-05 20:36:43 +01:00
AJ Martinez
cf696ac5c7 Determination: max discount 50->40, rate .25x->.17x 2024-05-04 17:08:32 -07:00
AJ Martinez
10be033605 Cap UFO difficulty reduction at half off 2024-05-03 14:45:21 -07:00
AJ Martinez
7a1a4c58fb Remove UFO damage debug print 2024-05-03 05:01:08 -07:00
AJ Martinez
e418996213 UFO determination 2024-05-03 01:49:05 -07:00
toaster
536840485b The default Emerald pickup in a Sealed Star is a fake SA2 yellow-gold Chaos Emerald
Minimal effort disambiguation for a Sealed Star's Page 2/3 rematch from its Page 1 canon appearance, without also repeating the green Chaos Emerald.
2024-04-11 20:11:25 +01:00
Sally Coolatta
5d452ff74f Allow Emerald pickup while instawhip charging 2024-04-09 20:00:27 -04:00
Sally Coolatta
747f09852d SRB2 -> DRRR copyright in objects folder 2024-04-05 10:26:52 -04:00
AJ Martinez
494843d78f Rerandomize Heavy Magician when recovering in GTR_BUMPERS 2024-03-27 22:02:57 -07:00
Sally Coolatta
4004bffa5d Tweaked all quake values
Quake III Arena
2024-03-25 01:00:17 -04:00
James R
328b2c78f9 UFO Catcher: use a specialized speed cut function for boost damage while waterskiing
- Do not send the player backward, simply reduce their
  forward momentum
- Below 67%, divide speed by 4
- Above 67%, remove a flat 50% top speed
- The goal here is to basically stop the player at low
  speeds, like it did before, but cut a smaller amount at
  high speeds so players can remain water skiing after
  a highly boosted collision
2024-03-10 07:30:15 -07:00
James R
80756e7f97 UFO Catcher: damage with Tripwire Boost state 2024-03-10 06:59:57 -07:00
AJ Martinez
0d417a5055 Use guard break sound for Special UFO destruction 2024-03-01 18:36:19 -07:00
AJ Martinez
385fc27303 Special UFO: Don't wait for hitstop to play new damage hum 2024-03-01 15:53:57 -07:00
AJ Martinez
a87e557e4e Immediately update UFO health hum 2024-03-01 15:51:18 -07:00
Oni
b7e76d5b96 Merge branch 'longer-ufo-intangibility' into 'master'
Special UFO: post-damage intangibility tics 30 => 60

Closes #786

See merge request KartKrew/Kart!1711
2023-12-29 20:04:22 +00:00
James R
166391531d Fix SPB not properly damaging special UFO 2023-12-23 09:57:28 -08:00
James R
d1739feda9 Only let items and player hit special UFO 2023-12-23 09:43:23 -08:00
James R
b6c74b4d06 Special UFO: post-damage intangibility tics 30 => 60 2023-12-23 01:49:09 -08:00
James R
ee7f3d7108 Replace K_ReduceVFX with K_ReduceVFXForEveryone, replace owner cases with RF_REDUCEVFX 2023-11-13 23:49:33 -08:00
AJ Martinez
8b9b1e1640 Fix instawhip buzzsaw oneshotting the UFO 2023-10-22 03:30:04 -07:00
toaster
5680e00deb P_TrackRoundConditionTargetDamage, Obj_SpecialUFODamage: Fix incorrect non-g_localplayers indexing into player table
Destroying the UFO has now been promoted to a full deferred condition check
2023-10-19 16:38:50 +01:00
toaster
01b97cb829 Update UCRP_UFOATTACKMETHOD into UCRP_TARGETATTACKMETHOD
Supports Prison Eggs and Gachabom now as well.
For the original behaviour, combine with the new UCRP_SMASHUFO.
2023-10-17 21:03:20 +01:00
toaster
3836cfddcb UCRP_UFOATTACKMETHOD: Only check roundconditions the frame the UFO is destroyed, not hit 2023-10-17 12:49:50 +01:00
toaster
d11fe78e90 UCRP_UFOATTACKMETHOD
`Condition1 = UfoAttackMethod [type]`
    - "smash a UFO Catcher using only [type]"
        - Combine with `Prefix_SealedStar` or `Prefix_IsMap [special stage stage]`
        - Shows up as "???"
    - Types supported:
        - `Boost` - "boost power" (sneakers)
        - `Whip` - "Insta-Whip"
        - `Banana` - "Bananas"
        - `Orbinaut`- "Orbinauts"
        - `Jawz` - "Jawz"
        - `SPB` - "Self Propelled Bombs"
    - Other types could be added on request, these were just the easy ones

In addition, the prototype for P_MobjWasRemoved was moved to `p_mobj.h`.
It's EXTREMELY important that we're able to safely check mobj pointers anywhere a mobj_t is possible to observe, without including the full `p_local.h`...
2023-10-17 01:07:03 +01:00
Sal
bb8499b43d Track-based bot difficulty 2023-09-23 03:28:43 +00:00
SteelT
52e920e874 Sealed Stars: fix UFODebugSetHealth always running
Resolves #686
2023-09-16 14:58:53 -04:00
James R.
5abd0f7a6c UFOMove: check playeringame cv_ufo_follow 2023-09-12 18:22:53 -07:00
James R.
d9d6a0da18 Add ufo_health cheat, set UFO Catcher health 2023-09-12 03:04:51 -07:00
James R.
21e8431e1a Add ufo_follow cheat, teleport UFO Catcher to player 2023-09-12 03:04:28 -07:00
James R
5d8efb66a4 Sealed Stars: show text on the screen for loss conditions
Player dies:

    FALL OUT!

Player finishes before collecting the emerald:

     EMPTY
    HANDED?

UFO finishes before player:

    TOO LATE...
2023-08-26 21:39:18 +01:00
James R
dd7f6b17dd Add fuse behavior to emerald orbit, Battle collect animation
- Battle emeralds orbit into the player's body upon
  collection
- Emerald shrinks down to a speck
- Orbiting speed increases over time
- Player's emerald flags altered at the end of the
  animation
2023-08-19 03:28:41 -07:00
James R
4bdc05824c Add Obj_BeginEmeraldOrbit, seamless transition into orbit 2023-08-19 03:24:22 -07:00
James R
2f9ae94b62 Emerald orbits player after UFO Catcher is broken 2023-08-12 21:41:21 -07:00
James R
af26848cf9 Spawn literal MT_EMERALD for UFO Catcher, remove MT_SPECIAL_UFO tracking
Side effects:

- HUD tracking icon now uses emerald's color in Sealed
  Stars.
- UFO emerald doesn't disappear when collected. This is
  WIP because the emerald is intended to orbit the player.
2023-08-12 21:41:21 -07:00
James R
1c2a2155c0 Deduplicate a bunch of emerald related code
- Add K_BattleOvertimeKiller
  - Kills an object if it is outside of the Overtime
    Barrier in Battle

- Add Obj_SpawnEmeraldSparks
  - Use this function for MT_EMERALD, MT_MONITOR and
    MT_SPECIAL_UFO

- Move thinking code for MT_EMERALD and MT_MONITOR to
  objects/monitor.c and objects/emerald.c
2023-08-12 19:34:26 -07:00
VelocitOni
30d21e960a Merge branch 'master' into hit-stop-efx
# Conflicts:
#	src/objects/ufo.c
2023-07-03 06:24:27 -04:00
AJ Martinez
13b8df8950 Clean up UFO gamespeed calcs 2023-07-02 15:16:54 -07:00
AJ Martinez
2b6da538ac UFO not CBT 2023-07-02 04:28:19 -07:00
Sally Coolatta
5067bb854a Split hitlag into its own file 2023-06-30 23:05:40 -07:00
toaster
9e50fea2dc Now that Super Emerald minimap graphics are in the game, use them on the Sealed Star progression bar. 2023-05-30 13:30:22 +01:00
AJ Martinez
9aa4a459ce Guard break, UFO instawhip 2023-05-19 18:45:27 -07:00
toaster
12ecb1f7a4 P_DoPlayerExit changes
- Add flag application in function signature
    - Consistent gating of extra PF_NOCONTEST application behind not already exiting
        - This should fix dying after winning in K_Cooperative gametypes breaking things
- P_DoAllPlayersExit
    - Consistent condition of playeringame, spectator, exiting, etc checks
    - Also could force-give a life (for Battle Prisons)
2023-05-02 18:16:26 +01:00
Sally Coolatta
60e80d876d Improve quake effects
- Quake epicenter + radius now work.
- Since quake epicenter works, removed the display player check on all of the quakes, so other players can feel them.
- Multiple quake effects are stored in a linked list and dynamically created/freed, so they can stack together.
- Made in china
- Made the quake effects only work on the z axis.
- Quakes now alternate their intensity and dampen it over time, instead of randomly picking values.
- Added quake effects for offroad and stair-jank
- Disabled quakes in reducevfx
- Removed actionmovie and windowquake (sorry jartha)
2023-05-01 14:24:32 -04:00
toaster
307d78130f UFO Catcher: Adjust sprite z offset of prize inside glass orb 2023-04-07 23:36:46 +01:00
toaster
2969aabae4 UFO Catcher: Adjust for changed glass graphic 2023-04-07 23:36:30 +01:00