Commit graph

19874 commits

Author SHA1 Message Date
toaster
8afd9b03b2 Only allow W_CheckNumForMap to return lumpnums fitting certain criteria
- For PK3, if it's a .wad
- For .wad, if it's a header (0-length)
2022-09-23 12:26:32 +01:00
toaster
959bb14f59 Fix an error that used map ID when lumpname is better for debugging 2022-09-23 11:55:11 +01:00
SteelT
89a22783b6 vres_GetMap: Count resources in folders up until next 0-length lump, instead of "MAPXX"
As having named map lumps means the lump being named "MAPXX" isn't guaranteed anymore.
2022-09-22 16:05:44 -04:00
toaster
bd965ccd50 Off by one for music name default generation 2022-09-22 18:02:14 +01:00
James R
937e1d10d4 Fix -Wformat 2022-09-22 09:56:50 -07:00
toaster
cb8becb2d3 Enforce maximum length of 63 for map lumpname
Also, in g_demo.c, use SKIPSTRING (instead of READSTRINGN into a discard buffer)
2022-09-22 17:34:02 +01:00
toaster
48e9138dda Refactoring ahoy
* Instead of doing constant G_MapNumbers when finding the relationship between maps and cups...
    * Add a cache of level IDs to cups, to go with the strings.
    * Add a cache of the cup pointer to maps, so we don't have to search through all cups to find our map. (done in P_InitMapData)
    * Pre-emptive work: G_IsSpecialStage and P_GetNextEmerald now reference cup data instead of a hardcoded ID set.
* Remove a bunch of old stuff from mapheaderinfo_t/associated, and reorder what stays
    * Countdowntimer? 💥
    * Startrings? 💥
    * sstimer/ssspheres? 💥
    * forcecharacter? 💥 (distinct from forceskin)
    * interscreen? 💥
    * sstage_start/end and smpstage_start/end? 💥💥💥💥
    * You've been blocked
* G_MapNumber now returns a special NEXTMAP_INVALID if not found, for more consistent reference.
* Incorporate a good chunk of the `edit-headers` branch. Can't clear maps individually because of the new restrictions on sequential mapheaders, but we can add a "disable in vote screen, not even for map hell/archive" flag to a map at some future juncture for equivalent functionality...
2022-09-22 17:14:41 +01:00
toaster
077b23929b Adjust P_AllocMapHeader and associated
- Prints with more info
- No weird increment/decrement
2022-09-22 12:47:59 +01:00
toaster
abb567ab81 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into big-large-map-markers 2022-09-21 23:06:24 +01:00
toaster
574cc6049f NUMMAPS is dead
Dynamically allocated mapheaderinfo. 1035 reserved slots in a google doc is a thing of the past
2022-09-21 23:01:58 +01:00
toaster
a12a29e1e5 Demos now store map lumpname rather than mapheader ID
This was the last thing we needed to do before infinite maps. Stay tuned.
2022-09-21 22:37:30 +01:00
toaster
5a813cd94d Remove mapname buffer from serverinfo_pak 2022-09-21 22:19:51 +01:00
toaster
60355d9efd Move two of the three remaining NUMMAPS arrays part of the mapheader_t struct
- mapvisited and recorddata_t (previously mainrecords)
- Changed how gamedata is saved and loaded
- Change the versioncheck (funny hex provided by chengi) AND call it `developringdata.dat` in develop builds
- Fix a bunch of off-by-ones in condition and emblem data
ALSO, for Time Attack:
- Fix menu not showing off your times
- Now save times even when gamedata modified, since the menu didn't care (come back to it?)
- Don't save times or do intermission screen if the Capsule Attack ended because you lost all your bumpers
- Fix a crash adding ghosts in Capsule Attack
2022-09-21 22:12:36 +01:00
toaster
b8f3e64ca1 discord.c compilation warning 2022-09-21 19:22:33 +01:00
toaster
fc9697b2e1 Repair D_StartTitle component of netgame title fallthrough prevention 2022-09-21 19:22:05 +01:00
James R
794385dd63 Merge branch 'improve-profile-apply-startup' into 'master'
Improve profile applying during startup

See merge request KartKrew/Kart!689
2022-09-21 17:08:11 +00:00
Sally Coolatta
44a742b1aa r_things.c -> r_things.h 2022-09-21 11:51:43 -04:00
Sal
cb85e23422 Merge branch 'tumble-slope-fuck' into 'master'
Stumble + Smooth Landing

See merge request KartKrew/Kart!571
2022-09-21 14:13:17 +00:00
VelocitOni
329aecd5e5 Made the circle solid for longer
Edited NUMTRANSMAPS to make it solid for 2 maps longer, adjusted fudge ANG to 15 from 10 (more visually lenient)
2022-09-21 10:12:10 -04:00
Sally Coolatta
e347fadf02 Add a fudge constant to the stumble indicator 2022-09-21 07:49:33 -04:00
VelocitOni
6d45e58425 Merge branch 'master' into tumble-slope-fuck 2022-09-21 07:04:37 -04:00
Oni
1b373cf0e8 Merge branch 'autocope' into 'master'
Offline input delay cvar

