Jump to content
  • 0

Question

8 answers to this question

Recommended Posts

  • 0

in extra_rc.hpp

Spoiler

class Binocular_Vector  {
        class distance800m {
            text = "800 Metres";
            script = "setViewDistance 800; PlayerViewDistance = 800; systemChat('Attention! You have the draw distance (visibility): 800 Metres');";
        };
        class distance1000m {
            text = "1000 Metres (Default)";
            script = "setViewDistance 1000; PlayerViewDistance = 1000; systemChat('Attention! You have the draw distance (visibility): 1000 Metres');";
        };
        class distance1200m {
            text = "1200 Metres";
            script = "setViewDistance 1200; PlayerViewDistance = 1200; systemChat('Attention! You have the draw distance (visibility):  1200 Metres');";
        };
        class distance1600m {
            text = "1600 Metres";
            script = "setViewDistance 1600; PlayerViewDistance = 1600; systemChat('Attention! You have the draw distance (visibility): 1600 Metres');";
        };
        class distance2000m {
            text = "2000 Metres";
            script = "setViewDistance 2000; PlayerViewDistance = 2000; systemChat('Attention! You have the draw distance (visibility): 2000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance2500m {
            text = "2500 Metres";
            script = "setViewDistance 2500; PlayerViewDistance = 2500; systemChat('Attention! You have the draw distance (visibility):  2500 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance3000m {
            text = "3000 Metres";
            script = "setViewDistance 3000; PlayerViewDistance = 3000; systemChat('Attention! You have the draw distance (visibility):  3000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance4000m {
            text = "4000 Metres";
            script = "setViewDistance 4000; PlayerViewDistance = 4000; systemChat('Attention! You have the draw distance (visibility):  4000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance5000m {
            text = "5000 Metres";
            script = "setViewDistance 5000; PlayerViewDistance = 5000; systemChat('Attention! You have the draw distance (visibility):  5000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };        
    };

Spoiler

class Binocular {
        class distance800m {
            text = "800 Metres";
            script = "setViewDistance 800; PlayerViewDistance = 800; systemChat('Attention! You have the draw distance (visibility): 800 Metres');";
        };
        class distance1000m {
            text = "1000 Metres (Default)";
            script = "setViewDistance 1000; PlayerViewDistance = 1000; systemChat('Attention! You have the draw distance (visibility): 1000 Metres');";
        };
        class distance1200m {
            text = "1200 Metres";
            script = "setViewDistance 1200; PlayerViewDistance = 1200; systemChat('Attention! You have the draw distance (visibility):  1200 Metres');";
        };
        class distance1600m {
            text = "1600 Metres";
            script = "setViewDistance 1600; PlayerViewDistance = 1600; systemChat('Attention! You have the draw distance (visibility): 1600 Metres');";
        };
        class distance2000m {
            text = "2000 Metres";
            script = "setViewDistance 2000; PlayerViewDistance = 2000; systemChat('Attention! You have the draw distance (visibility): 2000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance2500m {
            text = "2500 Metres";
            script = "setViewDistance 2500; PlayerViewDistance = 2500; systemChat('Attention! You have the draw distance (visibility):  2500 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance3000m {
            text = "3000 Metres";
            script = "setViewDistance 3000; PlayerViewDistance = 3000; systemChat('Attention! You have the draw distance (visibility):  3000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance4000m {
            text = "4000 Metres";
            script = "setViewDistance 4000; PlayerViewDistance = 4000; systemChat('Attention! You have the draw distance (visibility):  4000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };
        class distance5000m {
            text = "5000 Metres";
            script = "setViewDistance 5000; PlayerViewDistance = 5000; systemChat('Attention! You have the draw distance (visibility):  5000 Metres'); systemChat('Remember that high visibility range affects performance and FPS!');";
        };        
    };

 

Share this post


Link to post
Share on other sites
  • 0
Just now, samnotts said:

is that in @dayz_epoch or dayz_epoch_server files

 

you need create a extra_rc.hpp is not in pbo files.  any way.. here you have another way.

 

create setview.sqf (put in mpmissions\your instance\setview\)

Spoiler
_sv = 'setviewdistance %1;';



setview =
[
	["SETVIEW MENU",true],
					
	
		["SETVIEW>>", [], "#USER:SVD", -5, [["expression", ""]], "1", "1"],
		
            ["", [], "", -5, [["expression", ""]], "1", "0"],
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];

SVD =
[
	["",true],
        ["250M", [2],  "", -5, [["expression", format[_sv ,"250"]]], "1", "1"],
        ["500M", [3],  "", -5, [["expression", format[_sv ,"500"]]], "1", "1"],
        ["750M", [4],  "", -5, [["expression", format[_sv ,"750"]]], "1", "1"],
        ["1000M", [5],  "", -5, [["expression", format[_sv ,"1000"]]], "1", "1"],
        ["1250M", [6],  "", -5, [["expression", format[_sv ,"1250"]]], "1", "1"],
        ["1500M", [7],  "", -5, [["expression", format[_sv ,"1500"]]], "1", "1"],
        ["1750M", [8],  "", -5, [["expression", format[_sv ,"1750"]]], "1", "1"],
        ["2000M", [9],  "", -5, [["expression", format[_sv ,"2000"]]], "1", "1"],
		["2250M", [10],  "", -5, [["expression", format[_sv ,"2250"]]], "1", "1"],
		["2500M", [11],  "", -5, [["expression", format[_sv ,"2500"]]], "1", "1"],
            ["", [-1], "", -5, [["expression", ""]], "1", "0"],            
            ["Exit", [13], "", -3, [["expression", ""]], "1", "1"]
];


showCommandingMenu "#USER:setview";

 

2-Now you need a custom keyboard.sqf  (If u have one skip it and proceed with step 3)

Spoiler

open \@DayZ_Epoch\addons\dayz_code\compile\  and copy the keyboard.sqf into mpmissions\your instance\

3-YOu need a custom compiles.sqf .. im sure you have one...  open it.

Spoiler

find this lines:

if (!isDedicated) then {
	diag_log "Loading custom client compiles";

and below paste:

DZ_KeyDown_EH = compile preprocessFileLineNumbers "keyboard.sqf";

 

4-Now open your new custom keyboard.sqf.   at bottom but before the last "_handled" paste:

if (_dikCode == 0x3C) then {execVM "setview\setview.sqf";};//setview MENU F2

now go in game and press F2 to open the setview menu.

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
Answer this question...

×   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 2DayZ2Retirement
      -PROBLEM SOLVED-
       
      G'day, Survivors.
      I am having an issue on my server where vehicles which spawn randomly around the map repair themselves upon server restart.
      I use this config in my init.sqf which successfully spawns the vehicles in damaged and with low fuel...
      DynamicVehicleDamageLow = 75;
      DynamicVehicleDamageHigh = 100;
      DynamicVehicleFuelLow = 0;
      DynamicVehicleFuelHigh = 25;
      ...However upon each server restart the vehicles repair themselves (the fuel remains low however) and for the life of me I can't figure out why this is happening. 
      DayZ Version -DayZ Epoch 1.0.6.2
      Scripts Used -DZAI | -DZMS | -Right Click Actions (Suicide, Smoke Drugs, GPS Scan)
      AntiHack - InfiSTAR
      Server Host - GTXGaming
      My HiveEXT.log and arma2oaserver.RPT logs are not showing anything out of the ordinary.
      I'm not sure if it matter, but all Planes/Helicopters and Boats have been removed from the server via the dynamic_vehicle.sqf.
      In addition, all of the traders and trader cities being removed by removing the call for the CfgServerTrader.hpp in the description.ext.
      If there is any other info I can show to assist in fixing this problem please let me know, any help would be greatly appreciated.
      Cheers.
    • By rocalpha
      Bonjour, j’écris aujourd’hui parce que j’aimerais savoir si vous ne pourrez pas m'aider. Je loue un serveur via gportal et j’aimerais pouvoir être mon serveur en PvE, mais aussi créer des éléments de base pour la connexion et des choses simples comme . J'ai un autre problème lorsque j'achète une voiture chère à pied cela me met une flèche rouge puis rien non aucun véhicule il apparait qu'après un redémarrage du serveur
    • By Warburgg
      I installed the dynamic climate script and it happens that it rains on the server but only lasts 10 seconds and stops. Is it because I use the script that speeds server time? I currently use Control Time which allows the server to have 2 hours of day and 1 hour night.
      The other climates such as overcast and fog last the forecast time 5-20 minutes but the rain does not.
      In my logs show: 16:52:30 "39:2 Debug: Rain set to 0.92421 for 10.6582 minutes". It rains until it rains but soon stops.
    • By Tanita-Corp
      Hello guys)
      Tell me please how to make 
      spawned veh. unused 4 day deleted
      with key veh. unused 14 day deleted
       
      I broke my head
    • By Hanse
      Hello i am knew to this and i need someone to show me the ropes
      Steam
      IGN:Hanse
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...