I need a little assistance. While working on the ambidexterity module, I was able to completely rebuild the fpsweapon setup with smooth animations. Now off hand attacks are fully smoothed out, like in Combat Overhaul Project.
This means, if I can disable/hide the default FPSWeapon rect/sprite, I could duplicate the ambidexterity script and make animation smoothing a completely independent mod. There would not be a need to download a separate branch for DFU to get weapon smoothing.
So, does anyone know how I would go about hiding/destroying the original object rect/sprite within the FPSWeapon script? It is currently hidden from outside object manipulation because it is not public. Is there a way I can use .AddComponent<> or .GetComponent<> to pull the rect object to hide/manipulate it?
If I could do this, I believe could build in everything else from my combat overhaul project into a stand alone mod module.
Hiding Script Rect
-
- Posts: 1409
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Hiding Script Rect
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.
-
- Posts: 1409
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: Hiding Script Rect
I'm an idiot some times. This is solved.
That is all that is needed to hide the weapon but keep the script running. I just forgot I had tied the offhand render to the show weapon bool, which was causing the issue I was having.
Now, I think I can bring smooth animations to a stand alone mod.
Code: Select all
GameManager.Instance.WeaponManager.ScreenWeapon.ShowWeapon = false;
Now, I think I can bring smooth animations to a stand alone 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.