Jump to content
Brody

Binocular Set Range Distance

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

 

 


 

Share this post


Link to post
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:

Share this post


Link to post
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

Share this post


Link to post
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!

 

Share this post


Link to post
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...

Share this post


Link to post
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:

Share this post


Link to post
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

Share this post


Link to post
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');";
		};
	};

 

 

Share this post


Link to post
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

Share this post


Link to post
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'";
        };	
};
   };

 

 

Share this post


Link to post
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

Share this post


Link to post
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');";
        };
    };

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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'";
                 };    
        };
   
};

 

Share this post


Link to post
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

 

Share this post


Link to post
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"]
];

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By tyrant50187
      Im looking for the ability to add Script allowing Eyescan (retina scan) For Safe's and lockboxes, ether or, its something i havent found any script for but have found mentions and seen, any suggestions, links, or scripts are welcome, please Let me know!
    • By Bloodthirsty
      Hey I just need some files for this server, any and all you guys can come up with and think it deserve post that shit in chat rn. I want to see some crazy ideas and additions if you got em :) Lets see what you guys can come up with

    • By randall421
      The loot spawning on my server will respawn or cycle right infrnt of you if you move more than 5m away or if someone else near you moves 5ft away. I check player_spawncheck.sqf and it looks fine. 
      player_spawncheck.sqf 
      //player_spawncheck.sqf private ["_isWreck","_maxControlledZombies","_looted","_zombied","_doNothing","_spawnZedRadius","_serverTime","_age","_nearbyBuildings","_position","_speed","_radius","_maxlocalspawned","_maxWeaponHolders","_currentWeaponHolders","_maxtoCreate","_inVehicle","_isAir","_isLand","_isSea","_Controlledzeddivided","_totalcrew","_nearby","_type","_config","_canSpawn","_dis","_checkLoot","_islocal","_bPos","_zombiesNum"]; _age = -1; //_nearbyBuildings = []; _position = [player] call fnc_getPos; _speed = speed (vehicle player); _radius = 200; //150*0.707; Pointless Processing (106.5) _spawnZedRadius = 20; /* //Tick Time PVDZ_getTickTime = player; publicVariableServer "PVDZ_getTickTime"; */ //Total Counts _maxlocalspawned = round(dayz_spawnZombies); _maxControlledZombies = round(dayz_maxLocalZombies); _maxWeaponHolders = round(dayz_maxMaxWeaponHolders); _currentWeaponHolders = round(dayz_currentWeaponHolders); //Limits (Land,Sea,Air) _inVehicle = (vehicle player != player); /* _isAir = vehicle player iskindof "Air"; _isLand = vehicle player iskindof "Land"; _isSea = vehicle player iskindof "Sea"; if (_isLand) then { } else { }; if (_isAir) then { } else { }; if (_isSea) then { } else { }; */ _doNothing = false; if (_inVehicle) then { _Controlledzeddivided = 0; //exit if too fast if (_speed > 25) exitwith {_doNothing = true;}; //Crew can spawn zeds. _totalcrew = count (crew (vehicle player)); if (_totalcrew > 1) then { _Controlledzeddivided = 2; //Dont allow driver to spawn if we have other crew members. if (player == driver (vehicle player)) exitwith {_doNothing = true;}; } else { _Controlledzeddivided = 4; }; if (_Controlledzeddivided > 0) then { _maxControlledZombies = round(_maxControlledZombies / _Controlledzeddivided); r_player_divideinvehicle = _Controlledzeddivided; }; }; if (_doNothing) exitwith {}; /*if ("ItemMap_Debug" in items player) then { deleteMarkerLocal "MaxZeds"; deleteMarkerLocal "Counter"; deleteMarkerLocal "Loot30"; deleteMarkerLocal "Loot120"; deleteMarkerLocal "Agro80"; _markerstr = createMarkerLocal ["MaxZeds", _position]; _markerstr setMarkerColorLocal "ColorYellow"; _markerstr setMarkerShapeLocal "ELLIPSE"; _markerstr setMarkerBrushLocal "Border"; _markerstr setMarkerSizeLocal [_radius, _radius]; _markerstr1 = createMarkerLocal ["Counter", _position]; _markerstr1 setMarkerColorLocal "ColorRed"; _markerstr1 setMarkerShapeLocal "ELLIPSE"; _markerstr1 setMarkerBrushLocal "Border"; _markerstr1 setMarkerSizeLocal [_radius+100, _radius+100]; _markerstr2 = createMarkerLocal ["Agro80", _position]; _markerstr2 setMarkerColorLocal "ColorRed"; _markerstr2 setMarkerShapeLocal "ELLIPSE"; _markerstr2 setMarkerBrushLocal "Border"; _markerstr2 setMarkerSizeLocal [80, 80]; _markerstr2 = createMarkerLocal ["Loot30", _position]; _markerstr2 setMarkerColorLocal "ColorRed"; _markerstr2 setMarkerShapeLocal "ELLIPSE"; _markerstr2 setMarkerBrushLocal "Border"; _markerstr2 setMarkerSizeLocal [30, 30]; _markerstr3 = createMarkerLocal ["Loot120", _position]; _markerstr3 setMarkerColorLocal "ColorBlue"; _markerstr3 setMarkerShapeLocal "ELLIPSE"; _markerstr3 setMarkerBrushLocal "Border"; _markerstr3 setMarkerSizeLocal [120, 120]; diag_log ("LocalZombies: " +str(dayz_spawnZombies) + "/" +str(dayz_maxLocalZombies)); //Logging diag_log (format["%1 Local.Agents: %2/%3, NearBy.Agents: %8/%9, Global.Agents: %6/%7, W.holders: %10/%11, (radius:%4m %5fps).","SpawnCheck", _maxlocalspawned, _maxControlledZombies, _radius, round diag_fpsmin,dayz_currentGlobalZombies, dayz_maxGlobalZeds, dayz_CurrentNearByZombies, dayz_maxNearByZombies, _currentWeaponHolders,_maxWeaponHolders]); };*/ // nearObjects is faster than nearestObjects when sorting by distance isn't needed // "Building" includes House and all of its child classes (Crashsite, IC_Fireplace1, IC_Tent, etc.) _nearby = _position nearObjects ["Building",_radius]; _maxlocalspawned = _maxlocalspawned max floor(_maxControlledZombies*.8); if (_maxlocalspawned > 0) then { _spawnZedRadius = _spawnZedRadius * 3; }; //Spawn Zeds & loot in buildings { _type = typeOf _x; _config = missionConfigFile >> "CfgLoot" >> "Buildings" >> _type; _canSpawn = isClass (_config); if (_canSpawn) then { _dis = _x distance player; _checkLoot = (count (getArray (_config >> "lootPos"))) > 0; _islocal = _x getVariable ["", false]; // object created locally via TownGenerator. //Make sure wrecks always spawn Zeds _isWreck = _x isKindOf "CrashSite"; //Loot if (getNumber(_config >> "lootChance") > 0) then { if (_currentWeaponHolders < _maxWeaponHolders) then { //Basic loot check if ((_dis < 125) and (_dis > 30) and !_inVehicle and _checkLoot) then { _serverTime = serverTime; _looted = (_x getVariable ["looted",_serverTime]); _age = _serverTime - _looted; //Building refresh rate if (_age == 0 or (_age > getNumber(_config >> "lootRefreshTimer"))) then { _x setVariable ["looted",_serverTime,!_islocal]; _x call building_spawnLoot; if (!(_x in dayz_buildingBubbleMonitor)) then { dayz_buildingBubbleMonitor set [count dayz_buildingBubbleMonitor, _x]; }; //diag_log [ diag_tickTime, "new loot at",_x,"age:", _age, "serverTime:", _serverTime]; }/* else { diag_log [ diag_tickTime, "won't spawn loot at",_x,"age:", _age, "serverTime:", _serverTime]; }*/; }; }; }; //Zeds if (getNumber(_config >> "zombieChance") > 0) then { if (_dis > _spawnZedRadius) then { _serverTime = serverTime; _zombied = (_x getVariable ["zombieSpawn",_serverTime]); _age = _serverTime - _zombied; if ((_age == 0) or (_age > 300)) then { if (!_isWreck) then { if ((dayz_spawnZombies < _maxControlledZombies) and (dayz_CurrentNearByZombies < dayz_maxNearByZombies) and (dayz_currentGlobalZombies < dayz_maxGlobalZeds)) then { _bPos = getPosATL _x; _zombiesNum = count (_bPos nearEntities ["zZombie_Base",(((sizeOf _type) * 2) + 10)]); if (_zombiesNum == 0) then { _x setVariable ["zombieSpawn",_serverTime,!_islocal]; if (!(_x in dayz_buildingBubbleMonitor)) then { //add active zed to var dayz_buildingBubbleMonitor set [count dayz_buildingBubbleMonitor, _x]; }; //start spawn [_x] call building_spawnZombies; }; //diag_log (format["%1 building. %2", __FILE__, _x]); }; } else { _bPos = getPosATL _x; _zombiesNum = count (_bPos nearEntities ["zZombie_Base",(((sizeOf _type) * 2) + 30)]); //Should be a wreck if (_zombiesNum == 0) then { [_x,_isWreck] call building_spawnZombies; }; }; }; }; }; }; } forEach _nearby; At first I thought it was a respawn timer issue or something like that but if you don't move the loot will stay, you have to back away from it or someone else has to get within range and its not like you have to run away for this to happen, you can just back up a few steps and watch the loot change right infront of you. I have been playing around with it just trying to see if i can figure it out but if anyone knows what i should do or can at least point me in the right direction it would be a huge help.
       
      Thanks
    • By calinova22
      I was wondering if it is possible to make it so that a players humanity would not change for a certain amount of time? I have a PVP arena with a teleport in and I was wanting to make it so people could TP in and fight without worrying about gaining or losing humanity.
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...