[Release] Soul's Lowered Stashes

Soul

Valued Member!
Soul's Lowered Stashes
v1.0 For DayZMod 1.8.0.3

cbc9Ceo.jpg


What:
This is a script modification that make the stashes apear much deeper in the ground, thus making them less visible.

Requirements:
  • Moderate difficulty (involves overwriten dayz_server.pbo/dayz_code.pbo files)
  • PBO Manager
  • Access to your mission pbo and server pbo
  • Overwritten files: compiles.sqf / fn_nicespot.sqf / player_createstash.sqf
Installation

If you already have a custom compiles.sqf file or an overwritten one then skip the tutorial to step 4 and alter the location of those said files.
  1. Open your mission folder and make a new map called fixes if you dont already have this.
  2. Create inside that folder a file called "compiles.sqf"
  3. open init.sqf from your mission folder and find
    Code:
    progressLoadingScreen 1.0;
    Add above:
    Code:
    call compile preprocessFileLineNumbers "fixes\compiles.sqf";                //Compile regular functions
  4. Open your custom compiles.sqf and add:
    Code:
    player_createstash =        compile preprocessFileLineNumbers "fixes\player_createstash.sqf";
    fn_niceSpot = compile preprocessFileLineNumbers "fixes\fn_niceSpot.sqf";
  5. Open your @DayZ mod folder in Arma2OA and unpack (unPBO) dayz_code
  6. Grab player_createstash.sqf from the actions folder and place it in your mission fixes folder.
  7. Grab fn_nicespot.sqf from the compile folder and place it in your mission fixes folder.
  8. Open player_createstash.sqf and find:
    Code:
    _location = player modeltoworld [0,2.5,0];
    _location set [2,0];
    Change that to this:
    Code:
    _location = player modeltoworld [0,0,-0.20];
    //_location set [2,0];
  9. Open fn_nicespot.sqf and find something that looks like this and alter the false; and true; values to match mine.
    Code:
    case "StashSmall" : {
            _testPond = true;
            _testSlope = false;
            _testSea = true;
            _noCollision = false;
        };
        case "StashMedium" : {
            _testPond = true;
            _testSlope = false;
            _testSea = true;
            _noCollision = false;
        };
  10. Open your dayz_server.pbo and open your server_monitor.sqf file in the system folder
    Then find this:
    Code:
    //diag_log format["OBJ: %1 - %2,%3,%4,%5,%6,%7,%8", _idKey,_type,_ownerID,_worldspace,_inventory,_hitPoints,_fuel,_damage];
                    dayz_nonCollide = ["DomeTentStorage","TentStorage","CamoNet_DZ"];
    Add above:
    Code:
    _xpoint = _pos select 0;
                    _ypoint = _pos select 1;
                    _zpoint = _pos select 2;
                    _pos = [_xpoint, _ypoint, if((_type=="stashsmall") or (_type=="stashmedium"))then{-0.20}else{_zpoint}];
If you want it deeper or higher just change the -0.20 value in player_createstash.sqf and server_monitor.sqf but make shure to always use the same value for both files.

Credits: ZGreen-Spectre for being very helpfull!

For support click >> here <<
 
Back
Top