First Person... Environmental Light Exposure Immersion?
- DunnyOfPenwick
- Posts: 235
- Joined: Wed Apr 14, 2021 1:58 am
- Location: Southeast US
Re: First Person... Environmental Light Exposure Immersion?
I'm guessing the Future Shock Weapons mod is only changing the weapon bitmaps and not using any custom rendering code, in which case it should work fine as is.
-
- Posts: 1372
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: First Person... Environmental Light Exposure Immersion?
Interesting. I'll have to mess with it. I completely rebuilt the weaponManager and the fpsweapon scripts. I pretty much disable the fpsweapon script and completely redraw and replace the gui component. I had to in order to get in animation smoothing. Worse case scenario, I look the engine code and replicate it in my script for the mod.
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
- DunnyOfPenwick
- Posts: 235
- Joined: Wed Apr 14, 2021 1:58 am
- Location: Southeast US
Re: First Person... Environmental Light Exposure Immersion?
I've already made changes to the grappling hook code in The-Penwick-Papers mod (not uploaded yet) to perform shading using a callback to the First-Person-Lighting mod.. Here are some code snippets...
...in mod init:
...added a public method to do the callback:
...and called it in the grappling hook OnGUI() method:
...in mod init:
Code: Select all
firstPersonLightingMod = ModManager.Instance.GetMod("First-Person-Lighting");
Code: Select all
/// <summary>
/// Attempts to get the player tint from the 'First-Person-Lighting' mod.
/// </summary>
public Color GetPlayerTint()
{
Color playerTint = Color.white;
if (firstPersonLightingMod == null || !firstPersonLightingMod.IsReady)
return playerTint;
firstPersonLightingMod.MessageReceiver("playerTint", null, (string message, object data) =>
{
playerTint = (Color)data;
});
return playerTint;
}
...and called it in the grappling hook OnGUI() method:
Code: Select all
Color playerTint = ThePenwickPapersMod.Instance.GetPlayerTint();
DaggerfallUI.DrawTextureWithTexCoords(position, texture, animRect, true, playerTint);