Commit graph

72 commits

Author SHA1 Message Date
Eidolon
2d614781eb i_system.c -> cpp, disable mumble 2023-10-14 15:26:52 -05:00
Sally Coolatta
6d1a3de243 Add outrun to netsave 2023-06-14 10:37:05 -04:00
Sally Coolatta
d936c7aed9 Milky Way terrain
`OutRun 48.0` on Terrain block will make that texture add 48 units to driving top speed.
2023-06-14 10:29:19 -04:00
toaster
f450789a08 Final rearrangement
- If terrain has footsteps, always show those footsteps regardless of player speed slowdown
- Otherwise, if player is slowed down, show default offroad particles
2023-05-01 17:52:56 +01:00
toaster
dc7d157162 Make both offroad dust and terrain particles 2023-04-30 16:39:58 +01:00
toaster
661285d3c6 Fix custom terrain footsteps never being considered under offroad conditions 2023-04-30 16:30:23 +01:00
toaster
26cdc0f003 Fix particle behaviours for indicating being slowed
- For players interacting with terrain:
    - If a terrain is tagged with offroad, only use footstep if player is being slowed by it
    - If a player is not on terrain with footsteps but is being slowed down, use default footsteps as a substitute
This matches behaviour of the previous entry in the series, which was good for communicating the gameplay functionality of being slowed down.
2023-04-30 16:30:17 +01:00
James R
1a2121b3ca K_ProcessTerrainEffect: fix spring crash on top of FOF 2023-04-11 20:32:55 -07:00
toaster
fa92c880e0 minigen: Add black fragments to common objects on valid road
- Drawn underneath absolutely everything else, because it's the least specific of all the guides minigen can provide
- "Common objects" includes:
    - Rings/spheres
    - Waypoints
    - Item boxes/spots
    - Overtime kiosk
    - Rings
    - Item Capsules
- The above were chosen because they're a good distinctor between sectors that are valid to drive on and sectors that would be valid were there no impassable lines or massive height differences preventing the player from getting there.

Related:
- K_TerrainHasAffect now has a "bad only" check mode.
    - If true only report back for strong friction, any offroad, any damage, or stairjank.
2023-01-24 18:59:13 +00:00
toaster
da639fe65f Rework automap/minigen colours
- All pre-existing colours are now actually what the code says they should be for the 2.2 palette
- RR-specific colour changes.
    - Remove all noclimb-specific line colours
    - Render areas that can't be stepped up/down onto as walls
    - Add colours for
        - Tripwire (cyan, but not 0xff cyan)
        - Finish Line (grey)
        - FOF info (blue)
    - Use a low-intensity colour to signal possible offroad/hazard sector or stairjank step
- Rework to support drawing in multiple passes, so that information that is strictly more important (solid walls, finish line) will not be obscured at minimap resolution by nearby lines signalling offroad/stairjank

Related:
- Added K_TerrainHasAffect
    - Returns true if terrain has any properties which would affect the player's gameplay, false if not.
2023-01-23 18:38:52 +00:00
James R
19a85c25e2 Merge branch 'fix-spectator-offroad' into 'master'
Fix spectators spawning offroad particles

Closes #394

See merge request KartKrew/Kart!865
2023-01-10 02:45:04 +00:00
James R
c58628d1bd Remove non TERRAIN offroad particles
Fixes spectators generating offroad particles when
touching the ground.
2023-01-05 19:19:42 -08:00
toaster
b0a8a0efad Update comment for K_TERRAINLumpParser 2023-01-05 20:50:34 +00:00
toaster
4520d56fa3 K_InitTerrain: Do what ANIMDEFs parsing does and create a copy of the TERRAIN lump with a guaranteed null terminator 2023-01-05 18:10:42 +00:00
James R
eef944bb1b Play spring TERRAIN sfx from sector 2022-12-18 21:09:29 -08:00
James R
8d39f0e60f Add springStrength and springStarColor to TERRAIN 2022-12-18 21:09:29 -08:00
Sally Coolatta
e331910fe3 Reduce VFX toggle
Can be used to disable VFX, so it can only appear if its owner is a display player. If no owner is provided, then it will be removed entirely.

