[Release] Right Click Binocular to change View Distance [Epoch]

alexlawson

OpenDayZ Rockstar!
Binocular view distance
Version: 1.0
What it does: This is just a very simple script that add's some right click options to the Binocular item, the script gives options to change the view distance, the options are 250, 500, 750, 1000, 1250, 1500, 1750 and 2000.
Requirements:
Easy = Blue <10
mission pbo​
Install Steps:
1. First open up init.sqf and change line 57 to this
Code:
call compile preprocessFileLineNumbers "custom\compiles.sqf";

2. Now add this line of code to the bottom of description.ext (its in the root of your mission file)
Code:
#include "custom\extra_rc.hpp"

3. Now add this FILE to the ROOT of your mission folder.

Now your done

I made it quite easy to install but if you need more specifics just message me.

PIC:
1jA23OO.png


Credit:
Maca134 for his Right Click Menu :)

NOTE:
The extra right click script does not belong to me I only added in the code to change fog and added the right click option to binocular's.
And first release so be gentle.
 
You really dont need a script for that. just add these to your extra_rc.hpp

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');";
};
};
class ItemBloodbag {
class bloodbag_self {
text = "Bloodbag Self";
script = "execVM 'custom\player_selfbloodbag.sqf'";
};
};
[\spoiler]
 
You really dont need a script for that. just add these to your extra_rc.hpp

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');";
};
};
class ItemBloodbag {
class bloodbag_self {
text = "Bloodbag Self";
script = "execVM 'custom\player_selfbloodbag.sqf'";
};
};
[\spoiler]
But wouldn't that reset over time.
 
Back
Top