A mod that adds a flashlight with a dynamic beam without the jerky animation
fixed the code structure