Commit graph

365 commits

Author SHA1 Message Date
James R
bf0041644a Add destroyed kart effects
- Removed hitlag sparks and extra quakes from player death
- Removed dontdraw flag from NO CONTESTED player
- Moved most dead kart code to objects/destroyed-kart.cpp
2024-03-31 00:58:14 -07:00
James R
6d217b8fd6 Fix Sealed Star Mace hardcode
- Was broken and didn't have a hitbox or sprite
- Didn't notice because there was a SOC file taking
  precedence
2024-03-27 18:17:16 -07:00
James R
99656765e5 Pause waypoint updates while player is touching finish line but not crossing it
- Right on the line, P_PointOnLineSide may disagree with
  P_TraceWaypointTraversal.
- If this happens, nextwaypoint may update ahead of the
  finish line before the player crosses it.
- This bloats the finish line distance and triggers lap
  cheat prevention, preventing the player from gaining a
  lap.
- Since this only seems like it can happen very near to
  the line, simply don't update waypoints if the player is
  touching the line but hasn't crossed it.
- This will cause distancetofinish to jump but only for a
  very short distance (the radius of the player).
2024-03-16 06:50:16 -07:00
AJ Martinez
fab2ebdf57 Add commands to Addon Options, add COM_NOSHOWHELP 2024-03-11 23:25:50 -07:00
James R
44666f0c2e Add SF_BADNIK flag for characters, spawn an explosion on death
- Plays a pop sound too!
2024-03-11 01:25:03 -07:00
Lach
2f19582941 Merge remote-tracking branch 'origin/master' into adventure-air-booster-hardcode 2024-03-09 15:19:29 +11:00
James R
f7d396d150 Power-ups: spawn spinning power-up icon on player
- Spins for 40 tics, speeds up over duration
- Starts wide stretched, ends thin and tall
- Additive, fades into translucency
2024-03-08 17:53:07 -08:00
Lach
a419ea48c6 Hardcode Adventure Air Booster & Dimension Disaster objects 2024-03-08 10:38:33 +11:00
James R
1015d6964b Add PF_TRUSTWAYPOINTS player flag, disable lap cheat prevention next time finish line distance is calculated 2024-03-06 18:19:35 -08:00
James R
18654a8a70 Extra effects for Prison Egg CD
- The goal here is to make it more obvious if a CD drops,
  and make the CD more visible.
- Rainbow sparkles scaled up by x3.
- Play long "powering down" noise when a Prison with a CD
  inside is destroyed.
  - CD spawns after noise stops playing.
- Spawn a twinkle (Gainax).
  - Flickers while "powering down" noise is playing.
  - Enlarges and disappears in sync with the "CD dropped"
    sound effect.
- Darken the map while all of this is happening.
2024-03-05 03:35:35 -08:00
toaster
65d553a5f9 Restore Sapphire Coast decorative objects
Removed in !1811, putting back because used in Lake Margorite and a handful of other stages as generic decoration
2024-02-26 19:39:10 +00:00
James R
b452232974 Add PF_ANALOGSTICK, tells if this player has bound analog stick to d-pad 2024-02-24 21:29:19 -08:00
James R
a2d22c730f Remove PF_LITESTEER
It doesn't do anything
2024-02-24 21:03:49 -08:00
James R
6df73670dd Talk Point visual (for dialogue)
- Spinning question mark surrounded by multi-colored orbs,
  representing the radius of the dialogue activator
- Collect animation
2024-02-23 06:15:31 -08:00
toaster
106553f89d Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into srb2-tidy
# Conflicts:
#	src/p_mobj.c
2024-01-27 17:04:00 +00:00
James R
2364fb80a0 Battle: remove overhead arrows (physical object)
Old shitty object from v1 that is about to be replaced by
HUD tracking. :D
2024-01-26 14:30:56 -08:00
James R
aefbd8c58a Remove unused overhead WANTED code
From v1 Battle
2024-01-26 14:30:56 -08:00
James R
84641c896e Battle: add POINTS power-up, get 6 points 2024-01-26 14:30:56 -08:00
toaster
5680514012 Per Sal's request, remove SMK stuff too 2024-01-26 00:56:01 +00:00
toaster
6fdec66dc3 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into srb2-tidy 2024-01-26 00:29:06 +00:00
Oni
2c7af6e283 Merge branch 'overtime-in-skybox' into 'master'
Fix Overtime Barrier lasers appearing in skybox

Closes #881

See merge request KartKrew/Kart!1804
2024-01-13 23:09:06 +00:00
toaster
1d13cb64c0 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into srb2-tidy
# Conflicts:
#	src/p_mobj.c
2024-01-13 22:08:44 +00:00
Eidolon
58557b274f Hardcode Sealed Star objects 2024-01-11 14:18:15 -08:00
SteelT
10e9cd7480 Hardcode waterfall particles spawner 2024-01-11 03:55:12 -08:00
wolfy852
9def89d4d4 Hardcoding: Dehacked entries, fix incorrect state names 2024-01-10 20:37:29 -08:00
toaster
325079a39a Delete everything major flagged up by listunusedsprites
Notable deletions:
- Metal Sonic Race
    - Includes all the specialised recording/playback apparatus which made g_demo.c harder to read
