Commit graph

23949 commits

Author SHA1 Message Date
toaster
fb8795c8da M_FinaliseGameData
Creates a central landing point where gamedata loads/creates can be finalised properly.

In addition, gamedata wipes caused by data erase or custom SOC gamedata can no longer be saved in a partway corrupted state if they were to crash midway through.
2023-08-19 14:32:11 +01:00
James R
16d966d583 Merge branch 'update-freecam' into 'master'
Replay Freecam Love, accessible during regular gameplay, spectate and pause game anywhere, probably other fixes

See merge request KartKrew/Kart!1399
2023-08-19 12:02:51 +00:00
James R
7a1e61d722 Move democam.reset_aiming to camera_t, let spectator camera even out aiming 2023-08-19 05:01:41 -07:00
James R
414d6f3647 Don't reset camera position when spectating
Fixes a software renderer crash due to hitlag VFX from the
player's death (death from spectating) being too close to
the camera.
2023-08-19 05:01:41 -07:00
James R
0036006586 R_ViewRollAngle: don't apply camera tilting while using freecam 2023-08-19 05:01:40 -07:00
James R
01e2a26689 DEVELOP: let us spectate or pause the game at all times
TODO: This should be available as a debugging option at
release, since it would be useful for addon authors.
I don't want to make more cvars, those are getting
cluttered and should maybe be coalesced into a single
debugging option.
2023-08-19 05:01:40 -07:00
James R
c7bd74c661 Let replays use director controls 2023-08-19 05:01:40 -07:00
James R
fcc35c1bb1 Toggle between freecam and director using C button 2023-08-19 05:01:40 -07:00
James R
697e42cecd P_DemoCameraMovement: drift button resets vertical angle 2023-08-19 05:01:40 -07:00
James R
ff447a212a P_DemoCameraMovement: even out vertical angle after toggling
After turning on freecam, the vertical angle is tilted
slightly downward (this is carried over from normal
chasecam).

Interpolate that angle back to normal while moving
forward. This makes it so you don't need to manually
adjust the vertical angle, since it would cause forward
movement to send you into the ground.
2023-08-19 05:01:40 -07:00
James R
0f9ceab817 P_DemoCameraMovement: don't let A button press from menu carry over to rise camera 2023-08-19 05:01:40 -07:00
James R
83f02231e3 Replace spectator movement with demo freecam 2023-08-19 05:01:40 -07:00
James R
8809ab02fc democam: remove unnecessary fields 2023-08-19 05:01:40 -07:00
James R
fec0f13419 P_DemoCameraMovement: use locally built ticcmd from G_BuildTiccmd 2023-08-19 05:01:40 -07:00
James R
dbca307ad4 Fix sound handling in demo freecam
- Object sounds are audible from the location of the
  camera
- Certain HUD sounds should no longer be audible
  - For instance, lap complete sfx
2023-08-19 05:01:40 -07:00
James R
5a40f554d4 ST_overlayDrawer: hide VIEWPOINT text when using demo freecam 2023-08-19 05:01:40 -07:00
James R
5a973734d0 Move software shearing conditions from R_SetupFreelook into G_FinalClipAimingPitch 2023-08-19 05:01:40 -07:00
James R
bf14773b21 TiccmdBuilder: don't reset ticcmd while paused
If there a short pause by mistake, this will prevent it
from interrupting a drift, for instance.
2023-08-19 05:01:40 -07:00
James R
3320faec8c Interpolate view, even when paused
Fixes slideshow movement with demo freecam while paused.
Does not appear to jitter like texture scrollers do.
2023-08-19 05:01:40 -07:00
James R
89c503135a Tweak spectator vertical aiming
- Decrease vertical aiming speed to match turning speed
- Reduce software aiming bounds to 45 degrees
  - (Even) less distortion due to extreme angles
