Commit graph

614 commits

Author SHA1 Message Date
james
0c5cc4872f Support splitscreen views in netreplays with less than four players
The first view is also not changed if there are no players to view.
2019-02-13 16:22:32 -08:00
fickleheart
4f8ef7c3aa Fix compile warnings 2019-02-06 21:03:05 -06:00
fickleheart
1c6046ac43 Merge remote-tracking branch 'remotes/upstream/master' into new_netreplays
# Conflicts:
#	src/g_game.c
#	src/k_kart.c
2019-02-06 20:47:35 -06:00
fickleheart
e5cdf6d84d Format for better consistency with the codebase 2019-02-06 20:25:45 -06:00
fickleheart
dab16409ce Fix views not setting properly when adding multiple at once 2019-02-06 20:25:27 -06:00
james
b17607c3c3 Expose G_ResetView and amend G_ResetViews
(fickle's suggestion.)
2019-02-04 20:13:30 -08:00
james
b777ae0ca8 Automatically load splits up to new viewpoint
Basically, you can start viewing your third split and the second one views
another!
2019-02-04 17:58:55 -08:00
James R
8a1c6114a7 Add support for changing viewpoint via console
This isn't just a shameless console-empowerement. More precise "spying" can
benefit everybody. But especially in net-replays, this is almost necessary.
2019-02-04 03:09:40 -08:00
fickleheart
5836b0818a Record net replays to replay/online/ 2019-02-03 14:29:54 -06:00
fickleheart
a7d78cf273 Add support for encore and battle replays 2019-02-03 13:55:29 -06:00
toaster
d3f739f64a Merge branch 'master' of https://git.magicalgirl.moe/KartKrew/Kart-Public.git into next 2019-02-02 21:12:49 +00:00
fickleheart
3618de853e Play generic intermission music after netreplays
Mostly because I kept cycling to other people after the
top half finished and always got the lose music as a
result lol
2019-02-02 10:54:24 -06:00
fickleheart
3440c23705 Fix map name not showing right on replay intermission 2019-02-02 00:24:15 -06:00
fickleheart
ee35987a31 Play intermission after net replays 2019-02-01 21:06:52 -06:00
fickleheart
7d5649ad97 Make replays single-view by default unless requested 2019-02-01 20:19:52 -06:00
fickleheart
0906e02d99 Allow changing all players' viewpoints in replays 2019-02-01 19:53:52 -06:00
fickleheart
2a7bde2366 Refactor view changes a bit 2019-02-01 19:46:58 -06:00
wolfy852
7d05d41cf3 Comment out type 2019-02-01 15:45:53 -06:00
wolfy852
6cdc1f4f24 Skip over type
CORRECTLY, this time.
2019-02-01 15:42:29 -06:00
fickleheart
e6380ecf3e Make the join sync hack a little more robust 2019-02-01 07:50:42 -06:00
fickleheart
ff8e14b997 wip replay viewpoint stuff heck im tired zzz good night 2019-02-01 01:32:35 -06:00
fickleheart
e3e72988d4 Make joins/quits/enters/spectates sync in replays
I'm not 100% sure on joins. That P_RandomByte() call
looks ugly. It'll probably be a source of trouble.
2019-02-01 00:44:35 -06:00
wolfy852
e5885aad6f Fix replay weirdness
Sryder's Pleasure Castle ghost tries to return to England with this line.
2019-01-31 23:21:00 -06:00
fickleheart
e1c2bc0fa9 Fix replay split breaking with less than four viewpoints 2019-01-31 23:03:44 -06:00
wolfy852
d2a286efd7 Potentially fix 64-bit builds crashing on certain replays 2019-01-31 19:15:28 -06:00
fickleheart
8837fac760 4p split views test 2019-01-31 00:00:28 -06:00
Sal
73ce8f4e74 Merge branch 'majormods' into 'next'
Allow playing in Record Attack with minor add-ons

See merge request KartKrew/Kart-Public!31
2019-01-29 23:19:57 -05:00
toaster
2e232b67ba * Did some reviewing, turns out there's literally no reason to disable savemoddata when majormods gets tripped and it's just a stupid thing vanilla did for modifiedgame for some reason that we almost inherited with our new solution?
* Adjusted the save system to acknowledge the new status quo. Instead of trying to save modifiedgame in the file like some sort of extremely boneheaded honour system everyone and their mothers hacks around, we just use it to determine whether the save is for a mod with savedata or not (this keeps backwards compatibility based on how we were using it, anyways, especially with the *force* parameter...)
* Added a menu message for attempting to play a demo set on a map that isn't loaded, as opposed to letting it I_Error.
* Minor tweaks to addons menu representing modded status.
2019-01-28 16:32:07 +00:00
fickleheart
8473194e8a Fix replay viewer discarding aim keys 2019-01-27 20:36:13 -06:00
fickleheart
63dd29564e Write respawn command usage to replays 2019-01-27 19:30:20 -06:00
fickleheart
f1048d2b5a Fix crashing at the end of netreplays 2019-01-27 19:09:29 -06:00
fickleheart
4116c11152 Write skin/color/name changes to replay 2019-01-27 19:07:30 -06:00
fickleheart
cc5bcd1676 Reset oldcmd when recording netreplays 2019-01-27 17:09:25 -06:00
fickleheart
30649b0574 broken spectator stuff? 2019-01-27 16:23:34 -06:00
fickleheart
d9f1345701 [HACK] Save correct lap count on netreplays 2019-01-27 15:45:42 -06:00
fickleheart
28da2d2a85 Store cmd.latency in replays 2019-01-27 15:09:58 -06:00
fickleheart
2ec0673af9 Fix players spawning in the wrong spots when watching replays 2019-01-27 14:34:22 -06:00
fickleheart
5a6ad744b1 Separate oldtic for each player 2019-01-27 14:34:19 -06:00
fickleheart
61ba4ac123 Fix compile errors 2019-01-27 14:33:57 -06:00
fickleheart
11837576a1 I don't wanna deal with ghosts right now 2019-01-27 14:33:51 -06:00
fickleheart
7d881e7af1 Store initial player data in net replay 2019-01-27 14:33:45 -06:00
fickleheart
b0792aed46 Start with some strange multiplayer replay init stuff
Mostly just disabling the parts of the replay that assume
a single player, right now.

# Conflicts:
#	src/g_game.c
2019-01-27 14:33:38 -06:00
Sal
809138e285 Merge branch 'expose-more-lua-stuff' into 'next'
More Lua stuff + PlayerCmd hook

See merge request KartKrew/Kart-Public!28
2019-01-26 13:19:41 -05:00
toaster
004cde8a57 Code cleanup as requested by Sal and Sryder.
* majormods and savemoddata cannot coexist as true values, so going through and making situations that involve both only reference one.
* Clean up comments in `dehacked.c`.
2019-01-26 16:58:45 +00:00
Latapostrophe
60bbea9de1 No more ghetto check, and some more descriptive comments on the Hook 2019-01-26 16:55:26 +01:00
toaster
e3836bf772 Merge branch 'master' of https://git.magicalgirl.moe/KartKrew/Kart-Public.git into majormods 2019-01-21 21:56:49 +00:00
toaster
963c4451b4 Fix incorrect condition for setting savemoddata to false. 2019-01-21 21:48:52 +00:00
toaster
5dac9c4731 whoopsie doodle, forgot gh wasn't allocated until after this section 2019-01-18 14:53:43 +00:00
toaster
0eca0e6613 Turns out modifiedgame was getting set during startup because of making it use G_SetGameModified. Uh, woops? 2019-01-18 13:01:40 +00:00
TehRealSalt
815d287cbe Final v1.0.2 commit (probably)
- Update chars.kart hash, AGAIN!
- Fix spectators being visible on minimap when F12ing people
- Optimize how splitscreen players are drawn on top of the minimap
- Remove duplicated cvar registrations
- Move cv_resynchattempts and cv_netticbuffer from D_ClientServerInit to D_RegisterServerCommands and D_RegisterClientCommands respectively, so they can save to config properly
- Increase "Frequent" gametype switch frequency even more
- "SRB2" version dehacked warning ignores srb2.srb
2019-01-18 04:30:38 -05:00