Commit graph

105 commits

Author SHA1 Message Date
NepDisk
cd2d07b190 Change all gametyperules uses to gametypes[gametype]->rules 2026-03-10 21:14:23 -04:00
Alug
adce4197e0 make lumpnumcache case sensitive + optimize + replace quickncase hash with FNV1a
lumpnumcache can be case sensitive W_CheckNumForName should also look for uppercase stuff and W_LumpExists is case sensitive anyways
this avoids having to always account for case (toupper/tolower) during hash and string comparisons and even allows us to even directly compare our strings instead of using fastcmp (std::strings allow this!)
from some benchmarking externally this makes this faster quite a bit
2026-02-10 09:22:02 -05:00
yamamama
d417033fb6 Year update attempt 2 2026-01-01 14:45:23 -05:00
yamamama
a8b47436dd We've made a full rotation around the sun
I'm sure I've missed things; this was me just grepping instances of "2025" and adding the necessary changes
2026-01-01 13:32:38 -05:00
yamamama
33ca21b9f2 Terraindef bullshit 2025-12-24 23:22:05 -05:00
GenericHeroGuy
bcb0eb95cc More fastcmp cleanup 2025-12-11 21:58:37 +01:00
NepDisk
6d6cb09280 Convert most strcmp/stricmp to fastcmp/fasticmp 2025-12-11 13:00:32 -05:00
NepDisk
dc448596ba Make terrain based dashpads set your angle like the SSF flag version 2025-12-08 16:31:03 -05:00
NepDisk
54aebfd8b2 Make rainbow dash rings do something unique
Since tricking is not a thing in this game, make rainbow dashrings remove pogospring gravity for a small time frame for extra height
2025-11-18 23:24:57 -05:00
NepDisk
b2d3da4aa2 Update code karma stuff to be more accurate
Turns out you can still drive even with karma off in v1 so lets repat this here
2025-09-27 12:19:36 -04:00
Lactozilla
3b489df3db Fix SRB2 1393 (Nep: also flats and brightmap support Thx lug) (Closes #115) 2025-09-20 13:43:35 -04:00
NepDisk
258b4ec6e0 Implement Flipover damage sectors and Terrain 2025-08-30 01:16:37 -04:00
NepDisk
ea81fccfb5 Make friction stuff look nicer and add friction loss on waterrun 2025-08-24 21:43:29 -04:00
NepDisk
f004b36dbb Revert 'Merge pull request 'File loading refactor' (#68) from wadstrbuf into blankart-dev'
This reverts commit f72475b557, reversing
changes made to 0c89c85aae.

Sorry Generic this branch is really cool but it needs more work. I shouldn't have merged it too early...
2025-06-30 01:45:01 -04:00
GenericHeroGuy
7aae6775e6 Use LUMPERROR instead of INT16_MAX, and MAX_WADFILES instead of UINT16_MAX
The 32768th lump of a file works now lol
2025-06-25 17:47:57 +02:00
GenericHeroGuy
684ded7647 Formally deprecate the shortname functions
and make TestValidLump actually work
2025-06-25 14:57:37 +02:00
GenericHeroGuy
4ffd4621e4 Let's clean this shit up properly
lumpinfo_t is now private. Wanna iterate thru lumps? Use the W_* functions
2025-06-25 00:43:46 +02:00
GenericHeroGuy
927f30e51f Aww yeah, string buffers baby! 2025-06-24 01:05:56 +02:00
NepDisk
c1ca05c6c5 Adjust some stuff to accout for how the map header toggle works 2025-06-02 15:11:39 -04:00
NepDisk
b087b5e372 Port JugadorXEI's Terrain library for Lua
Credits go to JugadorXEI for the code in this. https://git.do.srb2.org/KartKrew/RingRacers/-/merge_requests/103\#d1c6f6fa1ba8207cb6aaef9f4a47d9a0b6b8b5c1

Modifications have been made to account for extra terrainflags, new terraintypes and removal of Ring Racers specfic types
2025-06-02 14:38:33 -04:00
NepDisk
deb447aec7 Port salty hop, changes for new terraindefs in assets 2025-05-20 17:07:13 -04:00
NepDisk
1ef87baf3f refactor kartspeed code and add respawn point safety 2025-05-12 22:25:11 -04:00
NepDisk
fa750c450a Make sneaker types no longer a magic number 2025-05-08 09:23:55 -04:00
NepDisk
012df40fcd Terrain Def Mapheader toggle 2025-04-21 13:31:41 -04:00
NepDisk
ed7b667aa7 Update File headers to use BLANKART 2025-04-19 13:33:28 -04:00
GenericHeroGuy
39997e8c67 Fix compile again 2025-02-18 23:48:18 +01: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
GenericHeroGuy
247165d29e Fix compile errors 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
NepDisk
f52d841220 Revert "TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP"
This reverts commit d062173bfc.
2024-12-30 08:52:46 -05:00
James R
d062173bfc TERRAIN: add 'remap' boolean, toggles ENCOREMAP/TWEAKMAP
- Software* + OpenGL support
- *Not supported: R_DrawColumnShadowed_8
  - This has something to do with walls and FOF lights.
    However, I don't see an easy code solution and I don't
    know how to even test this.
2024-12-29 14:31:53 -05:00
NepDisk
049c182288 Massive warning clean up 2024-10-23 00:01:03 -04:00
NepDisk
d48cd0f28f Apply offroad terrain particle based on offroad check rather then boostpower
this should prevent issues with boostpower related scripts spawning errornous offroad dust
2024-09-29 16:20:50 -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
11aa76469d Make terrain pogosprings also affect movement 2024-09-08 19:25:55 -04:00
NepDisk
0c7cc41527 More Tweaks to outrun
Use player scale if grown or shrunk other wise use FRACUNIT
2024-09-07 13:13:51 -04:00
NepDisk
27235e2241 Add PogoSpring Minimum and Maxium speed to terrain 2024-09-06 19:35:45 -04:00
NepDisk
ee60073749 Fix and Tweak waterrun panels
These now last 2 seconds which is slighty longer then a  sneaker, to allow for easier water traversal without stacking
2024-09-06 18:37:42 -04:00
NepDisk
0cb1a8b21c Acutally Allow the use of spring strength with pogospring
The previous commit did make this work oops...
2024-09-06 18:18:47 -04:00
NepDisk
1da4a9b4b6 Allow the use of spring strength with pogospring
There may be no trick panels but this will do hopefully....
2024-09-06 17:16:16 -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
1182b037b7 Fix offroad terrain particles appearing for spectators 2024-09-06 13:21:53 -04:00
NepDisk
f1a63eaf8c remove unused spring star code 2024-09-06 02:42:20 -04:00
toaster
0a233f2959 Merge branch 'fix-fof-spring-terrain' into 'master'
K_ProcessTerrainEffect: fix spring crash on top of FOF

See merge request KartKrew/Kart!1162
2024-09-06 02:26:31 -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
James R
0297e6a0e4 Do not multiply TERRAIN speedPad value 2024-09-03 18:49:36 -04:00
James R
709f7203d5 Subtract texture angle from speedpad TERRAIN 2024-09-03 18:48:54 -04:00