Moves the pan code to a function to reduce noise
Moves the pan code to a function to reduce noise

hawkthorne/hawkthorne-server-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-client-lua,hawkthorne/hawkthorne-server-lua