Commit graph

20329 commits

Author SHA1 Message Date
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
Sally Coolatta
04d4158ff6 Init RNG state on engine load 2022-09-19 00:55:33 -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
toaster
0a48165d3a Disable hardcoded Discord API map icons for now, we can address this at release 2022-09-18 20:43:15 +01:00
toaster
93e72d3f66 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into big-large-map-markers 2022-09-18 20:00:52 +01:00
toaster
7d990c4f15 Rework nextmap to be automatic
- Refactor significantly (now has its own func, `G_GetNextMap`)
    - If gametype uses cups, iterate through cups to find the current level, then grab the next valid level
    - If not, get the next valid mapheader for your gametype
    - SOC `nextmap`/`marathonnext` is not just deprecated but REMOVED
    - Hide the NEXTMAP_ constants again, but leave support dummied out for if we have them publically accessible again
- Also get rid of a bunch of OTHER mapheader stuff we're never gonna use
    - NiGHTS Grades? NOPE
    - Vanilla titlecard patches? NOPE
    - Boss music fadeout/replacement? NOPE
    - Select Heading? NOPE
    - You've been blocked.
- Don't show maps without lumps on the level select list
- this is me being petty, but making it NOTIMEATTACK in SOC instead of TIMEATTACK so we can reconsider the maps with/without them.
2022-09-18 20:00:28 +01:00
Sally Coolatta
d0482b4905 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart 2022-09-18 09:13:23 -04:00
Sally Coolatta
7aa29f80a9 /4 -> /3 2022-09-18 09:13:08 -04:00
VelocitOni
992dde0e3b Merge branch 'master' into item-debris-final 2022-09-18 07:58:53 -04:00
Oni
473545d8eb Merge branch 'poh-bee-suited-up' into 'master'
Poh-Bee sprites + laser sound

See merge request KartKrew/Kart!685
2022-09-18 11:57:30 +00:00
Sally Coolatta
fe960530da Pohbee turns around when reaching the waypoint 2022-09-18 05:20:29 -04:00
Sally Coolatta
ab8126b706 Add Tyron's sound 2022-09-18 05:06:45 -04:00
Sally Coolatta
dc350a77df Remove old powerup warning option 2022-09-18 04:58:17 -04:00
Sally Coolatta
e610c41d0f Add Poh-Bee sprites 2022-09-18 04:33:03 -04:00
Sally Coolatta
5767315787 SPB in its own file + better waypoint movement 2022-09-18 01:07:46 -04:00
toaster
b68710faf2 Rework special nextmap events.
- G_MapNumber now handles special NEXTMAP_ nextmapspecial_t constants that exist at the end of the available type.
- Cleanup of G_DoCompleted
- Add bounds checking to the various SOC maincfg map starts (spstage_start, etc)
- Add lump checking to titlemap behaviour
2022-09-17 19:10:04 +01:00
toaster
8ea80d64ef Randmapbuffer now prepared for infinite maps
- Now a struct with zone-allocated buffer member
- Instead of bunging it on the end of the buffer, the time for G_SometimesGetDifferentGametype is its own struct member
2022-09-17 16:13:50 +01:00
James R
4d67cc6324 Replace shitty item box pop with flying debris and dust clouds
Debris flies forward and outward from the player in the
direction of momentum. Debris particles bounce once then
disappear when they hit the ground for the second time.
Clouds spawn on and trail behind the player for a short
duration.
2022-09-17 06:41:44 -07:00
toaster
d42812d5b5 Don't select a map - whether random (voting screen, randommap command, etc) or specific (map command) if it has no associated lump. 2022-09-17 14:08:11 +01:00
toaster
1a284ec7c6 Merge branch 'master' of https://git.do.srb2.org/KartKrew/Kart into big-large-map-markers
# Conflicts:
#	src/d_netcmd.c
2022-09-17 13:57:26 +01:00
toaster
7e17f5456c I_Error in all situations where mapheaders were previously allocated outside of SOC.
Also:
- improved error prints for SOC condition definitions
- improved bounds checking to use `nummapheaders` for iterating over mapheaderinfo
There are still situations that use NUMMAPS like mapvisited, randmapbuffer, etc, which need to be addressed before merger.
2022-09-17 13:07:48 +01:00
James R
4c89619ac4 Merge branch 'sdl-vsync' into 'master'
SDL: Support setting vsync at runtime

