Jump to content

Binocular Set Range Distance


Brody

Recommended Posts

What is this mod

Its a mod that lets you setrange if you right click on a binocular and rangefinder (very easy you can even do it yourself) 

Any issues plz tell

 

You Need

extra_rc.hpp 

and a costum folder

 

instal guide

install link :  https://www.dropbox.com/sh/4szrw32dsuszhxk/AADnUQwQ27tEFNcpmQLYPaO7a?dl=0

1. paste these lines in your extra_rc.hpp

Spoiler

class Binocular {
     class distanceb500m {
            text = "500 meters";
            script = "execVM 'custom\setview\500.sqf'";
        };
     class distanceb1000m {
            text = "1000 meters";
            script = "execVM 'custom\setview\1000.sqf'";
        };
     class distanceb1500m {
            text = "1500 meters";
            script = "execVM 'custom\setview\1500.sqf'";
        };
     class distanceb2000m {
            text = "2000 meters";
            script = "execVM 'custom\setview\2000.sqf'";
        };    
     class distanceb2500m {
            text = "2500 meters";
            script = "execVM 'custom\setview\2500.sqf'";
        };
     class distanceb3000m {
            text = "3000 meters";
            script = "execVM 'custom\setview\3000.sqf'";
        };
     class distanceb3500m {
            text = "3500 meters";
            script = "execVM 'custom\setview\3500.sqf'";
        };
     class distanceb4000m {
            text = "4000 meters";
            script = "execVM 'custom\setview\4000.sqf'";
        };    
     class distanceb4500m {
            text = "4500 meters";
            script = "execVM 'custom\setview\4500.sqf'";
        };    
     class distanceb5000m {
            text = "5000 meters";
            script = "execVM 'custom\setview\5000.sqf'";
        };        
    };
  class Binocular_Vector {
     class distanceb500m {
            text = "500 meters";
            script = "execVM 'custom\setview\500.sqf'";
        };
     class distanceb1000m {
            text = "1000 meters";
            script = "execVM 'custom\setview\1000.sqf'";
        };
     class distanceb1500m {
            text = "1500 meters";
            script = "execVM 'custom\setview\1500.sqf'";
        };
     class distanceb2000m {
            text = "2000 meters";
            script = "execVM 'custom\setview\2000.sqf'";
        };    
     class distanceb2500m {
            text = "2500 meters";
            script = "execVM 'custom\setview\2500.sqf'";
        };
     class distanceb3000m {
            text = "3000 meters";
            script = "execVM 'custom\setview\3000.sqf'";
        };
     class distanceb3500m {
            text = "3500 meters";
            script = "execVM 'custom\setview\3500.sqf'";
        };
     class distanceb4000m {
            text = "4000 meters";
            script = "execVM 'custom\setview\4000.sqf'";
        };    
     class distanceb4500m {
            text = "4500 meters";
            script = "execVM 'custom\setview\4500.sqf'";
        };    
     class distanceb5000m {
            text = "5000 meters";
            script = "execVM 'custom\setview\5000.sqf'";
        };        
    };
};

 

 

so it looks like this IF YOU DONT HAVE THE TEST IN HERE

Spoiler

