Hello, I decided to try and recreate the LSPDFR flashlight (It is not perfect as far as the animation goes but I tried). If you find a better animation please just let me know and I will switch it around. I wrote this pretty quickly as I wanna contribute while not having a whole lot of time so don’t hate on me for the code.
IMPORTANT
I have not tested this with other clients. If someone can please test this with other clients that would be great if you could report back to me with any issues.
Usage
Pull the flashlight out. The script runs off of the flashlight weapon and will set itself up.
You can use (RIGHT_CLICK) to turn the light on and off.
If you switch from the switch blade to the flashlight the flashlight will not position correctly. It is because I am using a wait delay and the animation for the blade is longer than my wait. I will need to fix that later.
It involves clients. Basically client lights don’t sync to each other and the ray of light is based on the person whose light is on. So the light source is attached to other people BUT it rotates based on the person who is controlling their own light.
Because that is just how that animation is. I am unsure how LSPDFR was able to either find the animation (I haven’t found it) or they have found a way to only play the animation on one arm or they may have even edited the animation. No clue.
If you have a different method / animation to replace it just let me know and I will switch it out.
People don’t like it because they need to ADS for it to show the light and they don’t like it down at the hip so basically I just scripted my own. If you like the default flashlight then use the default one.
I apologize, I was thinking that a combination of the vanilla animation and your implementation of not requiring ADS and a different light/client syncing would be a nice middle ground. This still seems to be
a nice resource that I might end up running.
I may in the future actually allow the toggle from over the shoulder and hip animations. I just wanted to get this out as fast as I could so that my lack of time doesnt make the work I already had never get released.