See merge request KartKrew/Kart!663
2022-09-17 07:28:55 +00:00
James R
6a6a0accee Merge remote-tracking branch 'origin/cvar-default-ports' 2022-09-17 00:18:10 -07:00
James R
3d2d8bce16 Merge branch 'spritestuff-ports' into 'master'
Spritestuff ports

See merge request KartKrew/Kart!669
2022-09-17 07:10:44 +00:00
James R
1cf1643233 Merge branch 'stability-fix-ports' into 'master'
Stability fix ports

See merge request KartKrew/Kart!670
2022-09-17 07:08:26 +00:00
toaster
accb88869d Don't strip previous thumbnail/minimap information on header replace, since the lumpnum will remain the same otherwise 2022-09-17 00:43:26 +01:00
toaster
1fbd5655f5 Replay hut: Show nolvl if the user hasn't added the map, or blanklvl if they have. 2022-09-17 00:03:49 +01:00
toaster
acc92ba4c9 Catch some areas that previously checked for map lump, but stopped doing so for a bit. 2022-09-17 00:02:54 +01:00
toaster
dcd63aece9 Repair bootmap.
We're not even going to use this feature, but it showed up as nonsensical while reviewing, and would take more work to strip out
2022-09-16 23:40:42 +01:00
toaster
6bd29a51b1 Remove test strtok print 2022-09-16 23:13:54 +01:00
toaster
04e5cfd338 Fix cups.
* Required an adjustment of everywhere using G_MapNumber to return the raw header number, instead of off-by-one ala gamemap.
    * Fixing gamemap is a viable improvement for a future commit, but this commit is already pretty big.
    * Remove SCANTHINGS, since it used G_MapNumber and didn't work with long map names OR virtres anyways.
* Support freeing new information in CLEAR LEVELS maincfg event, since I tried to use that to test cups.
* Make Patch_Free's usability match Z_Free -- passing NULL is permitted and a no-op.
2022-09-16 22:51:02 +01:00
toaster
4f1bb14732 Extra catch to prevent SIGSEGV 2022-09-16 15:07:12 +01:00
toaster
46441092dc Address initial review comments + associated cleanup
- Grab thumbnail and minimap pictures even for base game maps
- Repair modified game event for replacement map load
- PU_STATIC thumbnail and minimap, freed on new file load lump discovery
- Fix W_CheckNumForMap to not SIGSEGV if no match
- Reduce the number of pointless map lump hunts, we've already got it stored
- Prevent use-after-free for map pictures on voting screen
- Cache "BLANKLVL" patch once
- Draw minimap on the time attack menu

Unfortunately cups are still broken and I'm not sure where to start on that, or if it's just not having a sample wad to test with that includes cups
2022-09-16 15:01:49 +01:00
Sally Coolatta
16a12de4f4 Fix hyudoro ballhog bug 2022-09-16 06:57:28 -04:00
Sally Coolatta
fac7bb0627 Merge branch 'master' into item-bungus 2022-09-16 06:56:23 -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
c936c797f0 Merge branch 'master' into better-splash 2022-09-16 05:00:13 -04:00
Sally Coolatta
8f38555a86 fixme for james :) 2022-09-16 00:06:02 -04:00
Sal
6d79df0577 Merge branch 'm-for-mini' into 'master'
New Shrink

See merge request KartKrew/Kart!682
2022-09-16 04:03:09 +00:00