Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
daukj0tt

loot timer

Recommended Posts

Hi,

anyone know the code to tweak the loot timer back to normal.. like in 1.7.6.1 ?

Share this post


Link to post
Share on other sites

yeah but its not easy its a lot of messing about to get it working taking files out of the dayz code and editing them and incorporating them into your mission files

Share this post


Link to post
Share on other sites

In description.ext in your mission file, add at the top of the file

Code:

#include "cfgBuildingLoot.hpp"

Copy in your mission file these 3 files: (From dayzcode.pbo)

Code:

- CfgBuildingLoot.hpp

- CfgBuildingPos.hpp

- CfgLoot.hpp

- You will need an overridden compiles.sqf. Copy it from dayzcode in a new folder called "Fixes" in your mission file.

Open init.sqf from your mission file and change

Code:

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions

To

Code:

call compile preprocessFileLineNumbers "Fixes\compiles.sqf"; //Compile regular functions

- You will need an overridden variables.sqf. Copy it from dayzcode in your "Fixes" folder in your mission file. and change this line in init.sqf

Code:

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf" ;

To

Code:

call compile preprocessFileLineNumbers "Fixes\variables.sqf";

from your mods dayz_code, copy over init\loot_init.sqf, make the appropriate configFile to missionConfigFile changes.

Open the variables.sqf, find:

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\loot_init.sqf";

and change the path to your modified loot_init.sqf, usually dayz_code\init\oot_init.sqf if your dayz_code folder is in your mission pbo root or "Fixes" folder.

From the dayz_code compiles folder, I copied over files (in "Fixes" folder) such as building_spawnLoot, building_spawnZombies, player_spawnCheck. spawn_loot, zombie_generate.. Your list may differ slightly, so open all the files and do a search for cfgBuildingLoot and cfgLoot and make sure any configFile >> are changed to missionConfigFile >>, ignore instances of cfgVehicle, etc. leave those as they are.

if you want to modify the loot on the crash site, you will need to edit your configFile like above in your dayz_server.pbo

This may differ depending on the mod, so I suggest you open each file and do a search:

You're looking for this: configFile >> "CfgBuildingLoot" ... According to arma 2 wiki, configFile looks into the mods folder root. so replace that with missionConfigFile >> "CfgBuildingLoot"

Note: You may also find cfgLoot, you'll want to modify it like above.

You want to replace every instance only for the "CfgBuildingLoot" from configFile to missionConfigFile. ignore instances of cfgVehicle, etc. leave those as they are.

For each file you will need to copy into your mission pbo and override it in the compiles.sqf

Now you can edite your loot table with Cfgloot.hpp and CfgBuilding.hpp

Share this post


Link to post
Share on other sites

nps mate fraggles is your man if you get stuck

Share this post


Link to post
Share on other sites

heres one i made for you

just set you instance id in init change the values for the loot chances (still at default atm)

and compress them to pbo and change the name to whatever your files are

this also has a few other add ons in there such as self blood bag,remove vehicle parts and dynamic weather these can easily be removed if you like.

these files work with 1.7.7.1 and reality database

Edited by AmberHelios

Share this post


Link to post
Share on other sites

nope banned weapons are well banned you can use rmod to enable them

Share this post


Link to post
Share on other sites

Is there a loot time on helo crashes now or do they still spawn all of their loot when the server restarts?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×