Commit graph

18305 commits

Author SHA1 Message Date
toaster
8852874465 KHUD NOT NETSYNCED, hyuu cannot safely use it as a reference point 2021-11-28 21:00:49 +00:00
Sally Coolatta
fbaa57a39c Give Landmines its own bot usage function
Prevents them from attempting to use landmines tossed forward. (Not really notable at all, since there's no one in front of you when you get landmine, at most means they may hold onto it longer, but it was just a weird thing I always meant to fix)
2021-11-28 15:20:57 -05:00
toaster
15741da0a4 Improve some of the efficiency loss in F_DoWipe compared to K.S.'s 2.1 code by seperating out some of the loops. 2021-11-28 20:18:41 +00:00
toaster
ba3e896655 Make the game loading-bar miniwindow do OS polling, to allow you to tab back into it without it being considered frozen by the OS. 2021-11-28 20:15:42 +00:00
Sally Coolatta
e4b27933f2 Comment the tire grease change 2021-11-28 15:13:54 -05:00
Sally Coolatta
3536c73b66 Fix eggbox stealth being bugged and never being used... 2021-11-28 15:08:54 -05:00
toaster
3141ca0221 Replay fixes mark whatever
Not a pancaea for EVERYTHING, just a bunch of good stuff.

* Some issues with spectators not == true because the assignment wasn't casted.
* Netgame status (or rather its inverse) is recorded in netreplays now, to allow for power levels controlling spawn position.
* Fixed tally screen for replays to not scream infinitely at you.
* P_IsLocalPlayer now uses display players in replays.
* A bunch of good testing prints that helped me find these problems, commented out for now just in case we need them again soonish.
2021-11-28 20:03:49 +00:00
Sally Coolatta
6be351a304 Improved item throwing
- Bots attempt to do fast item snipes (they will throw more often when above top speed)
- They will not waste double jawz anymore (they check for a jawz already targetting who they want to shoot before they decide to shoot it)
2021-11-28 14:55:03 -05:00
Sally Coolatta
40958073e3 Increase bot max top speed now that everything around it is fixed lol 2021-11-28 14:42:44 -05:00
Sally Coolatta
c7caf7ab44 Pull the prediction a lot more forward by default 2021-11-28 14:37:21 -05:00
Sally Coolatta
dca887e23e Do not adjust friction on bots for tire grease 2021-11-28 14:36:58 -05:00
Sally Coolatta
0c35e3f8b7 Bring back more jitter 2021-11-28 13:31:25 -05:00
James R
2276304c1d Don't skip other line specials if a trip wire is passed 2021-11-28 04:09:15 -08:00
James R
0e6bb75230 Check TRIPWIRE texture at map load
So it can be animated.
2021-11-28 04:08:38 -08:00
James R
8e20ca4c04 TRIPWIRE
Set a sidedef's midtexture to "TRIPWIRE" to turn that line
into a tripwire.

Players can't drive through a tripwire and will bounce
back at high speed if they're in one of the following
states:

1. Invincibility / Grow
2. Sneakers
3. Flame Shield dash
4. >200% on the speedometer

Hitting a tripwire plays a sound, sends you into hitlag,
then plays another sound when the hitlag is over. The
sounds used depend on whether you can drive through the
tripwire.
2021-11-28 03:03:43 -08:00
Sally Coolatta
e1ee0977af Merge branch 'master' into snapify-hitlag 2021-11-28 01:23:53 -05:00
Sally Coolatta
c1b34d4d4f A few more instances 2021-11-28 00:32:07 -05:00
Sally Coolatta
15556dce0b Quakes are scaled with map scale
Finally
2021-11-28 00:25:40 -05:00
Sally Coolatta
0974d6d1f4 Reduced hitlag jitter
Makes a little easier to parse. I might have gone overboard but I really wanted to test my hunch if Ivo's issue was mostly the fact it jitters so hard :V
2021-11-28 00:08:50 -05:00
SteelT
0b74476707 Don't make asset hashing be required under dev builds 2021-11-27 21:02:04 -05:00
SteelT
c142648d03 Add cmake config option to compile a dev build 2021-11-27 20:36:40 -05:00
James R
17b3cd205e Merge branch 'snapify-hitlag' into 'master'
Snap da sentinel like hitlag

See merge request KartKrew/Kart!458
2021-11-28 00:29:29 +00:00
Sal
b239974675 Merge branch 'spring-grease-tweaks' into 'master'
Spring grease tweaks

See merge request KartKrew/Kart!457
2021-11-28 00:22:10 +00:00
Sal
e5a5727781 Merge branch 'segasonic-sounds' into 'master'
Add SegaSonic Arcade sounds

See merge request KartKrew/Kart!447
2021-11-28 00:21:27 +00:00
James R
9d485e17e7 Merge branch 'karma-gate' into 'master'
Elimination timer for karma bombs during overtime

See merge request KartKrew/Kart!459
2021-11-28 00:20:52 +00:00
James R
9abb632d19 Merge branch 'fix-hitlag-level-music' into 'master'
Fix level music not starting during hitlag

Closes #178

See merge request KartKrew/Kart!455
2021-11-28 00:20:20 +00:00
James R
b4fd699082 Merge branch 'balloons-collision' into 'master'
Let the player touch balloons

See merge request KartKrew/Kart!456
2021-11-28 00:20:07 +00:00
James R
e099cc2df8 Merge branch 'sound-def-volume' into 'master'
Volume option for sounds (like with MUSICDEF)

See merge request KartKrew/Kart!449
2021-11-28 00:19:53 +00:00
James R
5e6dac7020 Merge branch 'spbcapsul' into 'master'
No ring capsules when SPB-locked

See merge request KartKrew/Kart!452
2021-11-28 00:19:38 +00:00
James R
f90c85ef79 Merge branch 'fast-snake-netsave' into 'master'
Fix potential desync

See merge request KartKrew/Kart!454
2021-11-28 00:19:20 +00:00
Sally Coolatta
a17f11e6c5 Ignore collisions between 2 objects that are BOTH in hitlag
Still allows it if a new object interferes to add more hitlag, but this should hooopefully prevent super big knockback stacking from 1 object?
2021-11-27 13:45:23 -05:00
Sally Coolatta
cb5ea8b335 Add basic damage hitlag effects
- Invert high contrast greyscale colorization effect for damage hitlag
- Jitter is now also exclusive to damage-related hitlag
- Since jitter is now just tied to a flag, removed the old trick momentum hack
2021-11-27 13:38:45 -05:00
James R
0d3a1b72cb Apply grease to vertical only springs too 2021-11-27 03:05:04 -08:00
James R
f6e6c2010e Reintroduce battle overtime barrier minimum radius
- 768 fracunit minimum.
- Emerald spawning arc reduced so they spawn right next to
the barrier at minimum radius.
- Items always spawn.
2021-11-27 01:23:41 -08:00
Sally Coolatta
eb9e3d3e1b Snap da sentinel like hitlag
- Added a hitlag cap of 18 frames (can be decreased to 12 if it's too much)
- Hitlag amount can't be reduced, only increased
- Hitlag added is the same between both objects, instead of being different between the two
- Objects in hitlag can be interacted with again with TryMove (I was too nervous of it but it's fine in Snap lol)
- Rebalanced the damage hitlag lengths to make it feel relatively the same with all of the above considered
2021-11-27 03:24:29 -05:00
James R
fd6c65a339 Don't count down overtime karma timer while waiting to become bomb 2021-11-27 00:14:48 -08:00
James R
5f9ec5caa6 Fix karma overtime not counting down after 10 seconds :) 2021-11-27 00:06:01 -08:00
James R
059058476e Elimination timer for karma bombs during overtime
Every hit on another player while you are alive awards you
five seconds of karma bomb time during overtime. When this
timer is empty, you will DIE.
2021-11-26 21:55:32 -08:00
SteelT
d1a5a82980 Spring grease vfx is no longer visible when you're airborne 2021-11-26 23:44:06 -05:00
SteelT
db4bb74c42 All springs give spring grease 2021-11-26 23:42:25 -05:00
James R
25c6852482 Let the player touch balloons 2021-11-26 19:17:53 -08:00
James R
5f625437a8 Move level music check out of player thinker
Hitlag during this tic will skip playing the music.
2021-11-26 18:20:16 -08:00
James R
b22d18aea6 Merge branch 'makefile' into 'master'
Backport 2.2 makefile changes

See merge request KartKrew/Kart!453
2021-11-26 21:34:18 +00:00
James R
1958f3f61c Sync respawn.airtimer
Oops!
2021-11-26 12:55:23 -08:00
James R
170d0a2fb9 Toaster suggestions for e82bba18 2021-11-25 13:43:17 -08:00
toaster
d7e5d178e7 Fix ring capsules popping for you if you have an SPB. 2021-11-25 17:01:41 +00:00
James R
9ae0e0a8d7 Fix Kart conflicts
Conflicts from d5c08ac03

Some parts are reworked into the new build system.
2021-11-25 04:05:13 -08:00
James R
d5c08ac034 Backport 2021 SRB2 makefile overhaul
This is a squashed commit of the following commits from
upstream:

James R <justsomejames2@gmail.com> on 2021-05-01
Commit 44d217807f71d15bd7ca69dad226458e7060ccab
> Collect makefiles

James R <justsomejames2@gmail.com> on 2021-05-04
Commit f637e28d0c1877c44acd7b01f7130625d5ea4099
> Remove bin, objs and dep directories

James R <justsomejames2@gmail.com> on 2021-05-02
Commit b31056c7d977fe3c2a5e0637589fd9521f1f6c04
> Rewrite Makefile to be modular as well as more automated
>
> Some key points for programmers:
> - Source code files are mostly listed in a 'Sourcefile'.
>   So you no longer directly edit the object list. There
>   can be multiple Sourcefiles and they can even live in
>   subdirectories--the directory name will be prepended to
>   every filename in the list. Of course, the Makefile
>   still needs to be edited to read from each Sourcefile.
> - Different rules are no longer required for source code
>   files that live in subdirectories (such as sdl/ or
>   hardware/). Subdirectories Just Work so go ham!
>
> In addition to those points, another important change is
> that the bin directory is no longer divided into platform
> subdirectories (Linux64, Mingw, etc). Executables now go
> directly into bin. If you use DEBUGMODE or target 64-bit,
> then subdirectories for 'debug' and '64' will be made
> though.
>
> Oh by the way, I don't think make clean actually removed
> files before on Windows. It should now. I also fixed as
> many little inconsistencies like that as I noticed.
>
> And now just an overview of the technical aspects that
> shouldn't affect anyone who doesn't REALLY care about the
> Makefile...
>
> objs and dep directories have been moved to a make
> directory. Makefile.cfg and its variants have been moved
> out of their various subdirectories to src/Makefile.d
> make distclean removes the bin and make directories
> entirely, but make clean and cleandep still only affect
> the current build target.
>
> When I say automation, I mean that a lot of copy pasting
> in the Makefile has been reduced.

James R <justsomejames2@gmail.com> on 2021-05-04
Commit 53d1cbe8264196e46911c86bc4be13d44aa35dfe
> Appveyor: update executable directory

James R <justsomejames2@gmail.com> on 2021-05-04
Commit 888073d64d1885cae0ad8b5d54bfec31e9793e0a
> Fix make clean printing header

James R <justsomejames2@gmail.com> on 2021-05-04
Commit 3d7205d4942d1e1b2627fdf5acf9d9c82437a97b
> Fix minor errors with Windows ECHO, DEL, MD
>
> - Quotes were not removed by ECHO.
> - DEL would print an error on nonexistent file.
> - MD would do this plus return a nonzero exit code.

James R <justsomejames2@gmail.com> on 2021-05-05
Commit f9813844e7f0dfa6229062b1ebd83e4e8150c120
> Update CMakeLists.txt to use Sourcefiles
>
> This establishes (near) parity of source code file lists
> between the Makefile and CMakeLists.txt
>
> To make that change I messed around CMakeLists.txt a bit.
> It now uses target_sources and target_compile_definitions.
> I also removed some MSVC stuff since we don't actually
> care about MSVC--it made things easier.
>
> CMake minimum version 3.0 -> 3.13 for target_sources.

James R <justsomejames2@gmail.com> on 2021-05-05
Commit ec8b63d6759f0c124693ea6d5a521e8d82efd566
> Makefile: remove last of unused flags

James R <justsomejames2@gmail.com> on 2021-05-07
Commit c06817d0085ee77b0027917bca91a24e60c7deba
> Makefile: fix mingw/64 swapped with 32-bit

James R <justsomejames2@gmail.com> on 2021-05-07
Commit 9e7d80c2c44199126fa451c59fca0f98d23ad14d
> Makefile: suppress DEL error

James R <justsomejames2@gmail.com> on 2021-05-07
Commit 87afa7655a71539c7cbc7db12df18c4253187fbc
> CMake: fix ASM compile
>
> - target_sources from correct directory
> - enable_language must be used in add_executable directory

James R <justsomejames2@gmail.com> on 2021-05-08
Commit 210c9419e4bddd1fe8e9be7cb66de31119fa0d68
> Ignore -Wtrigraphs

James R <justsomejames2@gmail.com> on 2021-06-16
Commit 3a044e71cc7cf6c80d9836189511c1a58c108370
> Disable EXE disassembly and compression by default
>
> NOOBJDUMP=1 and NOUPX=1 have been removed. Make 'dump'
> target to disassemble. UPX=upx to compress executable.
>
> Setting UPX used to cause it to fail. That has been fixed.

James R <justsomejames2@gmail.com> on 2021-06-16
Commit c142b3241ddb8f1ea9b5090d20dffa43a17129ab
> Makefile: alert full path of final executable
>
> With added textual contrast.

James R <justsomejames2@gmail.com> on 2021-06-16
Commit b04c79d8a7ba4ae8f888ab94d394b6714699e107
> Say 'at'

James R <justsomejames2@gmail.com> on 2021-06-21
Commit 2d7a8c3c571bcc5335437e9db074c75af00408ce
> Makefile: use shell commands to read in Sourcefile
>
> File function is not supported < Make 4.2.

James R <justsomejames2@gmail.com> on 2021-06-21
Commit d5146945a69ebf30e6fc1fbb64558e456e0b7459
> Makefile: don't automatically set WINDOWSHELL unless PATH matches Windows norms
>
> This is for MSYS2, which requires unix shell commands.

James R <justsomejames2@gmail.com> on 2021-06-22
Commit 5f4d7e3c5b013afe03ae2a441c82ad79bae7c66c
> Makefile: fail if old build directories exist
>
> After a checkout from before revision, old directories
> such as bin/Linux64 only remain if untracked files exist
> within. This may be confusing to the user. They may even
> use an outdated executable if it is one of those untracked
> files.

James R <justsomejames2@gmail.com> on 2021-06-22
Commit c3ad5de912fccfdd64c510f5684883afceaa7d36
> Makefile: let variables be defined on Make line
>
> If a variable is defined as in 'make CC=gcc-10', then that
> definition overrides anything other definition in the
> Makefile.

James R <justsomejames2@gmail.com> on 2021-06-22
Commit ed85e994a46ace07cf022b38a9abac1698a8667e
> Remove misplaced parentheses

James R <justsomejames2@gmail.com> on 2021-06-29
Commit c1ecfa306f6a0b168d4f6cbc3224ebebd4deec51
> Makefile: 'dep' not 'deps'

James R <justsomejames2@gmail.com> on 2021-06-29
Commit 6c03f9b5b3590e01773f05bc1c31cc67a2d88fc2
> fuck

James R <justsomejames2@gmail.com> on 2021-06-29
Commit abdf5c101cbe80657f210c0b90800e2c4c6f0c05
> Makefile: report SHELL

James R <justsomejames2@gmail.com> on 2021-06-29
Commit 22ab611daa17bd23225f3afeeba39147c0d0fe17
> Makefile: do not automatically set WINDOWSHELL
>
> According to this answer--
> https://stackoverflow.com/a/45952425
> --Make will always prefer a unix shell, even on Windows,
> if one can be found in Path. So we can't check PATH to
> determine if it's a Windows shell... this is just too much
> bother.

James R <justsomejames2@gmail.com> on 2021-06-29
Commit f79e0ee540564fcec5da7c0dc4006906492a7f30
> Appveyor: remove 64-bit target

James R <justsomejames2@gmail.com> on 2021-06-29
Commit faee657572f23cd6f8b68c077873e01c4278414e
> Appveyor: update for new Makefile

James R <justsomejames2@gmail.com> on 2021-06-29
Commit 44b82dea58612e6f07830647e2b08555f54a7caa
> Appveyor: remove redundant CFLAGS
>
> Also changed -Wno-error=implicit-fallthrough to
> -Wno-implicit-fallthrough. For some reason Appveyor's
> version of GCC is triggering these warnings despite the
> comments, so just shut it up.

James R <justsomejames2@gmail.com> on 2021-06-29
Commit db919accd22350c087c1fd0e5122d8e490e2f171
> Appveyor: suppress real time file names

James R <justsomejames2@gmail.com> on 2021-07-12
Commit 58fa44e8dc0444eecbe701f31872fad9fa563a6a
> CMP0115

SteelT <steeltitanium1@gmail.com> on 2021-07-16
Commit 71f905f95bd4fe62dbca87208cf71b7309f12de1
> Fix gme support being effectively disabled
>
> I found this easier than trying to adjust the makefile, as it uses the same thing to automatically generate the various NO* compile options.

James R <justsomejames2@gmail.com> on 2021-08-14
Commit 824b1ab28cdddfd1c018454a9af14dabaab49fcd
> Makefile: use full stem in dependency generation
>
> Previously took only the filename, so the directory
> component was stripped. This broke dependencies for
> basically every file.

GoldenTails <milestailsprower101n2@gmail.com> on 2021-08-28
Commit 1a8ec7975c20e1d652cbbdb7a9e366192e41c05f
> Makefile: Improve gcc detection
>
> Wasn't working for me until I fixed it.
> Turns out gcc really doesn't like giving its name out.
> Most of the time it reads argv[0].
2021-11-25 03:56:23 -08:00
James R
8109bc8e61 Merge branch 'fast-snake' into 'master'
Quick reptile

See merge request KartKrew/Kart!451
2021-11-22 07:30:33 +00:00
James R
239e91c439 Do not tilt while respawning; speed up camera (snappier) 2021-11-21 22:20:04 -08:00