Closed NOOTLORD closed 2 years ago
Many thanks for accepting the changes and pointing out a few things about the code, its greatly appreciated 👍 I agree grouping the functions with the others was something i was gonna do but it seems i forgot to get to that haha. Its also great to see my code was not completely wrong haha i am still pretty new to Unrealscript but i am slooowly getting the hang of things so once again many thanks for your code suggestions.
Updated the code with the changes fox suggested
Mr. Gorbachev, reopen this merge request!
Added a switch to toggle the ApplyWeaponFOV function on or off due to some weapon mods for UT2004 not playing nice with the way Foxfov changes the weaponFOV. Ballistic Weapons is 1 of these weapon mods that has some weird effects when the ApplyWeaponFOV function is active. Turning off the ApplyWeaponFOV function restored the guns to there intented positions.
The switch can be turned on or off via the user.ini and is in the same section where all other settings are stored When the default property: bCorrectWeaponFOV is set to true the code will execute as normal and change the fov of the weapon, when its set to false it will skip the weaponfov code and simply return not changing the weapon fov.
I've tested it in-game and it works as intended.