@@ -16,8 +16,9 @@ procedure set_run_fps(variable model, variable new_fps);
16
16
procedure start begin
17
17
18
18
if game_loaded then begin
19
+ variable fs_override := check_filesystem_override;
19
20
enabled := fo2tweaks_setting(sec_main, set_run_speed);
20
- if enabled then begin
21
+ if enabled and fs_override then begin
21
22
variable frm, frms, fps, path;
22
23
variable dude := fo2tweaks_setting(sec_run_speed, set_run_speed_dude);
23
24
variable party := fo2tweaks_setting(sec_run_speed, set_run_speed_party);
@@ -48,30 +49,30 @@ procedure start begin
48
49
end
49
50
50
51
frms := [ // hero appearance
51
- "hfr00s01\\art\\critters\\_hfjmps"
52
- "hfr00s01\\art\\critters\\_hflthr"
53
- "hfr00s01\\art\\critters\\_hfmaxx"
54
- "hfr00s01\\art\\critters\\_hfmetl"
55
- "hfr00s01\\art\\critters\\_hfprim"
56
- "hfr00s02\\art\\critters\\_hfjmps"
57
- "hfr00s02\\art\\critters\\_hflthr"
58
- "hfr00s02\\art\\critters\\_hfmaxx"
59
- "hfr00s02\\art\\critters\\_hfmetl"
60
- "hfr00s02\\art\\critters\\_hfprim"
61
- "hfr00s03\\art\\critters\\_hfjmps"
62
- "hfr00s03\\art\\critters\\_hflthr"
63
- "hfr00s03\\art\\critters\\_hfmaxx"
64
- "hfr00s03\\art\\critters\\_hfmetl"
65
- "hfr00s03\\art\\critters\\_hfprim"
66
- "hmr00s01\\art\\critters\\_hmjmps"
67
- "hmr00s01\\art\\critters\\_hmlthr"
68
- "hmr00s01\\art\\critters\\_hmmaxx"
69
- "hmr00s01\\art\\critters\\_hmmetl"
70
- "hmr00s01\\art\\critters\\_hmwarr"
71
- "hmr00s02\\art\\critters\\_hmjmps"
72
- "hmr00s02\\art\\critters\\_hmlthr"
73
- "hmr00s02\\art\\critters\\_hmmaxx"
74
- "hmr00s02\\art\\critters\\_hmmetl"
52
+ "hfr00s01\\art\\critters\\_hfjmps",
53
+ "hfr00s01\\art\\critters\\_hflthr",
54
+ "hfr00s01\\art\\critters\\_hfmaxx",
55
+ "hfr00s01\\art\\critters\\_hfmetl",
56
+ "hfr00s01\\art\\critters\\_hfprim",
57
+ "hfr00s02\\art\\critters\\_hfjmps",
58
+ "hfr00s02\\art\\critters\\_hflthr",
59
+ "hfr00s02\\art\\critters\\_hfmaxx",
60
+ "hfr00s02\\art\\critters\\_hfmetl",
61
+ "hfr00s02\\art\\critters\\_hfprim",
62
+ "hfr00s03\\art\\critters\\_hfjmps",
63
+ "hfr00s03\\art\\critters\\_hflthr",
64
+ "hfr00s03\\art\\critters\\_hfmaxx",
65
+ "hfr00s03\\art\\critters\\_hfmetl",
66
+ "hfr00s03\\art\\critters\\_hfprim",
67
+ "hmr00s01\\art\\critters\\_hmjmps",
68
+ "hmr00s01\\art\\critters\\_hmlthr",
69
+ "hmr00s01\\art\\critters\\_hmmaxx",
70
+ "hmr00s01\\art\\critters\\_hmmetl",
71
+ "hmr00s01\\art\\critters\\_hmwarr",
72
+ "hmr00s02\\art\\critters\\_hmjmps",
73
+ "hmr00s02\\art\\critters\\_hmlthr",
74
+ "hmr00s02\\art\\critters\\_hmmaxx",
75
+ "hmr00s02\\art\\critters\\_hmmetl",
75
76
"hmr00s02\\art\\critters\\_hmwarr"
76
77
];
77
78
foreach frm in frms begin
@@ -96,7 +97,7 @@ procedure start begin
96
97
"nmwarr", //sulik
97
98
//new RP frms without AT anims
98
99
"malieu", //marcus RP armor
99
- "laghul" //lenny RP new
100
+ "laghul" //lenny RP new
100
101
];
101
102
foreach frm in frms begin
102
103
path := "art\\critters\\" + frm;
@@ -116,10 +117,12 @@ procedure set_run_fps(variable path, variable new_fps) begin
116
117
variable path_ab := path + "ab.frm";
117
118
variable path_at := path + "at.frm";
118
119
file := fs_copy(path_at, path_at);
119
- if not file then file := fs_copy(path_at, path_ab);
120
- if file then begin
121
- fs_seek(file, fps_offset);
122
- fs_write_short(file, new_fps);
123
- ndebug("set fps to " + new_fps + " in " + path_at);
120
+ if file == -1 then file := fs_copy(path_at, path_ab);
121
+ if file == -1 then begin
122
+ ndebug("warning: couldn't find or create " + path_at);
123
+ return;
124
124
end
125
+ fs_seek(file, fps_offset);
126
+ fs_write_short(file, new_fps);
127
+ ndebug("set fps to " + new_fps + " in " + path_at);
125
128
end
0 commit comments