Skip to content

Commit

Permalink
tr1/game-flow: simplify cutscenes music track setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Jan 26, 2025
1 parent 262dabd commit bca90a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
12 changes: 4 additions & 8 deletions data/tr1/ship/cfg/TR1X_gameflow.json5
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
// Cut Scene 1
{
"path": "data/cut1.phd",
"music_track": 0,
"music_track": 23,
"lara_type": "player_1",
"inherit_injections": false,
"injections": [
Expand All @@ -459,15 +459,14 @@
"sequence": [
{"type": "load_level"},
{"type": "set_cutscene_angle", "value": -23312},
{"type": "play_music", "music_track": 23},
{"type": "play_level"},
],
},

// Cut Scene 2
{
"path": "data/cut2.phd",
"music_track": 0,
"music_track": 25,
"lara_type": "player_1",
"inherit_injections": false,
"injections": [
Expand All @@ -479,7 +478,6 @@
"sequence": [
{"type": "load_level"},
{"type": "set_cutscene_angle", "value": 16380},
{"type": "play_music", "music_track": 25},
{"type": "mesh_swap", "object1_id": "player_1", "object2_id": "pistol_anim", "mesh_id": 1},
{"type": "mesh_swap", "object1_id": "player_1", "object2_id": "pistol_anim", "mesh_id": 4},
{"type": "play_level"},
Expand All @@ -489,7 +487,7 @@
// Cut Scene 3
{
"path": "data/cut3.phd",
"music_track": 0,
"music_track": 24,
"inherit_injections": false,
"injections": [
"data/injections/cut3_textures.bin",
Expand All @@ -500,15 +498,14 @@
{"type": "load_level"},
{"type": "flip_map"},
{"type": "set_cutscene_angle", "value": 16384},
{"type": "play_music", "music_track": 24},
{"type": "play_level"},
],
},

// Cut Scene 4
{
"path": "data/cut4.phd",
"music_track": 0,
"music_track": 22,
"draw_distance_fade": 12.0,
"draw_distance_max": 18.0,
"lara_type": "player_1",
Expand All @@ -523,7 +520,6 @@
"sequence": [
{"type": "load_level"},
{"type": "set_cutscene_angle", "value": 16384},
{"type": "play_music", "music_track": 22},
{"type": "mesh_swap", "object1_id": "player_1", "object2_id": "pistol_anim", "mesh_id": 1},
{"type": "mesh_swap", "object1_id": "player_1", "object2_id": "pistol_anim", "mesh_id": 4},
{"type": "play_level"},
Expand Down
1 change: 0 additions & 1 deletion data/tr1/ship/cfg/TR1X_gameflow_ub.json5
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@

// Level 5: Current Position
{
"title": "Current Position",
"path": "data/current.phd",
"type": "current",
"music_track": 0,
Expand Down
3 changes: 1 addition & 2 deletions docs/tr1/GAMEFLOW.md
Original file line number Diff line number Diff line change
Expand Up @@ -853,13 +853,12 @@ game will exit to title.
"cutscenes": [
{
"path": "data/bonuscut1.phd",
"music_track": 0,
"music_track": 23,
"sequence": [
{"type": "load_level"},
{"type": "set_cam_x", "value": 36668},
{"type": "set_cam_z", "value": 63180},
{"type": "set_cutscene_angle", "value": -23312},
{"type": "play_music", "music_id": 23},
{"type": "play_level"},
],
},
Expand Down

0 comments on commit bca90a9

Please sign in to comment.