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

  Reveal hidden contents

 

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

  Reveal hidden contents

 

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

  On 1/3/2017 at 9:12 PM, 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)

Expand  

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

  On 1/3/2017 at 9:12 PM, 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)

Expand  

 

  On 1/3/2017 at 9:22 PM, clarkycal said:

Hi, let me fix your English!

"Worth noting" change this to "Worth nothing"

Kappa (I'm joking) :laugh:

Expand  

honestly, dont give a shit

Link to comment
Share on other sites

  On 1/3/2017 at 9:12 PM, 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)

Expand  

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

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

  On 1/3/2017 at 11:51 PM, 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

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

Expand  

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

Link to comment
Share on other sites

  On 1/3/2017 at 11:51 PM, 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

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

Expand  

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

  On 1/4/2017 at 5:44 PM, 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

Expand  

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

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 1/4/2017 at 6:28 PM, 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:

  Reveal hidden contents

 

Expand  

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

  Reveal hidden contents

 

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

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 1/5/2017 at 8:40 PM, 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

  Reveal hidden contents

 

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

  Reveal hidden contents

 

Expand  

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 1/24/2017 at 12: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!!

Expand  

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 9:24 PM, juandayz said:

Ok

Expand  

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.

  Reveal hidden contents

 

Link to comment
Share on other sites

@BZerK0r youre brackets are bad.   Use the code below

  Reveal hidden contents

 

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.

  Reveal hidden contents

 

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