Jump to content

is there a way to override the setting in the MOD pbo's?


grazskin

Recommended Posts

remove.sqf

 

Remove sapphires and rubies from the pool of gems:

if (_isMine) then {
            if((random 10) <= 4) then {
                _gems = ["ItemTopaz","ItemObsidian","ItemSapphire","ItemAmethyst","ItemEmerald","ItemCitrine","ItemRuby"];
                _gem = _gems select (floor(random (count _gems)));
                _selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
            };
        };
Link to comment
Share on other sites

As far as I know, it only removes them from veins as minable gems. Edit the following files, then copy them to your mission file.

 

init.sqf
 
From:
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
To:
call compile preprocessFileLineNumbers "[your folder layout]\compiles.sqf";
 
compiles.sqf
 
From:
player_removeObject = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\remove.sqf";
To:
player_removeObject = compile preprocessFileLineNumbers "[your folder layout]\remove.sqf";
 
remove.sqf
 
From:
if (_isMine) then {
if((random 10) <= 4) then {
_gems = ["ItemTopaz","ItemObsidian","ItemSapphire","ItemAmethyst","ItemEmerald","ItemCitrine","ItemRuby"];
_gem = _gems select (floor(random (count _gems)));
_selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
};
};
To:
if (_isMine) then {
if((random 10) <= 4) then {
_gems = ["ItemTopaz","ItemObsidian","ItemAmethyst","ItemEmerald","ItemCitrine"];
_gem = _gems select (floor(random (count _gems)));
_selectedRemoveOutput set [(count _selectedRemoveOutput),[_gem,1]];
};
};
 
Re-pack PBO, upload, restart server.
Link to comment
Share on other sites

thanks

 

This way,  to change remove.sqf file, will not work. As i know, latest Epoch versions use config of Mine to get gem in output. 

I tried to exclude Ruby from remove.sqf, and nothing happened - people still can find it in mines.

Link to comment
Share on other sites

This way,  to change remove.sqf file, will not work. As i know, latest Epoch versions use config of Mine to get gem in output. 

I tried to exclude Ruby from remove.sqf, and nothing happened - people still can find it in mines.

 

"config of Mine" ?

Link to comment
Share on other sites

"config of Mine" ?

 

I think he's talking about the config files :rolleyes:

 

 

This way,  to change remove.sqf file, will not work. As i know, latest Epoch versions use config of Mine to get gem in output. 

I tried to exclude Ruby from remove.sqf, and nothing happened - people still can find it in mines.

 

The config file only has the class configuration of the model for the Mine Veins not the output from the remove script.

 

If this is not working for you, maybe check over your code versus what fr1nk told you in post of this thread.

 

These files have to be pulled to your mission file to apply any changes to them.

Link to comment
Share on other sites

I think he's talking about the config files :rolleyes:

 

 

 

The config file only has the class configuration of the model for the Mine Veins not the output from the remove script.

 

If this is not working for you, maybe check over your code versus what fr1nk told you in post of this thread.

 

These files have to be pulled to your mission file to apply any changes to them.

 

That's kinda what I guessed but from what I see, the only gem-related info in the config files is the actual definition of the classes.

 

I dunno, time to drink MOAR COFFEE!

 

edit: and...I just noticed you already commented about the class configuration. Really do need more coffee..

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...