Commit graph

711 commits

Author SHA1 Message Date
Marcin Kurczewski
1d10559202 tr2/game-flow: fix /play keeping Lara's inventory
Resolves #2267.
2025-02-09 23:46:30 +01:00
lahm86
efe124c60e level: allow empty SFX data while reading
This allows reading levels that contain no SFX data.

Resolves #2460.
2025-02-08 18:24:05 +00:00
Marcin Kurczewski
43dea40a12 output: remove screen plane clipping 2025-02-06 10:18:13 +01:00
Marcin Kurczewski
0f2d3d71f0 cmd: add new /music command 2025-02-03 13:52:03 +01:00
Marcin Kurczewski
a5f0f61251 cmd: add new /gym command 2025-02-02 23:02:05 +01:00
Marcin Kurczewski
ed18dcce71 cmd/demo: add console log when playing a demo 2025-02-02 23:02:05 +01:00
Marcin Kurczewski
77b711dbc6 cmd: add new /cutscene command 2025-02-02 23:02:05 +01:00
lahm86
71cd31d7ab camera: store cinematic frames in camera module
This moves cinematic frames into a new common camera cinematic module;
they should only be changed on level reading.

This also adds checks to TR2 in case there are no frames and a
cinematic is loaded.

Resolves #2413.
2025-02-02 10:09:23 +00:00
Marcin Kurczewski
5139c16838
input: fix saving custom controller layout
Resolves #2422.
2025-02-01 19:13:36 +01:00
lahm86
0e025b65ac output: raise TR2 texture limits
This removes the cap on object and sprite textures in TR1 and TR2, and
raises the TR2 page limit to 128.

Resolves #1795.
Resolves #1796.
2025-01-28 17:43:59 +00:00
lahm86
18de1465d2 tr2/game_buf: expand game memory limit
This raises TR2's game_buf limit to match TR1, at 128 MB.
2025-01-28 17:43:59 +00:00
lahm86
bd829fa465 docs: remove unnecessary entry
Photo mode is unreleased in TR2 so the entry for #2362 is not relevant.
2025-01-28 09:17:06 +00:00
lahm86
074cfb138b tr2/output: add support for animated sprites
This uses the same logic as TR1 to allow sprites to be animated.

Resolves #2401.
2025-01-28 09:17:06 +00:00
Marcin Kurczewski
294ad94f2a tr2/game-flow: add fade-out effect to Gym 2025-01-27 12:43:26 +01:00
Marcin Kurczewski
cc30d7f4ee
docs: update macOS TR2X info 2025-01-25 17:19:38 +01:00
walkawayy
e88a28c39f tr2: add mac builds 2025-01-25 16:47:56 +01:00
lahm86
dbf75ced05 tr2/lara/cheat: reset gun status if undrawing weapons
This fixes guns potentially appearing in Lara's hand while entering the
fly cheat and the weapon undraw animation is still running.

Resolves #2376.
2025-01-25 14:43:03 +00:00
lahm86
1a56151e2f console/teleport: use higher Y value for item teleports
This teleports Lara slightly above the item she is teleporting to, so
to avoid Room_GetSector tests pushing through to the room below in
some cases.

Resolves #2372.
2025-01-24 16:47:26 +00:00
lahm86
be39629dcc rooms: use flip status flag for finding rooms
This introduces a flip status flag on rooms so that we can avoid
yielding rooms that are not in the correct state when finding one by
position.

Resolves #2362.
Resolves #2370.
2025-01-24 16:42:51 +00:00
lahm86
bc0789ad24 tr2/objects/creatures/bandit_2: fix bite position
This corrects the Y value on bandit 2's bite position, so that gunflare
doesn't appear too far from the gun.

Resolves #2365.
2025-01-24 13:24:37 +00:00
lahm86
2f16613d74 effects: add dynamic light to guns and explosions
This adds dynamic light for explosion and (enemy) gunshots in TR1 and
makes it optional in TR2.

Resolves #2357.
2025-01-23 22:26:35 +00:00
Marcin Kurczewski
3fe0e6228b shell: consolidate support for exit fades
Resolves #2348.
2025-01-21 23:47:17 +01:00
Marcin Kurczewski
26f1ef6ea1 gfx/3d: reduce amount of flushes 2025-01-21 22:51:41 +01:00
Marcin Kurczewski
e2181347e8 gfx/3d: preallocate vertices
Resolves #2325.
2025-01-21 22:51:41 +01:00
Marcin Kurczewski
0ca2809abf tr2/render/swr: fix skybox not clearing previous frame
Resolves #2343.
2025-01-21 12:07:04 +01:00
lahm86
8b1392a4f6 tr2/level: perform check on sprite texture count
This ensures we do not exceed the allocated sprite texture limit when
reading a level.

