Jump to content
  • 0

static guns and mg nests


Achmed

Question

22 answers to this question

Recommended Posts

  • 0

I think this is the line you are looking for in the server_cleanup.fsm

 

I have mine modified not clean up the Mission pack spawn items and Sarge items/vehicles until after restart.

 " if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && (vehicle _x getVariable [""Sarge"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n

I would assume you set the variable for the base items you will be using and add something like?

&& (vehicle _x getVariable [""MY_NEW_VARIABLE"",0] != 1)

to the line above

Link to comment
Share on other sites

  • 0

Anyone ever managed to remove the disassemble option for the mg nests etc ?

 

go to dayz_code extract files and get variables.sqf

then go to Dayz_mission -> init.sqf

//Load in compiled functions
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; 
replace by 
//Load in compiled functions
call compile preprocessFileLineNumbers "\yourownfolder\variables.sqf"; 

now edit your own version of variables.sqf

look around line 473

DZE_isRemovable = ["Fence_corrugated_DZ","M240Nest_DZ","ParkBench_DZ","Plastic_Pole_EP1_DZ"];

replace by 

DZE_isRemovable = ["Fence_corrugated_DZ","ParkBench_DZ","Plastic_Pole_EP1_DZ"];

put your new variables.sqf into your own folder

 

 Should work!

Link to comment
Share on other sites

  • 0

Sorry to rez an old thread but I just added static weapons at the trader. we are able to deploy them but usually someone gets killed ("Killed a hacker") or they get kicked from it and it disappears. 

 

I have looked at my Server_cleanup.fsm and it does not have the lines of code any of these old ( and they are ALL old) threads posts refer to to edit so that it wont do that. Is there a way to edit the Server_cleanup.fsm to allow these actions for Epoch 1.0.5.1?

Link to comment
Share on other sites

  • 0

Hi, wildwezul.

Glad to see you finally got the bags working.

That MG is considered to be a vehicle that you can "drive". Bit stupid but well ok. What this means is, that adding it to safe vehicles will prevent it from despawning, yeah but adding it to dayz_allowedVehicles will prevent you getting killed as soon as you enter the vehicle.

You can find that array within your variables.sqf.

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
  • Advertisement
  • Discord

×
×
  • Create New...