本帖最后由 smile417 于 2025-11-17 16:26 编辑
转自n网:https://www.nexusmods.com/dyinglightthebeast/mods/238
Automatic night vision without the ugly blur or green tint, plus adjustable brightness.
自动夜视,没有难看的模糊或绿色色调,加上可调节的亮度。
BETTER NIGHT VISION MOD FEATURES
更好的夜视模组功能
- Automatic Night Vision: No more fumbling in the dark. Night vision now activates automatically during nighttime.
自动夜视 :不再在黑暗中摸索。夜视功能现在在夜间自动激活。 - No More Edge Blur: The distracting blur around the screen (when night vision is active) has been removed for a clear, unobstructed view.
不再有边缘模糊: 屏幕周围分散注意力的模糊(当夜视功能处于活动状态时)已被消除,以获得清晰、畅通无阻的视野。 - Natural Colors: The heavy green tint from vanilla night vision is gone, resulting in a cleaner, more natural look.
自然色: 香草夜视仪的浓绿色调消失了,带来更干净、更自然的外观。 - Customizable Intensity: Adjust the power of night vision to your preference.
可定制的强度: 根据您的喜好调整夜视能力。
If you'd like to tweak the power yourself:
如果您想自己调整电源:
- Open data2.pak with WinRAR
使用 WinRAR 打开 data2.pak - Navigate to the scripts folder and extract frame_script_game.scr
导航到脚本文件夹并解压 frame_script_game.scr - Open it in Notepad or Notepad++
在记事本或记事本++中打开它 - Find the line below: 找到下面的行:
float reduced_nv = zombie_vision * 0.75; // 75% as strong
(The exact value differs depending on the version you downloaded.)
浮点 reduced_nv = zombie_vision * 0.75;75% 的强度 (确切的值因您下载的版本而异。 - Change the 0.75 to any value you prefer, save the file, and put it back into the archive.
将 0.75 更改为您喜欢的任何值,保存文件,然后将其放回存档中。
If you'd rather skip editing, you can simply download one of the pre-made versions provided.
如果您想跳过编辑,只需下载提供的预制版本之一即可。
How to Use 如何使用
- Download your preferred version.
下载您喜欢的版本。 - Open the downloaded archive.
打开下载的存档。 - Navigate to GameFolder/ph_ft/source folder on your computer.
导航到计算机上的 GameFolder/ph_ft/source 文件夹。 - Extract data2.pak from the archive to that folder.
将 data2.pak 从存档中提取到该文件夹。
How to Merge with Other Mods
如何与其他模组合并
If you have no other mods that modify player_variables.scr or frame_script_game.scr, you can simply use WinRAR to merge the mods.
如果您没有其他修改 player_variables.scr 或 frame_script_game.scr 的模组,您可以简单地使用 WinRAR 合并模组。
If other mods modify the same files, here are the changes made by this mod:
如果其他模组修改了相同的文件,以下是该模组所做的更改:
- scripts/player/player_variables.scr
- Changed this line: 更改了这一行:
Param("NightVisionEnabled", "0");
To: 自:
Param("NightVisionEnabled", "1");
- scripts/frame_script_game.scr
- Added new lines above the existing code.
在现有代码上方添加了新行。
Existing code: 现有代码:
Set("f_pp_game_zombie_vision", zombie_vision);
Set("f_pp_color_grading_effect_zombie_vision", zombie_vision);
New lines added:
set(“f_pp_game_zombie_vision”, zombie_vision); set(“f_pp_color_grading_effect_zombie_vision”, zombie_vision); 新增行:
float reduced_nv = zombie_vision * 0.75; // 75% as strong
Set("f_pp_game_zombie_vision", reduced_nv); - Commented out this existing line:
注释掉这行现有行:
Set("f_pp_game_zombie_vision", zombie_vision); - Modified this line: 修改了这一行:
Set("f_pp_color_grading_effect_zombie_vision", zombie_vision);
Changed to: 更改为:
Set("f_pp_color_grading_effect_zombie_vision", 0.0); - After the changes above, the final code should look like this:
经过上述更改后,最终代码应如下所示:
float reduced_nv = zombie_vision * 0.75; // 75% as strong
Set("f_pp_game_zombie_vision", reduced_nv);
//Set("f_pp_game_zombie_vision", zombie_vision);
Set("f_pp_color_grading_effect_zombie_vision", 0.0); - Also in the same file, the following radial blur lines were modified from their original values:
同样在同一文件中,以下径向模糊线从其原始值进行了修改:
float blur_radial_mask_scale = f_pp_blur_radial_mask_scale * zombie_vision_inv + 0.4 * zombie_vision;
float blur_radial_mask_opacity = max(f_pp_blur_radial_mask_opacity, zombie_vision);
float blur_radial_power = max(f_pp_blur_radial_power, zombie_vision * 5.0);
float blur_radial_range = max(f_pp_blur_radial_range, zombie_vision * 0.2);
Changed to (removes the edge blur for clear night vision):
浮点 blur_radial_mask_scale = f_pp_blur_radial_mask_scale * zombie_vision_inv + 0.4 * zombie_vision; 浮点 blur_radial_mask_opacity = max(f_pp_blur_radial_mask_opacity, zombie_vision); 浮点 blur_radial_power = max(f_pp_blur_radial_power, zombie_vision * 5.0); float blur_radial_range = max(f_pp_blur_radial_range, zombie_vision * 0.2); 更改为(消除边缘模糊以获得清晰的夜视):
float blur_radial_mask_scale = 0.0;
float blur_radial_mask_opacity = 0.0;
float blur_radial_power = 0.0;
float blur_radial_range = 0.0;
Remember to save the modified files and put them back into the .pak file before launching the game. That's it!
请记住在启动游戏之前保存修改后的文件并将它们放回 .pak 文件中。就是这样!
Better Night Vision: 100% Power Version
更好的夜视功能:100% 功率版本
Better Night Vision: 125% Power Version
更好的夜视功能:125% 功率版本 Better Night Vision: 50% Power Version 更好的夜视功能:50% 功率版本
Better Night Vision: 75% Power Version |