Telescopes
Showcase
Preview video (YouTube)
Nothing fancy, just a quick preview.
About
Telescopes is a free standalone script that allows players to use telescopes all around the map. Currently, it allows the player to use /telescope, press E when close to one or to use either qTarget or qb-target as a 3rd eye solution.
Since I was unable to find a telescope scaleform in the game I had to do some trickery by overlaying two binocular scaleforms and some DrawRect() functions to make the illusion of a telescope lens. This might lead to some odd behaviour with ultra-wide screens.
Edit: Thanks to @CritteR for adding the correct scaleform and making it fit all screen resolutions.
I decided to release this to the public since I haven’t seen any other telescope scripts around. The script was made for fun, so the code might not be the greatest, feel free to improve upon it.
Optional Dependencies
As previously stated the script allows for either qTarget or qb-target to be used. They are disabled by default but can be toggled in the config file.
The script also uses mythic notify to send notifications to the player, however, this can be changed. Native notifications are built-in if you would like to use those instead. This can be toggled in the config file.
Optimization
The script runs at 0.01ms when idling if you have the help text thread (gets the distance to the telescope and displays some help text if close enough). It idles at 0.0 if you only use the command/3rd eye.
It runs at 0.04-0.05ms when using a telescope.
Known Issues
None as of now. Please report if you encounter any!
(the camera occasionally jumping out of the restricted view for telescopes heading north was resolved on the 19th of June, 2022).
Configuration
The script can be configured to a certain extent. You can see the config file below on Github.
Config file (GitHub)
Download
GitHub
Direct download: telescopes_1.4.1.zip (17.9 KB)
My other scripts
[Standalone] [Paid] Sit Anywhere
[Standalone] [PAID] Slash Tires
[Standalone] Crutches
[Release] No Exploding Pumps