Jump to content
  • 0

view distnace


samnotts

Question

25 answers to this question

Recommended Posts

  • 0

3 diferents ways.

1-Using keyboard.sqf 

Spoiler

1-I know you already have a custom compiles.sqf  open it.. and paste into !isDedicated section:


DZ_KeyDown_EH = compile preprocessFileLineNumbers "dayz_code\compile\keyboard.sqf";	

2-Open \@DayZ_Epoch\addons\dayz_code\compile\  and paste keyboard.sqf  into \MPMissions\DayZ_Epoch_your instance\dayz_code\compile\

3-Open keyboard.sqf at bottom but before the last "_handle" paste:


if (_dikCode == 0x3D) then {execVM "setview.sqf";};//key F3

4-create setview.sqf  into (mpmissions\your instance\)


_path2 = 'setviewdistance %1;';

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

 

2 way: by @lwbuk 

3 way.. using extra_rc.hpp.  the one that i give you some time ago.

Link to comment
Share on other sites

  • 0

FFS read the damn post. You add the right click option to the binos using the config in deploy anything.

 

["Binocular_Vector","1000 Meters","setViewDistance 1000; systemChat('View Distance Set: 1000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","1250 Meters","setViewDistance 1250; systemChat('View Distance Set: 1250. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","1500 Meters","setViewDistance 1500; systemChat('View Distance Set: 1500. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","1750 Meters","setViewDistance 1750; systemChat('View Distance Set: 1750. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","2000 Meters","setViewDistance 2000; systemChat('View Distance Set: 2000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","2500 Meters","setViewDistance 2500; systemChat('View Distance Set: 2500. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","3000 Meters","setViewDistance 3000; systemChat('View Distance Set: 3000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","3500 Meters","setViewDistance 3500; systemChat('View Distance Set: 3500. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","4000 Meters","setViewDistance 4000; systemChat('View Distance Set: 4000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular_Vector","5000 Meters","setViewDistance 5000; systemChat('View Distance Set: 5000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","1000 Meters","setViewDistance 1000; systemChat('View Distance Set: 1000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","1250 Meters","setViewDistance 1250; systemChat('View Distance Set: 1250. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","1500 Meters","setViewDistance 1500; systemChat('View Distance Set: 1500. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","1750 Meters","setViewDistance 1750; systemChat('View Distance Set: 1750. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","2000 Meters","setViewDistance 2000; systemChat('View Distance Set: 2000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","2500 Meters","setViewDistance 2500; systemChat('View Distance Set: 2500. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","3000 Meters","setViewDistance 3000; systemChat('View Distance Set: 3000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","3500 Meters","setViewDistance 3500; systemChat('View Distance Set: 3500. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","4000 Meters","setViewDistance 4000; systemChat('View Distance Set: 4000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],
	["Binocular","5000 Meters","setViewDistance 5000; systemChat('View Distance Set: 5000. DO NOT set this value too high, it will cause FPS to drop and your graphics could lag.');","true"],

 

Link to comment
Share on other sites

  • 0
1 minute ago, juandayz said:

3 diferents ways.

1-Using keyboard.sqf 

  Reveal hidden contents

1-I know you already have a custom compiles.sqf  open it.. and paste into !isDedicated section:



DZ_KeyDown_EH = compile preprocessFileLineNumbers "dayz_code\compile\keyboard.sqf";	

2-Open \@DayZ_Epoch\addons\dayz_code\compile\  and paste keyboard.sqf  into \MPMissions\DayZ_Epoch_your instance\dayz_code\compile\

3-Open keyboard.sqf at bottom but before the last "_handle" paste:



if (_dikCode == 0x3D) then {execVM "setview.sqf";};//key F3

4-create setview.sqf  into (mpmissions\your instance\)



_path2 = 'setviewdistance %1;';

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

 

2 way: by @lwbuk 

3 way.. using extra_rc.hpp.  the one that i give you some time ago.

i rememebr you put it in for me 

 

Link to comment
Share on other sites

  • 0

ok.. again.. the @lwbuk way is the same but more clean.

but here you got.

Create a file called extra_rc.hpp (mpmissions\your instance\)

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

 

open your description.ext  at bottom paste:

#include "extra_rc.hpp"

3-open your custom compiles.sqf

into !isDedicated section paste:

player_selectSlot =			compile preprocessFileLineNumbers "ui_selectSlot.sqf";

Open \@DayZ_Epoch\addons\dayz_code\compile\  copy ui_selectslot.sqf  and paste into mpmissions\your instance\

Open this new custom ui_selectslot.sqf

Spoiler

find:


_pos set [3,_height];

above it paste:
 


	//EXTRA_RC
	
	_erc_cfgActions = (missionConfigFile >> "ExtraRc" >> _item);
    _erc_numActions = (count _erc_cfgActions);
    if (isClass _erc_cfgActions) then {
     for "_j" from 0 to (_erc_numActions - 1) do
     {
       _menu =  _parent displayCtrl (1600 + _j + _numActions);
       _menu ctrlShow true;
       _config =  (_erc_cfgActions select _j);
       _text =  getText (_config >> "text");
       _script =  getText (_config >> "script");
       _height = _height + (0.025 * safezoneH);
       uiNamespace setVariable ['uiControl', _control];
       _menu ctrlSetText _text;
       _menu ctrlSetEventHandler ["ButtonClick",_script];
      };
   };
	//EXTRA_RC

 

4-create this path : mpmissions\your instance\ custom\

into the custom folder paste the setview folder.

http://www.mediafire.com/file/pdykr9ua4oq3e34/setview.rar

Link to comment
Share on other sites

  • 0

i   have tred the extra_rc.hpp way on my test server and it says  

22:00:42 Error 5 reading file 'mpmissions\DayZ_Epoch_11.Chernarus\scripts\deploy\extra_rc.hpp'

ErrorMessage: Include file mpmissions\DayZ_Epoch_11.Chernarus\scripts\deploy\extra_rc.hpp not found.

Link to comment
Share on other sites

  • 0

In all honesty, it is my recommendation that you stop trying to host a server. You act like this is a forum where you can come and have us set your server up for you. If you are just going to disrespect people, you might as well quit trying now, as it doesn't seem you are capable of learning, and I know for a fact that I don't want to see you coming on here bitching any longer.

Link to comment
Share on other sites

  • 0

that funny i aint bitching about anything and tbh i have done it now so yeah i only asked the guy for the original one he gave me and for the weed farm script has o tired to find it and couldnt nad still cant find so so erm what is bitchy about that and i no way have i disrespected any one in this post and i never come to you for help in fact it was titus who ask for your help and tbh if you that good at it then you would have found out it was my  hosting company stopping m,e from up loading one of the files that  i need for the virtual garages 

Link to comment
Share on other sites

  • 0

What do you mean? I just linked the script I added for you?

Please don't take this the wrong way, but can you read properly or do you struggle with English or something? I don't mean this as an insult, it's a genuine question.  I've posted several things in this thread either directly linking to a mod you have asked about, or replying directly to a question you have asked, and you seem to completely overlook it, or just not see it, I don't really understand what's happening  

You asked for the view distance script. I Linked it along with the mod needed to run it and you said you didn't want a deploy script, completely overlooking the part about adding the view distance.

You asked who added the view distance before,I said I did when I also added hemp and locate vehicle, you missed it again 

You asked who did the hemp install, I said I did already In the previous post but you didn't see it again it seems. 

You asked again who did the hemp script, I said I did and linked it in the post, you then ask which I did? 

If you have trouble reading, or understanding  that's fine, but please let us know, because it's getting to be hard work trying to help you when you don't ever seem to either fully read or understand the replies given. 

If you genuinely struggle with it, then I will make more effort to explain things and help, but if you are just being lazy and not reading things properly, then I have better things to do with my time. 

Link to comment
Share on other sites

  • 0

Yeah do have problems with reading and that I was just making sure I got the right one as like I said I got some of the files on my PC so I wanted to find the relevant stuff so I can just copy it from the files I have so that is why I asked witch one you did for me and where about did you put it if u put it in the same place as u posted the that is it I will have it sorted 

Link to comment
Share on other sites

  • 0

Ok fine, yes I installed Juans hemp files as I posted, using his install steps.  I used the deploy anything way of getting the right click action rather than the extra_rc version. Do it how you like, if you already have the extra_rc set up from earlier then do it that way.  You will also need to re add hemp to the traders, I believe we covered that in a different post. I can't add the code right now as I'm on my iPad and about to head to the hospital. 

I did the mission loot yes, but the DZMS ones didn't work I later found out from one of the rpt logs you posted. WAI works buy adding stuff to the high value loot array in the config.  You can then change the percentage chance of high loot spawning to make missions give out better stuff.  You can also make a custom box type with whatever you want in it for certain missions, but that's getting to complicated to type up here. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...