class ExtraRc {
  class Binocular {
     class distanceb500m {
            text = "500 meters";
            script = "execVM 'custom\setview\500.sqf'";
        };
     class distanceb1000m {
            text = "1000 meters";
            script = "execVM 'custom\setview\1000.sqf'";
        };
     class distanceb1500m {
            text = "1500 meters";
            script = "execVM 'custom\setview\1500.sqf'";
        };
     class distanceb2000m {
            text = "2000 meters";
            script = "execVM 'custom\setview\2000.sqf'";
        };    
     class distanceb2500m {
            text = "2500 meters";
            script = "execVM 'custom\setview\2500.sqf'";
        };
     class distanceb3000m {
            text = "3000 meters";
            script = "execVM 'custom\setview\3000.sqf'";
        };
     class distanceb3500m {
            text = "3500 meters";
            script = "execVM 'custom\setview\3500.sqf'";
        };
     class distanceb4000m {
            text = "4000 meters";
            script = "execVM 'custom\setview\4000.sqf'";
        };    
     class distanceb4500m {
            text = "4500 meters";
            script = "execVM 'custom\setview\4500.sqf'";
        };    
     class distanceb5000m {
            text = "5000 meters";
            script = "execVM 'custom\setview\5000.sqf'";
        };        
    };
  class Binocular_Vector {
     class distanceb500m {
            text = "500 meters";
            script = "execVM 'custom\setview\500.sqf'";
        };
     class distanceb1000m {
            text = "1000 meters";
            script = "execVM 'custom\setview\1000.sqf'";
        };
     class distanceb1500m {
            text = "1500 meters";
            script = "execVM 'custom\setview\1500.sqf'";
        };
     class distanceb2000m {
            text = "2000 meters";
            script = "execVM 'custom\setview\2000.sqf'";
        };    
     class distanceb2500m {
            text = "2500 meters";
            script = "execVM 'custom\setview\2500.sqf'";
        };
     class distanceb3000m {
            text = "3000 meters";
            script = "execVM 'custom\setview\3000.sqf'";
        };
     class distanceb3500m {
            text = "3500 meters";
            script = "execVM 'custom\setview\3500.sqf'";
        };
     class distanceb4000m {
            text = "4000 meters";
            script = "execVM 'custom\setview\4000.sqf'";
        };    
     class distanceb4500m {
            text = "4500 meters";
            script = "execVM 'custom\setview\4500.sqf'";
        };    
     class distanceb5000m {
            text = "5000 meters";
            script = "execVM 'custom\setview\5000.sqf'";
        };        
    };
};

 