2023-08-19 05:01:39 -07:00
James R
3282a2581b Instawhip cooldown: don't flicker dark frames while whip is still out 2023-08-19 04:58:55 -07:00
James R
2d7a224e8e Instawhip hop: 1.5x height, slightly tweak timing 2023-08-19 04:43:01 -07:00
James R
9e5c9cfbd9 Instawhip: don't hop if activated in the air 2023-08-19 04:27:51 -07:00
Sally Coolatta
bd1f0e6216 Unset mapthing spritex/yscale when converting old maps 2023-08-19 07:21:23 -04:00
Sally Coolatta
7dc65dd3a9 Allow writetextmap outside of binary maps
This allows for using -writetextmap as a conversion method for old version maps, while the editor does not have it.
2023-08-19 07:12:45 -04:00
Sal
5e607704eb Make UDMF scale compatible with ZDoom's spec 2023-08-19 07:11:38 -04:00
Sally Coolatta
a19311d523 Add UDMF version system
This is needed to convert maps, since I needed to change thing arguments' variable names...
2023-08-19 07:11:38 -04:00
Sally Coolatta
01b5e8f9eb Separate script args from mapthing args
SRB2 uses a LOT of mapthing args compared to Hexen (which has none) and ZDoom (which only has them on objects that will never ever activate scripts). So we really badly needed to separate the two if we want attaching scripts to things to be useful.
2023-08-19 07:11:38 -04:00
James R
5cc4b1ebad K_DropEmeraldsFromPlayer: fix after emerald orbiting changes
I don't see what it was using the target for before so I'm
just removing that.
2023-08-19 04:03:32 -07:00
James R
d06185f5a3 M_Drawer: don't draw PAUSE graphic in the Stereo menu 2023-08-19 03:45:43 -07:00
James R
7d7cc04da2 Player glows with additive exposure while emerald collection lens flare plays
For ease of programming, the emerald itself glows in
Sealed Stars.
2023-08-19 03:42:31 -07:00
James R
4857d48633 Add "twinkle" lens flare to emeralds
- Battle: plays once the orbiting collection animation
  finishes and the player's emerald flags are updated
  - Centered on the player

- Sealed Star: plays as soon as the orbiting animation
  begins
  - Centered on the emerald
2023-08-19 03:40:17 -07:00
James R
dd7f6b17dd Add fuse behavior to emerald orbit, Battle collect animation
- Battle emeralds orbit into the player's body upon
  collection
- Emerald shrinks down to a speck
- Orbiting speed increases over time
- Player's emerald flags altered at the end of the
  animation
2023-08-19 03:28:41 -07:00
James R
4bdc05824c Add Obj_BeginEmeraldOrbit, seamless transition into orbit 2023-08-19 03:24:22 -07:00
James R
fe6da4e087 Instawhip: consistently flicker on opposite frame of player flashing tics 2023-08-17 18:12:59 -07:00
James R
a680e11675 Instawhip: adjust player sprzoff and cameraOffset instead of momz
Since gravity is not involved, this will be more
consistent but it is also slightly different than before.
I tried to match it closely to how it behaved before,
though.
2023-08-17 18:10:59 -07:00
James R
ebb79fa34b Add player_t.cameraOffset, offset chasecam Z position 2023-08-17 18:09:03 -07:00
Chromatian Keiske
7f89bee3f2 Merge branch 'fix-water-run-jawz' into 'master'
Let Jawz, Orbinaut and Gachabom water ski

See merge request KartKrew/Kart!1400
2023-08-17 05:01:48 +00:00
James R
52793f177c Merge branch 'acs-thing-count' into 'master'
ACS: Better thing counting + a couple ZDoom ports

See merge request KartKrew/Kart!1398
2023-08-16 08:00:59 +00:00
James R
420d9a402f Merge branch 'refactor-build-ticcmd' into 'master'
Refactor G_BuildTiccmd

See merge request KartKrew/Kart!1397
2023-08-16 08:00:27 +00:00
James R
72a58cee3c Orbinaut and Gachabom water run if player was water running when it was thrown 2023-08-16 01:00:08 -07:00
James R
b46bfc8766 Obj_JawzThrown: chase UFO Catcher immediately
Done here so Jawz fulfills water running condition during
K_SpawnKartMissile.
2023-08-16 01:00:08 -07:00
James R
99c4d798a1 K_SpawnKartMissile: facilitate water running
- Set floorz and ceilingz so object fulfills grounded
  condition for water running

- Set position after object is fully configured
  - Jawz needs target set in order to water run
2023-08-16 01:00:08 -07:00
James R
a3ced9240f Merge branch 'ark-arrow' into 'master'
Ark Arrows

See merge request KartKrew/Kart!1402
2023-08-16 06:04:21 +00:00
Lach
53b48d057c Rename Lost Colony symbols to Ark Arrows and add 10 new symbol types 2023-08-15 22:47:04 +10:00
James R
6629be152f Merge branch 'music-manager-compile' into 'master'
Fix music manager clang error

See merge request KartKrew/Kart!1401
2023-08-15 10:45:56 +00:00
Lach
962273044c Fix music manager clang error (thanks jart) 2023-08-15 20:37:21 +10:00
James R
eff895178b ACS_SectorThingCounter: fix infinite loop in touching iterator 2023-08-14 18:11:33 -07:00
James R
a871fb702e Merge branch 'fix-debugfile-underflow' into 'master'
Fix underflow in debugfile

Closes #594

See merge request KartKrew/Kart!1385
2023-08-14 12:42:26 +00:00
Sally Coolatta
ae7325cbc3 Add PlayerNumber and ActivatorTID from ZDoom 2023-08-14 04:41:19 -04:00