Applied to most things that Ivo asked for
2022-11-26 20:12:00 -05:00
James R
0fba68f4ba Subtract texture angle from speedpad TERRAIN 2022-10-26 19:59:15 -07:00
James R
19a6ea8478 Do not multiply TERRAIN speedPad value 2022-10-18 18:20:19 -07:00
Sally Coolatta
b03cb9e1a8 Drastically speed them up 2022-10-11 03:10:50 -04:00
Sally Coolatta
8953cf54bb Speed Pads are now a TERRAIN effect
- Use `SpeedPad` to set the strength. Intended to be scaled like Trick Panels, so 1 for yellow, 2 for red, so on. Can use floating point.
- Use `SpeedPadAngle` to rotate the thrust direction. This is in the same system as map angles, so east is 0, north is 90, west is 180, and south is 270. Also accepts floating point.
- Speed Pad angle accounts for the flat alignment itself, as well.
- Like Sneaker and Trick Panels, the sector / line special are now deprecated.
2022-10-11 02:26:54 -04:00
Sally Coolatta
7559169144 Fix Trick Panel TERRAIN not working 2022-10-11 01:31:06 -04:00
Sally Coolatta
21dd68d392 Reimplement Invert Encore
Also add removal warnings for sector Sneaker Panels, Trick Panels, and fast-approaching deprecation warnings for sector Offroad.
2022-10-10 06:08:25 -04:00
Sally Coolatta
babd0d5981 Fix TERRAIN reading 2022-10-10 00:44:27 -04:00
Nev3r
5c9599f0a9 "UDMF: The whole thing" merged
See merge request STJr/SRB2!1714

Barely any RR features reimplemented
2022-10-09 01:13:37 -04:00
James R
c5b132e8db Fix -Wsign-compare 2022-09-28 18:28:19 -07:00
Sally Coolatta
b440724bc5 Set random class for the new splash features 2022-09-25 20:01:46 -04:00
Sally Coolatta
21d32511a5 Merge branch 'master' into better-splash 2022-09-25 20:01:27 -04:00
Sally Coolatta
1563660a39 Add a few RNG classes
- PR_ITEM_ROULETTE: Used for item results
- PR_ITEM_RINGS: Flung ring direction
- PR_ITEM_SHRINK: Shrink gun offsets
- PR_PLAYERSTARTS: Battle mode player starts
- PR_TERRAIN: TERRAIN particles
- PR_DECORATION: Generic decoration
- PR_VOICES: Player voice sounds
2022-09-19 00:55:11 -04:00
Sally Coolatta
a60d4a13a1 RNG classes, take 2
Redone version of my old branch
2022-09-19 00:04:57 -04:00
Sally Coolatta
efe12171c4 Default overlay speed to 1.0 instead of 0.0 2022-09-16 06:11:07 -04:00
Sally Coolatta
e3a6b6e15c Implement overlay speed 2022-09-16 06:04:33 -04:00
Sally Coolatta
df4b2074fd Implement overlay scale 2022-09-16 05:24:57 -04:00
Sally Coolatta
50e48b3928 Make overlays offset by floorclip 2022-09-15 19:27:05 -04:00
Sally Coolatta
3188483eb2 TERRAIN trick panel can use float strengths
More inbetweens available, if anyone needs them.
2022-09-15 18:38:10 -04:00
Sally Coolatta
0b98417d07 Terrain overlays
Customizable state to display when standing / moving on terrain. Intended to pair with floor clipping.
2022-09-15 07:26:08 -04:00
Sally Coolatta
0faf4d5f54 Add MF_APPLYTERRAIN
I gave it to all of our items, to give them footstep particles. Replaced MF_NIGHTSITEM.
2022-09-15 05:46:40 -04:00
Sally Coolatta
dea86d611e Add floor clipping for TERRAIN
Port of code from Heretic/Hexen, lets you make a texture look "deep" by offsetting the sprites and cutting them off. Doesn't impact hitboxes.
2022-09-14 01:16:19 -04:00
Sally Coolatta
ca641afcda Improve splash particles
- Properly support cone
- Properly support spread
- Reduce impact speed
- Don't recalculate momentum for each particle
2022-09-14 00:02:02 -04:00
Sally Coolatta
c145d12db3 Use hashes for terrain loading 2022-09-06 19:39:27 +01:00
James R
fc103834af Cache terrain on levelflats 2022-01-11 22:49:01 -08:00
Sally Coolatta
c5279e5795 Fix missing line for trick panels 2022-01-05 17:58:48 -05:00
Sally Coolatta
8326f32456 Fix default terrain friction 2022-01-05 17:44:11 -05:00
Sally Coolatta
211fc17974 NULL terrain for spectators 2022-01-04 12:45:20 -05:00
Sally Coolatta
df3a0ad507 Only do spread if above 0 2022-01-03 01:40:38 -05:00
Sally Coolatta
2033e84bce Minimum impact amount for splashes 2022-01-03 00:17:59 -05:00
Sally Coolatta
9e56e54e31 Implement particle spawn frequency, offset spawning by player num 2022-01-03 00:07:46 -05:00
Sally Coolatta
c6f69e8f59 Add required speed percent 2022-01-02 21:42:20 -05:00
Sally Coolatta
9bc48762a8 Merge branch 'terrain-lump' of https://git.do.srb2.org/KartKrew/Kart into terrain-lump 2021-12-24 09:50:12 -05:00
Sally Coolatta
ff3cb90cda Super random push
Looks better to me, and makes cone have a more pronounced effect
2021-12-24 09:50:00 -05:00