Post by delereos on Jun 20, 2023 17:28:45 GMT
Jun 7, 2023 0:13:01 GMT bloo said:
I came to check how this package was coming along and seen it hasn't been updated in a long while. Decided to give it a go and edited it to make it work again for shooter. I want to be clear that this is NOT an official update by SJMTech. First, I'd like to point out that I started learning C# back in February, so what I have done, and code structure will more than likely not be up to par with what other coders can do.
This will NOT work if you are not using Invector's ThirdPersonCamera.
This will work with Basic/Melee/Shooter 2.6.2c
I combined the camera switch and base script into one. If this is undesirable and enough people request, I can separate them.
I made the vThirdPersonCamera the only camera in the scene. So, the switching of First Person and Third Person no longer requires two cameras. Just changing the position of the main camera.
I did take out the ExtraCams from the script as they caused some problems. If you really want them, just drag and drop the ExtraCams prefab into the hierarchy. I took out most of the integration's that were in the old package too because I do not have them and have no way of knowing if the code worked for them or not. The only addons I supported were Swimming and Builder. It should work just fine with other Invector addons too though.
PLEASE read the Documentation on how to use. Only 3 things are needed for setup. I also included 5 demo scenes to get you familiar with how to use it depending on the controller template you are using.
No code modifications are required with this package.
Edit 6/7/2023: Fixed Strafe not being set when starting in First Person.
Edit 6/8/2023: Fixed the link showing as private and needing to request access. Request is no longer needed.
DOWNLOAD LINK
Thank you so much! I was able to bodge together an extremely basic fix and then lost and forgot how to do it - this is a life-saver.