- A bunch of hyperspecialised code inside several A_ actions
- EXCEPTION: intentfully left in the spriteless SMK stuff for Sal's add-on down the line.
2024-01-11 01:21:43 +00:00
James R
fbb6db7167 Add RF_HIDEINSKYBOX, stop rendering object in skybox 2024-01-09 22:04:58 -08:00
Oni
df5c866573 Merge branch 'map-access-flingerdinger' into 'master'
Stronger Course progression restriction

Closes #832, #859, and #839

See merge request KartKrew/Kart!1795
2024-01-09 08:11:12 +00:00
toaster
83366b6507 More universal Course restriction based on progression
All courses are restricted in Match Race/Time Attack/Online if not visited in GP UNLESS:
- It is the first Race Course of a Cup
- Course has "NoVisitNeeded = True`
    - The Controls Tutorial and Test Run are the only two stages that will need this

The above replaces:
- A lot of restricted courses having to be marked with `FinishNeeded = True`
    - Hidden Palace
    - Sealed Stars 1-14
        - Once Special Mode is unlocked, it will now be possible to practice Sealed Stars before rematching them in GP
- Almost all Tutorial-specific behaviour, since it was heinously hacky

HOWEVER, `FinishNeeded = True` was left in specifically for future releases, and I reserve the right to use it on Adventure Example again before launch.
2024-01-07 13:57:05 +00:00
Eidolon
61db93db0c Hardcode Joypolis trick balloons 2024-01-05 17:56:38 -06:00
Eidolon
7521e42e62 Add automedal time configs and calculation 2024-01-03 12:24:33 -06:00
James R
b68947e636 Hardcode Endless Mine faucet / rain
- Note: rain does not use the weather system
2023-12-08 17:42:17 -08:00
James R
69541b9422 Hardcode bustable rocks -- Angel Island + Endless Mine 2023-12-08 17:42:17 -08:00
James R
441d526a15 Hardcode Angel Island scenery objects 2023-12-08 17:42:17 -08:00
James R
f6ce183cee Add Lost Colony Fuel Canister states 2023-12-07 19:18:33 -08:00
James R
4b085e3d7b Add Lavender Shrine Classic states
Spears and lanterns
2023-11-28 07:18:36 -08:00
James R
c5968ad3ad Hardcode Ice Cap Blocks 2023-11-27 05:07:30 -08:00
James R
aec21cd114 Hardcode SA2 Crates 2023-11-27 05:07:30 -08:00
James R
b36695db8d Add Ivo Ball states 2023-11-25 05:10:51 -08:00
James R
e6d375d127 Add Frozen Production Frost Thrower states
Change from Lua: Ice Dust hitbox is twice as wide
2023-11-22 23:53:14 -08:00
James R
0c57902463 Hardcode Gust Planet "Trees" 2023-11-21 01:07:24 -08:00
James R
4b3ea7460b Hardcode Gust Planet seasaws
- Add states
  - MT_GPZ_SEASAW_SPAWN
  - MT_GPZ_SEASAW_HITBOX
  - SPR_GPPS
  - SPR_GPZS

- Add objects API
  - Obj_GPZSeasawSpawn
  - Obj_GPZSeasawThink
  - Obj_GPZSeasawCollide

- objects/gpzseasaw.c
  - Gust Planet seasaw behavior
2023-11-21 01:07:17 -08:00
James R
ff3826466b Rename MT_DLZ_SEASAW_VISUAL to MT_SEASAW_VISUAL, reorganize seasaw states
In preparation for Gust Planet seasaws, I'm grouping these
separately from the rest of Dead Line states.

Because the visual object does no think for itself, rather
by proxy of the main seasaw object: I removed the DLZ tag,
since this object will be reused for Gust Planet.
2023-11-20 23:35:40 -08:00
Oni
94a593487b Merge branch 'fix-reducevfx' into 'master'
Fix `reducevfx` mkaing some VFX visible, when they shouldn't be

See merge request KartKrew/Kart!1622
2023-11-18 07:11:25 +00:00
James R
9f088f40bb Add Mega Barrier states 2023-11-16 21:08:29 -08:00
AJ Martinez
d54d2f6d04 Merge remote-tracking branch 'origin/master' into catholic-vfx 2023-11-14 21:47:51 -07:00
James R
5547ad5966 Add RF_REDUCEVFX, if reducevfx option is turned on, hide object for everyone except owner 2023-11-13 23:49:33 -08:00
James R
b11f340dab Add MF_ELEMENTAL 2023-11-13 19:39:52 -08:00
James R
74d1f1bfb7 Add MF_DONTPUNT 2023-11-13 19:39:52 -08:00
James R
39a7c3b3ad Remove MF_MONITOR 2023-11-13 19:23:54 -08:00