Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Making thermal vision black and white #457

Open
Ecliptedkillz opened this issue Oct 28, 2024 · 0 comments
Open

[Suggestion] Making thermal vision black and white #457

Ecliptedkillz opened this issue Oct 28, 2024 · 0 comments

Comments

@Ecliptedkillz
Copy link

Suggested Change in MiscSettings.cs

Replace the following code at Line 724:

else if (item == thermalVision)
{
SetSeethrough(_checked);
}

With the following:

else if (item == thermalVision)
{
    // Set thermal vision colors to black-and-white tones for a clearer visual effect
    API.SetVisualSettingFloat("seeThrough.ColorVisibleHot.red", 0.80f);
    API.SetVisualSettingFloat("seeThrough.ColorVisibleHot.green", 0.80f);
    API.SetVisualSettingFloat("seeThrough.ColorVisibleHot.blue", 0.80f);

    API.SetVisualSettingFloat("seeThrough.ColorVisibleWarm.red", 0.80f);
    API.SetVisualSettingFloat("seeThrough.ColorVisibleWarm.green", 0.80f);
    API.SetVisualSettingFloat("seeThrough.ColorVisibleWarm.blue", 0.80f);

    API.SetVisualSettingFloat("seeThrough.ColorVisibleBase.red", 0.80f);
    API.SetVisualSettingFloat("seeThrough.ColorVisibleBase.green", 0.80f);
    API.SetVisualSettingFloat("seeThrough.ColorVisibleBase.blue", 0.80f);

    // Set cooler, distant objects to darker shades
    API.SetVisualSettingFloat("seeThrough.ColorFar.red", 0.20f);
    API.SetVisualSettingFloat("seeThrough.ColorFar.green", 0.20f);
    API.SetVisualSettingFloat("seeThrough.ColorFar.blue", 0.20f);

    // Set near objects to a very faint shade
    API.SetVisualSettingFloat("seeThrough.ColorNear.red", 0.15f);
    API.SetVisualSettingFloat("seeThrough.ColorNear.green", 0.15f);
    API.SetVisualSettingFloat("seeThrough.ColorNear.blue", 0.15f);

    // Enable or disable thermal vision
    SetSeethrough(_checked);
}

Screenshot 2024-10-28 015419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant