Arma2 Battle Royale Carepackage Markers! HELP

Discussion in 'Script/Addon help' started by DangerRuss, Jul 6, 2017.

  1. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    I just threw it in the server pbo and put at the bottom of server_functions.sqf

    Code:
    [] execVM "\z\addons\dayz_server\Carepackage\CP_Config.sqf";
     
  2. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    @zeehond yessir just an execVM line at the bottom of the server_functions.sqf
     
    Zeehond23 likes this.
  3. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    gonna give that a test now @Inkko
     
  4. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    -snip-
     
    Last edited: Aug 3, 2017
  5. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    just realized I was using the link to your first dropbox file :p
     
    Last edited: Aug 3, 2017
  6. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    You have an error, missing a ; in the clean up.

    Change
    Line 13
    Code:
    deletevehicle _remove
    to
    Code:
    deletevehicle _remove;
    The crate is spawning at ground level unfortunately there is no parachute whatsoever and the crate is just instantly on the ground.
     
  7. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    Don't have that in my drop box files I linked, I know I did in an older version so you may have gotten the wrong one again, here is the current one that I didn't have any issues with and I'll see if I can edit previous posts to have the same link.

    https://www.dropbox.com/sh/yexnx2yy3cc0brt/AAABUWyiSZBbYwM73BPQSGCja?dl=0
     
  8. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    Have the links updated in this post to the new one and I think I just linked the wrong one cause none of the older links were to the correct files...
     
  9. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    It works pretty damn good. Its definitely functional and can go on the main server. Now depending on if you're a perfectionist or not I'd say that it you could make the carepackage landing a bit more "elegant." When the parachute deletes and the crate falls to the ground the last few feet are a bit rough. I'm always willing to test this further for you if you keep going with it!
     
  10. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    You talking about the 5m teleport it makes to the ground? that can be fixed easily I just made the height check a lil high just to make sure nothing messed up.

    If it is the ungraceful 5m jump to the ground..

    in CP_DropPackage.sqf

    change

    Code:
    waituntil {((getpos _crate) select 2) < 5};
    to

    Code:
    waituntil {((getpos _crate) select 2) < 1};
     
  11. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    I went ahead and just made that change to the dropbox files, I added a new config option to turn off all RPT spam as well and added some notes to the config options as well.
     
  12. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    very nice I will do that.

    one question, if the crate is cleaned up due to time, does the marker despawn? I have found several markers that have no crate from time to time.
     
  13. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    The crate will start the timer only after a player has gotten close to it, the marker should disappear once someone is close to it instantly.
     
  14. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    and for some reason I can't take gear out of it of the crates. I cant move gear in or out of the crate. I wasn't having that problem on the test server I dont think.
     
  15. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    Then a marker with no crate means the crate is being cleaned up by server perhaps?
     
  16. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    it might be worthwhile implementing something like this

    Code:
    DZMSProtectObj = {
        private ["_object","_objectID"];
        _object = _this select 0;
       
        _objectID = str(round(random 999999));
        _object setVariable ["ObjectID", _objectID, true];
        _object setVariable ["ObjectUID", _objectID, true];
       
        if (_object isKindOf "ReammoBox") then {
            // PermaLoot on top of ObjID because that "arma logic"
            _object setVariable ["permaLoot",true];
        };
    
        if (DZMSEpoch) then {
            PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor, _object];
        } else {
            dayz_serverObjectMonitor set [count dayz_serverObjectMonitor, _object];
        };
       
        if (!((typeOf _object) in ["USVehicleBox","USLaunchersBox","AmmoBoxSmall_556","AmmoBoxSmall_762","USOrdnanceBox","USBasicWeaponsBox","USBasicAmmunitionBox","RULaunchersBox"]) || DZMSSceneryDespawnLoot) then {
            _object setVariable["DZMSCleanup",true];
        };
        true
    };
     
  17. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    If there is a marker and no crate then something happened that caused the crate to despawn. I can also implement the object protect from DZMS.
     
  18. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    I'm thinking its something in infistar preventing me from removing gear from the crate but I Can't imagine what and other players seem to be able to do it no problem.
    I can access the inventory but not remove or add anything to it. Any ideas?
     
  19. Inkko

    Inkko Valued Member!

    Joined:
    Jan 12, 2013
    Messages:
    700
    Likes Received:
    83
    No idea at all about that, I did update the files again with a new test version that has the DZMS protect and changed around a few things.
     
  20. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,258
    Likes Received:
    69
    unfortunately my test server is running a newer version of the antihack than my main server (long story) so things work on my test server, carry them over to my main server and they dont work. Frustrating
     

Share This Page