Resolves #2338.
2025-01-20 22:33:28 +00:00
Marcin Kurczewski
a9c54cc628 tr2/game-flow: slim down GAME_FLOW_LEGACY 2025-01-20 22:30:15 +01:00
Marcin Kurczewski
284f2453a6 tr2/objects/skidoo: fix snow wake effect
Resolves #2324.
2025-01-18 11:05:11 +01:00
Marcin Kurczewski
c621cab880 overlay: fix pausing pickups
Resolves #2319.
2025-01-17 18:07:32 +01:00
Marcin Kurczewski
46020df42d level: fix sprites-statics collisions
Resolves #2310.
2025-01-17 14:20:38 +01:00
Marcin Kurczewski
60078d30c3 gfx: fix wireframe mode discarding transparent pixels
Resolves #2315.
2025-01-16 23:42:20 +01:00
Marcin Kurczewski
6502ac8629 tr2/game-string: split from gameflow 2025-01-16 15:47:06 +01:00
Marcin Kurczewski
86c52b566b cmd: fix /kill sometimes freezing the game
Resolves #2297. The previous implementation was too frugal in its size
which led to an infinite loop bug when an item was deemed unkillable.
2025-01-14 23:21:40 +01:00
Marcin Kurczewski
6667c1a1eb input: allow repeating left/right menu arrows 2025-01-14 23:20:18 +01:00
Marcin Kurczewski
13b8297621 camera: fix Lara's vision range
Resolves #2276.
2025-01-14 10:53:34 +01:00
Marcin Kurczewski
36bf98b826 tr2/phase/demo: add fade-out effect 2025-01-13 19:04:14 +01:00
Marcin Kurczewski
0282cdbf84 tr2/input: change default keybindings 2025-01-13 15:15:02 +01:00
Marcin Kurczewski
190fef0a37 photo-mode: move to libtrx
Resolves #2277.
2025-01-13 15:15:02 +01:00
lahm86
79f55ce955 tr2/inventory_ring/control: default to gym option until launched
This monitors when the gym is launched so that it isn't re-selected
when later exiting to title.

Resolves #2192.
2025-01-13 12:20:40 +00:00
Marcin Kurczewski
376b2633f4 tr2/savegame: fix SAVEGAME_INFO layout I/O
Resolves #2271.
2025-01-12 22:43:58 +01:00
Marcin Kurczewski
25feac8f80 tr2/lara/hair: fix wind when dead
Resolves #2265.
2025-01-12 20:57:18 +01:00
Marcin Kurczewski
b6ddb4903c docs: resolve #2223
Fixed in 79332f4c84.
2025-01-12 19:10:57 +01:00
Marcin Kurczewski
e3ad6d6767 tr2/inv-ring: fix medipack item counter visibility
Resolves #2222.
2025-01-12 19:10:18 +01:00
Marcin Kurczewski
c04957b7fb inv-ring: fix options shutdown called too late
Resolves #2221.
2025-01-12 19:09:25 +01:00
lahm86
98d24aa102 tr2/spawn: fix Lara blood spawn position
This fixes assigning a blood splat to a bone beyond Lara's data and
introduces proper random positioning for it.
2025-01-11 14:12:51 +00:00
Marcin Kurczewski
6ec029078e build: fix Clang warnings 2025-01-10 13:35:52 +01:00
Marcin Kurczewski
65bb6b5505 phase/pause: move to libtrx 2025-01-08 23:24:44 +01:00
Marcin Kurczewski
a15b0d61fa tr2/inv-ring: fix arrows shown when they shouldn't
Resolves #2225.
2025-01-07 19:22:05 +01:00
lahm86
d5c076513a tr2/lara/col: fix right backwards step frame range
This fixes the frame range used to test if Lara should step off a step
backwards with her right foot.

Resolves  #1602.
2025-01-07 06:47:51 +00:00
lahm86
fa3438a8a9 tr2/lara/control: fix testing triggers too early
This replicates how g_TriggerIndex used to work for Lara, by storing
her sector before calling any collision routines, and then passing
that sector to be tested for triggers.
2025-01-03 22:01:42 +00:00