2. paste the file setview into your custom folder from the download (in your mission file

yourinstance\custom

 

 

 

dont know if i need to give somebody credits :D

 

 


 

Link to comment
Share on other sites

7 minutes ago, salival said:

Brody,

Worth noting, deploy anything has a dependency called Click Actions. It has this built in and doesn't use 10 files to make it work (all your setdistance.sqf files)

Hi, let me fix your English!

"Worth noting" change this to "Worth nothing"

Kappa (I'm joking) :laugh:

Link to comment
Share on other sites

1 hour ago, salival said:

Brody,

Worth noting, deploy anything has a dependency called Click Actions. It has this built in and doesn't use 10 files to make it work (all your setdistance.sqf files)

 

1 hour ago, clarkycal said:

Hi, let me fix your English!

"Worth noting" change this to "Worth nothing"

Kappa (I'm joking) :laugh:

honestly, dont give a shit

Link to comment
Share on other sites

Quote

extra_rc.hpp does not work with 

[release] 1.0.6 - Deploy Anything 2.8.2 - Now with Epoch building! | Customizable: DB saving | Plot | Vehicles/Buildings | Packing
Quote

 

At least I used them together for years in 1.5.0.1

any way tnks for share it!

 

Link to comment
Share on other sites

2 hours ago, salival said:

Brody,

Worth noting, deploy anything has a dependency called Click Actions. It has this built in and doesn't use 10 files to make it work (all your setdistance.sqf files)

Agreed if you had to use 10 SQF files... guess you may, haven't tested it, but doesn't this old extra_rc.hpp stuff still work?

Spoiler

class Binocular_Vector  {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
	class Binocular {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};

 

That said, deployables is cool and very flexible but I also use Maca's old extra_rc.hpp for a lot of things...

Link to comment
Share on other sites

Just now, Grahame said:

Agreed if you had to use 10 SQF files... guess you may, haven't tested it, but doesn't this old extra_rc.hpp stuff still work?

  Reveal hidden contents


class Binocular_Vector  {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
	class Binocular {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};

 

That said, deployables is cool and very flexible but I also use Maca's old extra_rc.hpp for a lot of things...

im too use the extra_rc.hpp to execute scripts.. and deployanything to... deploy any thing :biggrin:

Link to comment
Share on other sites

17 hours ago, Grahame said:

Agreed if you had to use 10 SQF files... guess you may, haven't tested it, but doesn't this old extra_rc.hpp stuff still work?

  Reveal hidden contents


class Binocular_Vector  {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
	class Binocular {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};

 

That said, deployables is cool and very flexible but I also use Maca's old extra_rc.hpp for a lot of things...

agreed but i dont like the way deploy has been setup i think its much easier for me to just use this extra_rc

Link to comment
Share on other sites

42 minutes ago, Brody said:

agreed but i dont like the way deploy has been setup i think its much easier for me to just use this extra_rc

My point was that your calls to the scripts could be avoided (I think) by putting this in the extra_rc.hpp instead:

Spoiler

class Binocular_Vector  {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
	class Binocular {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
class Binocular_Vector  {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
	class Binocular {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};

 

 

Link to comment
Share on other sites

3 minutes ago, Grahame said:

My point was that your calls to the scripts could be avoided (I think) by putting this in the extra_rc.hpp instead:

  Hide contents


class Binocular_Vector  {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
	class Binocular {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
class Binocular_Vector  {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
	class Binocular {
		class viewdistanceTitle {
			text = "View Distance:";
			script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
		};
		class distance400m {
			text = "400 Meters";
			script = "setViewDistance 400; systemChat('ViewDistance: 400');";
		};
		class distance600m {
			text = "600 Meters";
			script = "setViewDistance 600; systemChat('ViewDistance: 600');";
		};
		class distance800m {
			text = "800 Meters";
			script = "setViewDistance 800; systemChat('ViewDistance: 800');";
		};
		class distance1000m {
			text = "1000 Meters";
			script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
		};
		class distance1250m {
			text = "1250 Meters";
			script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
		};
		class distance1500m {
			text = "1500 Meters";
			script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
		};
		class distance2000m {
			text = "2000 Meters";
			script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
		class distance3000m {
			text = "3000 Meters";
			script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};

 

 

well i made it for myself and i shared it but yeah i could

Link to comment
Share on other sites

@Brody  you can use it to get a more clean extra_rc.hpp

into your custom\setview\  create a new sqf called:

setview.sqf

Spoiler

(FindDisplay 106) closeDisplay 1;
pathtosetview = "custom\setview\";
EXECscript1 = 'player execVM "'+pathtosetview+'%1"';

setview =
[
    ["View Range",true],
        ["500", [2],  "", -5, [["expression", format[EXECscript1,"500.sqf"]]], "1", "1"],
		["1000", [3],  "", -5, [["expression", format[EXECscript1,"1000.sqf"]]], "1", "1"],
        ["1500", [4],  "", -5, [["expression", format[EXECscript1,"1500.sqf"]]], "1", "1"],				
		["2000", [5],  "", -5, [["expression", format[EXECscript1,"2000.sqf"]]], "1", "1"],
		["2500", [6],  "", -5, [["expression", format[EXECscript1,"2500.sqf"]]], "1", "1"],
		["3000", [7],  "", -5, [["expression", format[EXECscript1,"3000.sqf"]]], "1", "1"],
		["3500", [8],  "", -5, [["expression", format[EXECscript1,"3500.sqf"]]], "1", "1"],
		["4000", [9],  "", -5, [["expression", format[EXECscript1,"4000.sqf"]]], "1", "1"],
        ["4500", [10],  "", -5, [["expression", format[EXECscript1,"4500.sqf"]]], "1", "1"],
		["5000", [11],  "", -5, [["expression", format[EXECscript1,"5000.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:setview";

 

 

remove all about set view in your extra_rc.hpp   and paste:

Spoiler

class ExtraRc {
 
   class Binocular {
     class SetView {
            text = "Setview";
            script = "execVM 'custom\setview\setview.sqf'";
        };
   };	
	 class Binocular_Vector {
     class SetView2 {
            text = "Setview";
            script = "execVM 'custom\setview\setview.sqf'";
        };	
};
   };

 

 

Link to comment
Share on other sites

6 minutes ago, juandayz said:

@Brody  you can use it to get a more clean extra_rc.hpp

into your custom\setview\  create a new sqf called:

setview.sqf

  Hide contents


(FindDisplay 106) closeDisplay 1;
pathtosetview = "custom\setview\";
EXECscript1 = 'player execVM "'+pathtosetview+'%1"';

setview =
[
    ["View Range",true],
        ["500", [2],  "", -5, [["expression", format[EXECscript1,"500.sqf"]]], "1", "1"],
		["1000", [3],  "", -5, [["expression", format[EXECscript1,"1000.sqf"]]], "1", "1"],
        ["1500", [4],  "", -5, [["expression", format[EXECscript1,"1500.sqf"]]], "1", "1"],				
		["2000", [5],  "", -5, [["expression", format[EXECscript1,"2000.sqf"]]], "1", "1"],
		["2500", [6],  "", -5, [["expression", format[EXECscript1,"2500.sqf"]]], "1", "1"],
		["3000", [7],  "", -5, [["expression", format[EXECscript1,"3000.sqf"]]], "1", "1"],
		["3500", [8],  "", -5, [["expression", format[EXECscript1,"3500.sqf"]]], "1", "1"],
		["4000", [9],  "", -5, [["expression", format[EXECscript1,"4000.sqf"]]], "1", "1"],
        ["4500", [10],  "", -5, [["expression", format[EXECscript1,"4500.sqf"]]], "1", "1"],
		["5000", [11],  "", -5, [["expression", format[EXECscript1,"5000.sqf"]]], "1", "1"],
        ["", [-1], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];
showCommandingMenu "#USER:setview";

 

 

remove all about set view in your extra_rc.hpp   and paste:

  Reveal hidden contents


class ExtraRc {
 
   class Binocular {
     class SetView {
            text = "Setview";
            script = "execVM 'custom\setview\setview.sqf'";
        };
   };	
	 class Binocular_Vector {
     class SetView2 {
            text = "Setview";
            script = "execVM 'custom\setview\setview.sqf'";
        };	
};
   };

 

 

no need im happy as it is now

Link to comment
Share on other sites

This is the old 1.0.5.1 way extra right click change view distance and yes this has been added to deploy anything also well for 1.0.5.1 not sure on 1.0.6

class Binocular_Vector  {
        class viewdistanceTitle {
            text = "View Distance:";
            script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
        };
        class distance400m {
            text = "400 Meters";
            script = "setViewDistance 400; systemChat('ViewDistance: 400');";
        };
        class distance600m {
            text = "600 Meters";
            script = "setViewDistance 600; systemChat('ViewDistance: 600');";
        };
        class distance800m {
            text = "800 Meters";
            script = "setViewDistance 800; systemChat('ViewDistance: 800');";
        };
        class distance1000m {
            text = "1000 Meters";
            script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
        };
        class distance1250m {
            text = "1250 Meters";
            script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
        };
        class distance1500m {
            text = "1500 Meters";
            script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
        };
        class distance2000m {
            text = "2000 Meters";
            script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance3000m {
            text = "3000 Meters";
            script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance5000m {
            text = "5000 Meters";
            script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
    };
    class Binocular {
        class viewdistanceTitle {
            text = "View Distance:";
            script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
        };
        class distance400m {
            text = "400 Meters";
            script = "setViewDistance 400; systemChat('ViewDistance: 400');";
        };
        class distance600m {
            text = "600 Meters";
            script = "setViewDistance 600; systemChat('ViewDistance: 600');";
        };
        class distance800m {
            text = "800 Meters";
            script = "setViewDistance 800; systemChat('ViewDistance: 800');";
        };
        class distance1000m {
            text = "1000 Meters";
            script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
        };
        class distance1250m {
            text = "1250 Meters";
            script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
        };
        class distance1500m {
            text = "1500 Meters";
            script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
        };
        class distance2000m {
            text = "2000 Meters";
            script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance3000m {
            text = "3000 Meters";
            script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance5000m {
            text = "5000 Meters";
            script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
    };

Link to comment
Share on other sites

  • 2 weeks later...

I would like to point out, my players have been saying that you can still do the old view distance to 4 or 5k - door glitch.

How to replicate: Change view distance to max distance you allow while standing by a door. Vault/run into the door as soon as the view distance changes. Glitch success. *I have not tested this, it is merely what my players have told me*

 

I plan to fix this by adding a script that will pause the players keyboard after the viewdistance has been changed. I am using the right click deployables, so I will probably just add 

["Binocular","View Distance: 1000m" ,"setViewDistance 1000; systemChat('ViewDistance: 1000'); execVM 'custom\glitchfix.sqf'; ","true"], //THIS IS AN EXAMPLE OF WHAT I WOULD DO.

I just haven't checked how to disable the keyboard yet to apply this fix.

 

 

My point of this post is that you can do the same thing with this right click method as well.

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
On 24/01/2017 at 0:10 PM, Saije said:

Does anyone have a link to macas right click scripts? right clicking does not work for me. I have all this just how it says to put it. but right clicking on binocs does do anything! same with WAI for the radio to turn it on and off. Does nothing!!

You've made done the following changes:
Altered the ui_selectSlot.sqf?
Made sure your compiles.sqf is loaded and loading the correct ui_selectSlot file?
You've added #include "custom\extra_rc.hpp" to your description.ext?

Paste your extra_rc.hpp into somewhere like PasteBin or using the Code tags, please.

Link to comment
Share on other sites

  • 2 weeks later...
On 1/5/2017 at 4:24 PM, juandayz said:

Ok

Thank you so much for your help on 1-click build @juandayz. I'm also trying to get this working as well. I have group manage on right click (radio), but I can't get setview to work.

If I had to guess the problem is in my  extra_rc.hpp (this is for Overpoch 1.0.5.1). Again, total noob at scripting, so my guess is I have a problem with my syntax/structure.

Spoiler

class ExtraRc {
    class ItemRadio {
        class GroupManagement {
        text = "Group Management";
        script = "execVM 'dzgm\loadGroupManagement.sqf'";
        };
        class switchOnOff {
        text = "Switch ON/OFF";
        script = "execVM 'custom\remote\switch_on_off.sqf'";
        };
    };

        class Binocular {
        class SetView {
        text = "Setview";
        script = "execVM 'custom\setview\setview.sqf'";
                 };
             class Binocular_Vector {
                 class SetView2 {
                 text = "Setview";
                 script = "execVM 'custom\setview\setview.sqf'";
                 };    
        };
   
};

 

Link to comment
Share on other sites

@BZerK0r youre brackets are bad.   Use the code below

Spoiler


class ExtraRc {
    class ItemRadio {
        class GroupManagement {
        text = "Group Management";
        script = "execVM 'dzgm\loadGroupManagement.sqf'";
        };
        class switchOnOff {
        text = "Switch ON/OFF";
        script = "execVM 'custom\remote\switch_on_off.sqf'";
        };
    };

        class Binocular {
        class SetView {
        text = "Setview";
        script = "execVM 'custom\setview\setview.sqf'";
                 }; //this close the class Setview
            };   //this close the class  Binocular
             class Binocular_Vector {
                 class SetView2 {
                 text = "Setview";
                 script = "execVM 'custom\setview\setview.sqf'";
                 };  //this close the class SetView2 
        };   //this close the class Binocular_Vector

};//this close the class ExtraRc

 

Link to comment
Share on other sites

@Tempur you don't, using extra files to set view distance is old and outdated, a waste of time.

This should do the trick.

Spoiler

DZE_CLICK_ACTIONS = [
    ["Binocular","View Distance 500m","setViewDistance 500;","true"],
    ["Binocular","View Distance 1000m","setViewDistance 1000;","true"],
    ["Binocular","View Distance 1500m","setViewDistance 1500;","true"],
    ["Binocular","View Distance 2000m","setViewDistance 2000;","true"],
    ["Binocular","View Distance 2500m","setViewDistance 2500;","true"],
    ["Binocular","View Distance 3000m","setViewDistance 3000;","true"],
    ["Binocular","View Distance 4000m","setViewDistance 4000;","true"],
    ["Binocular","View Distance 5000m","setViewDistance 5000;","true"],
    ["Binocular_Vector","View Distance 500m","setViewDistance 500;","true"],
    ["Binocular_Vector","View Distance 1000m","setViewDistance 1000;","true"],
    ["Binocular_Vector","View Distance 1500m","setViewDistance 1500;","true"],
    ["Binocular_Vector","View Distance 2000m","setViewDistance 2000;","true"],
    ["Binocular_Vector","View Distance 2500m","setViewDistance 2500;","true"],
    ["Binocular_Vector","View Distance 3000m","setViewDistance 3000;","true"],
    ["Binocular_Vector","View Distance 4000m","setViewDistance 4000;","true"],
    ["Binocular_Vector","View Distance 5000m","setViewDistance 5000;","true"]
];

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...