Commit graph

2203 commits

Author SHA1 Message Date
Marcin Kurczewski
0da996864c
build: fix GH jobs 2023-09-21 19:30:59 +02:00
lahm86
8a732093ad
lara: enable rolling underwater (#994)
Adds the underwater rolling animations from TR2 to Lara's enhanced
animation injection set and adds the optional state change handling
to Lara's state routines.
Modifies the command to rotate 180 deg by applying to the X rotation
as well as Y.
Resolves #993.
2023-09-21 19:30:39 +02:00
Marcin Kurczewski
6a41d93c15
overlay: add 3d pickups animation
Resolves #257.
2023-09-20 11:51:35 +02:00
Marcin Kurczewski
ce8c658f06 input: persist toggled settings
Resolves #988
2023-09-19 23:24:57 +02:00
Marcin Kurczewski
e5a21bec4f option/passport: fix new game requester placement 2023-09-19 23:24:50 +02:00
Marcin Kurczewski
b038cc169d misc: fix sprintf warnings 2023-09-19 23:24:50 +02:00
Marcin Kurczewski
ace0e9e767 misc: fix casts 2023-09-19 23:24:50 +02:00
Marcin Kurczewski
6d9443f80f
filesystem: fix heap corruption (#983) 2023-09-11 11:05:53 +02:00
Marcin Kurczewski
ce4de876bc
gfx: let the player set the fbo filter separately (#982) 2023-09-10 22:02:13 +02:00
Marcin Kurczewski
4fe7045ce1
shell: improve support for windowed mode (#981)
Resolves #896.
2023-09-10 21:18:59 +02:00
lahm86
bfab140dfc
lara: fix responsive jumping delay (#978)
This ensures that when going from animation 6 to 0, Lara's jump lock
will be lifted on the third frame in line with original TR1 jumping.
Resolves #975.
2023-09-10 16:44:23 +01:00
Marcin Kurczewski
e22e27e707
input: fix alt-enter triggering game actions (#980)
Resolves #979.
2023-09-10 17:26:30 +02:00
Marcin Kurczewski
60323acf05
gfx: add an option to render using framebuffers (#974)
Resolves #114.
2023-09-10 17:26:09 +02:00
walkawayy
a4d1baae9d
config: add new game plus unlock (#973)
Resolves #966.
2023-09-09 15:24:41 +02:00
walkawayy
fbfa54306b
gameflow: rework force game mode to match save crystals (#971) 2023-09-07 11:21:06 -04:00
lahm86
af63bc7965
natla: move facing property to item scope (#972)
This moves Natla's facing property from module to item scope, so to
prevent multiple Natla instances simultaneously changing the same
variable, which would lead to undesirable spinning in her semi-death
and second phases.
Resolves #906.
2023-09-07 15:29:04 +01:00
walkawayy
c373fe836e
config: move enable_save_crystals to config (#965)
Resolves #963.
2023-09-06 15:23:28 -04:00
lahm86
51ddae465d
savegame: prevent loading legacy FX data (#970)
Prevents loading FX data from version 2 savegame files. This will
avoid issues where flames are saved with incorrect FX numbers, which
can lead to double flames appearing on load.
Resolves #968.
2023-09-05 21:28:14 +01:00
walkawayy
59382c3833
config: move enable_game_modes to config (#964)
Resolves #962.
2023-09-03 21:27:31 -04:00
Marcin Kurczewski
9f16340e6c effects: simplify linked lists management
The next_fx was split into a draw and a free pointer, which makes it
easier to understand.
2023-09-01 21:16:23 +02:00
walkawayy
c26b5e91a2
passport: fix NG+ if enable_game_modes set to false (#961)
Resolves #960.
2023-09-01 14:34:12 -04:00
Marcin Kurczewski
d87837d951 build: always bump git version; remove init.c
Rebuilding the exe was not updating the git version shown inside the
game, which caused me some issues when I was working on the project
across two machines. This new approach forces meson to always reconsider
the current version, and rebuild relevant autogenerated files:
version.rc and init.c prior to linking the .exe.

Furthermore, the versioned init.c was removed. The existing users who
choose to build without Docker will continue to see fallback
information, but the mechanism was changed from a versioned file to a
special environment variable that's set by the Docker builds.

This change should require no action other than a clean project rebuild
on the part of the users.
2023-08-31 23:31:46 +02:00
Marcin Kurczewski
becc20f951 savegame: fix flame emitter item data save and load 2023-08-31 23:30:52 +02:00
lahm86
c17594f9fe
camera: fix floor data parsing in trigger refresh (#955)
This corrects the floor data parsing when refreshing camera triggers.
Without this, it's possible for the parsing to continue into the next
sector's floor data and if the first entry there is an antipad,
control will incorrectly fall into the camera switch case.

Resolves #352.
2023-08-29 22:27:50 +01:00
lahm86
480845f884
inject: restore City of Khamoon mummy (#951)
Added an option to restore the PS mummy in City of Khamoon room 25.
This required moving the stats room caching call to occur after
injection, otherwise inserted triggers aren't detected and hence the
kill count would be wrong.

Resolves #886.
2023-08-29 16:49:06 +01:00
lahm86
d9588076ab
lara: fix automatic slope jump-twists (#950)
Prevents automatic jump-twists when jumping off slopes.

Resolves #949.
2023-08-28 18:50:12 +01:00
lahm86
a914c53235
inject: fix Atlantean Stronghold room portals (#948)
Adds to the Atlantean Stronghold FD injection fixes by reconfiguring
the portals between rooms 74 and 12 such that the vertices are within
the room bounds in all cases. This amends the injection function for
this to allow targeting specific doors as there are 3 in this case.
Its other use case is in Palace Midas where there is only 1 portal.

Resolves #227.
2023-08-28 13:45:36 +01:00
lahm86
7278f28d48
inject: fix music trigger setups in Folly (#946)
In St. Francis' Folly, the music trigger for track 3 in room 4 has been
moved behind the Neptune door. A new trigger for track 15 has also been
added once the 4 keys are used at the end of the level.
A new injection function to support moving rooms has been added. This
is used in Folly to move room 54 out of earshot so the player does not
hear the boulder that opens the door.

Resolves #865.
2023-08-27 22:32:43 +01:00
lahm86
259c04039b
inject: add the ability to insert floor data (#944)
Added an injection function to allow inserting new floor data values.
Added an injection file for Tomb of Tihocan to restore a missing rat
trigger.

Resolves #751.
2023-08-25 21:52:03 +01:00
lahm86
e88e6980e5
inject: fix non-oneshot music triggers (#940)
Added an injection function to support converting triggers to one shot.
Added injections for each level identified as needing trigger updates.

Resolves #939.
2023-08-24 18:03:08 +01:00
walkawayy
96822a13c0
overlay: fix reset and unbind progress bars (#936)
Resolves #930.
2023-08-24 11:09:35 -04:00
lahm86
35394c21e3
lara: fix TR2 style walk-run-jump
Resolves #934.
2023-08-22 21:06:56 +01:00
lahm86
82e222aa89
lara: improve jump-twist input detection
Resolves #931.
2023-08-22 07:28:10 +01:00
lahm86
432ed36273
lara: fix jump-twist interruptions
Resolves #932.
2023-08-20 22:47:47 +01:00
lahm86
e42791722d
centaur: fix incorrect starting frame
Resolves #926.
2023-08-18 19:10:05 +01:00
lahm86
dc91703e76
centaur: fix explosion after re-loading
Resolves #924.
2023-08-16 22:17:43 +01:00
lahm86
ddb5cd40ec
gameflow: ignore legacy sequences
Resolves #882.
2023-08-15 23:53:19 +02:00
lahm86
01922cbd2d
data: allow failed injections
Resolves #918.
2023-08-15 23:53:19 +02:00
walkawayy
169e536c1b
scion: fix Scion_Collision4 rot restore (#917) 2023-08-15 23:53:18 +02:00
walkawayy
0416d23717
data: rotate some OG 3D pickups (#914)
Resolves #253.
2023-08-15 23:53:17 +02:00
walkawayy
a03f76c758
savegame: add triggered music tracks to the savegame (#905)
Resolves #371.
2023-08-15 23:53:08 +02:00
walkawayy
5b08870ad6
savegame: bump version to version 3 for new music options (#913) 2023-08-15 23:52:56 +02:00
walkawayy
534a08c507
music: fix saving track timestamps loading finished tracks (#910)
Resolves #908.
2023-08-15 23:52:56 +02:00
walkawayy
04c08b1964
savegame: save and load current music track and timestamp (#436)
Resolves #419.
2023-08-15 23:52:03 +02:00
walkawayy
5197940a6a
bear: fix the bear pat attack so it does not miss Lara (#903)
Resolves #450.
2023-08-15 23:52:03 +02:00
lahm86
e300ff0c4e
savegame: initialise gym only when present
Resolves #899.
2023-08-15 23:52:02 +02:00
walkawayy
2dc71a018f
natla: fix Natla's gun moving while she is in semi death state
Resolves #878.
2023-08-15 23:52:02 +02:00
walkawayy
1afec6ebcb
natla: use code and naming convention for static var facing 2023-08-15 23:52:02 +02:00
lahm86
66498b61d5
lara: fix drop-grab
Resolves #911.
2023-08-15 23:50:18 +02:00
lahm86
f6c8af4a11
matrix: fix interpolation anomaly
Resolves #901.
2023-08-15 23:48:43 +02:00