Commit graph

36 commits

Author SHA1 Message Date
NepDisk
c1ca05c6c5 Adjust some stuff to accout for how the map header toggle works 2025-06-02 15:11:39 -04:00
NepDisk
ed7b667aa7 Update File headers to use BLANKART 2025-04-19 13:33:28 -04:00
toaster
c9b532ad84 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.
2025-02-18 23:48:18 +01:00
toaster
8269db8f99 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.
2025-02-18 23:48:18 +01:00
Eidolon
d08b923f06 Merge branch 'extern-c-everything' into 'master'
Add extern "C" in C++ to all headers

See merge request KartKrew/Kart!842
2024-10-15 14:14:43 -04:00
James R
9e801c66d5 Merge branch 'universal-typedef' into 'master'
Move all typedef into one file

See merge request KartKrew/Kart!791
2024-10-15 04:16:58 -04:00
NepDisk
80a40bf91f Make Terrain loading the same as other texture related things such as brightmaps 2024-09-19 21:44:34 -04:00
NepDisk
93c8a62c99 Add K_TerrainInit to partload instead, Exitlevel on Terrain definition load to prevent issues 2024-09-19 19:23:18 -04:00
NepDisk
7a1be2aeac Fix terrain friction and rework closer to sector friction 2024-09-18 10:17:35 -04:00
NepDisk
27235e2241 Add PogoSpring Minimum and Maxium speed to terrain 2024-09-06 19:35:45 -04:00
NepDisk
443737fc9d Implement Outrun terrain type with a twist!
Since I want to keep the v1 style speed cap, I am going to use a timer set alongside the outrun to enable/disable the ground speed cap so the speed boost doesn\'t get neuterd hard
2024-09-06 17:08:19 -04:00
NepDisk
f1a63eaf8c remove unused spring star code 2024-09-06 02:42:20 -04:00
NepDisk
4395d26168 TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP
Nep Note: I dont know where dc_copy or dc->lightmap are from once I find out Ill uncomment that code....
2024-09-05 22:12:44 -04:00
NepDisk
b76c87005b Fix kartspeed in udmf maps and implement spring terrain type 2024-09-03 21:18:12 -04:00
Sally Coolatta
c93034437c Speed Pads 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.
2024-09-03 18:46:32 -04:00
NepDisk
594a26ea5e Reapply Store terrain ID instead of terrain pointer, add new helpers and accomodate for this
This reverts commit cb3b95c0e1.
2024-08-21 22:53:16 -04:00
NepDisk
cb3b95c0e1 Revert "Store terrain ID instead of terrain pointer, add new helpers and accomodate for this"
This reverts commit 9baae4cecb.
2024-08-21 22:49:45 -04:00
NepDisk
a2fcc4bc20 UDMF cherry-pick cherry-pick 2024-08-20 02:47:00 -04:00
JugadorXEI
9baae4cecb Store terrain ID instead of terrain pointer, add new helpers and accomodate for this 2024-08-01 17:29:36 -04:00
NepDisk
1c16abadf6 implement water panels and add pogo springs to terrain 2024-08-01 17:25:46 -04:00
Sal
7ca56217f0 Merge branch 'better-splash' into 'master'
TERRAIN expansion pak

See merge request KartKrew/Kart!680
2024-07-31 03:18:55 -04:00
Sal
5060e8bb33 Merge branch 'terrain-optimise-fresh' into 'master'
Terrain hashes

See merge request KartKrew/Kart!666
2024-07-31 02:35:19 -04:00
NepDisk
ec7cfc56fb Remove Stairjank. 2024-07-29 02:59:03 -04:00
Sally Coolatta
c6f69e8f59 Add required speed percent 2022-01-02 21:42:20 -05:00
Sally Coolatta
da459a9c73 Add terrain splashes 2021-12-19 00:57:45 -05:00
Sally Coolatta
8667aeb620 Add footstep particles 2021-12-18 21:23:41 -05:00
Sally Coolatta
edef941a08 Add scale & color parameters to terrain particles 2021-12-18 18:30:19 -05:00
Sally Coolatta
b3d3135c58 Instead of embedding specific textures to be tripwire in hardcode ... make it a TERRAIN flag! 2021-12-09 15:54:22 -05:00
Sally Coolatta
35a72e56dc Implement splash & footstep blocks, commentate more of the code
They do nothing atm, but they can be set properly now :)
2021-12-09 14:45:59 -05:00
Sally Coolatta
b1ffaa99f8 Sync mobj->terrain
This should be enough I think to sync terrain up. The data structures can't change after the files have been loaded, so it should be good. Needs proper online testing though
2021-12-09 13:20:35 -05:00
Sally Coolatta
e212f947ad Implement the sector special-like effects
Offroad, sneaker panels, trick panels, and damaging floors can now be set via terrain.
2021-12-09 03:20:45 -05:00
Sally Coolatta
f7834054a5 You can now link terrain to textures 2021-12-09 01:55:29 -05:00
Sally Coolatta
53d777788a Friction value is used, implemented DefaultTerrain 2021-12-09 01:21:34 -05:00
Sally Coolatta
150faf9de6 Add terrain pointer to mobj_t 2021-12-09 00:56:05 -05:00
Sally Coolatta
a8615cac5b TERRAIN lump reading
Does not impact gameplay but hey pretty cool
2021-12-08 19:16:12 -05:00
Sally Coolatta
7c0088b752 TERRAIN lump mockup 2021-12-07 17:23:42 -05:00