See merge request KartKrew/Kart!687
2022-09-21 10:56:22 +00:00
Sally Coolatta
1530c15db7 Fix visual not matching exact steep range 2022-09-21 02:01:38 -04:00
Sally Coolatta
3f66a8e72f Fix fast fall preventing stumble 2022-09-21 01:38:21 -04:00
AJ Martinez
51d46a2a8a Remove debug print 2022-09-20 21:32:45 -07:00
AJ Martinez
aaf18fb1cf Offline Input Delay -> Minimum Input Delay, default 0 -> 2 2022-09-20 21:29:17 -07:00
AJ Martinez
8525dfb502 Allow netgame clients to display and be affected by mindelay 2022-09-20 21:21:51 -07:00
AJ Martinez
bd83a9f3b1 Mindelay: Probably don't calculate ping outside of games period 2022-09-20 20:33:30 -07:00
AJ Martinez
ada40b421c Mindelay: Never draw ping outside of games 2022-09-20 20:29:34 -07:00
AJ Martinez
e1f72898f5 Mindelay: Update ping display even in local play 2022-09-20 20:15:02 -07:00
AJ Martinez
87b92a7127 Bump ping tiers by 1 tic 2022-09-20 20:05:00 -07:00
AJ Martinez
e242207d10 Mindelay: Oni suggestions rollup 2022-09-20 19:01:54 -07:00
Oni
2d38d0fbc6 Merge branch 'item-debris-final' into 'master'
Item Debris

See merge request KartKrew/Kart!683
2022-09-20 22:20:44 +00:00
SteelT
ccff9a6ce2 Improve profile applying during startup
This allow cases can route around the title screen, such as if the `-connect` command line param is used, to work properly
2022-09-20 15:04:37 -04:00
James R
e7b0e223e1 Fix respawning item boxes with P_RespawnBattlesBoxes 2022-09-20 10:36:32 -07:00
James R
7a56e5ade6 Move choose and chooseweighted commands to command.c
Fixes disabled under dedicated and it's the appropriate
place for these. Effectively cherry pick of 35b82b6dd9
2022-09-20 08:29:14 -07:00
Sally Coolatta
12475dc434 Make smoothland client-sided 2022-09-20 10:35:13 -04:00
Sally Coolatta
f987d1b601 Add smooth landing vfx 2022-09-20 10:33:24 -04:00
James R
81eb513ef1 Fix item pop sfx not playing for eggman boxes and playing TWICE for everything else
The former is my bruh and the latter is probably not my
brew.
2022-09-20 06:10:52 -07:00
James R
7d87f2e1a2 Fix item debris animation
WHAT WERE THEY COOKING
2022-09-20 05:45:28 -07:00
James R
f6ef29cf03 Refactor item debris cloud
- The "cloud" is stationary and spawned on the item box
instead of the player. Still scales up with speed.
- Single particles are spawned behind the player. No
longer scales. Lasts longer but can end early if the
player slows down.
2022-09-20 05:45:28 -07:00
James R
c2b2cd9a43 Reenable item box respawning
Old code was shit so I removed it (4d67cc632). Turns out
none of that bullshit actually mattered to make this box
respawn and it just needs to go to an invisible state!

Makes use of some nifty flickering code (that was already
there but effectively disabled) shortly before it actually
respawns.
2022-09-20 05:45:28 -07:00
Sally Coolatta
acf2484def Merge branch 'master' into tumble-slope-fuck 2022-09-20 07:34:44 -04:00
AJ Martinez
db25599647 Offline input delay cvar 2022-09-20 02:34:53 -07:00
Oni
3f3e3ffdf6 Merge branch 'item-bungus' into 'master'
Make Ballhog more interesting

See merge request KartKrew/Kart!639
2022-09-20 01:31:47 +00:00
VelocitOni
a2db1673dc Made hitbox radius 26 instead of 16 2022-09-19 19:27:23 -04:00
VelocitOni
2dba4fd283 Merge branch 'master' into item-bungus 2022-09-19 18:11:26 -04:00
James R
c7847fa32a Bump trip wire leniency tics from 7 to 15 2022-09-19 14:21:37 -07:00
James R
744129aefb Merge branch 'nerf-leniency' into 'master'
Reduce tripwire leniency from 35 to 7 tics

See merge request KartKrew/Kart!676
2022-09-19 20:03:32 +00:00
toaster
0a48165d3a Disable hardcoded Discord API map icons for now, we can address this at release 2022-09-18 20:43:15 +01:00