Skip to content
This repository has been archived by the owner on Aug 19, 2018. It is now read-only.

jweisner/Exile-ClaimCrates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exile-ClaimCrates

Arma 1.70 Exile 1.0.3 Lemon

This Exile server mod allows players to bulk-sell loot crates from DMS/Occupation missions.

The code is adapted from Exile-ClaimVehicles by MezzoPlays/gianni001 The method used combines the idea of TheSmoothOperator's R3F-WasteDumpOverride with this post and makes it work. I don't use R3F on my server, so I needed another method. None of this code is "mine", I just mashed it together.

NOTICE

This code is no longer maintained because I no longer have an active Arma server. It works as of the Arma/Exile/etc. components listed below. Feel free to fork this code and/or submit a pull request.

Installation

  • Make claimcrates_server.pbo using PBO Manager on the claimcrates_server folder
  • Copy claimcrates_server.pbo into @exile_server\addons on the ArmA server
  • Copy the "Custom" folder into the Exile mission.
  • Add the following overrides into CfgExileCustomCode in the mission's config.cpp (eg. mpmissions\Exile.Altis\config.cpp:
    // sell crates
    ExileClient_gui_traderDialog_updateInventoryDropdown = "Custom\ExileClient_gui_traderDialog_updateInventoryDropdown.sqf";
    ExileClient_gui_wasteDumpDialog_show = "Custom\ExileClient_gui_wasteDumpDialog_show.sqf";
  • Add the following interactions onto each crate type in CfgInteractionMenus in config.cpp:
            class ClaimCrate: ExileAbstractAction
            {
                title = "Claim Ownership";
                condition = "true";
                action = "call ExileClient_ClaimCrates_network_claimRequestSend";
            };

Example interaction code for an Exile_Container_SupplyBox:

    class SupplyBox
    {
        targetType = 2;
        target = "Exile_Container_SupplyBox";

        class Actions
        {
            class ClaimCrate: ExileAbstractAction
            {
                title = "Claim Ownership";
                condition = "true";
                action = "call ExileClient_ClaimCrates_network_claimRequestSend";
            };

            class Mount: ExileAbstractAction
            {
                title = "Mount";
                condition = "(isNull (attachedTo ExileClientInteractionObject)) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
                action = "_this call ExileClient_object_supplyBox_mount";
            };

            class Install: ExileAbstractAction
            {
                title = "Install";
                condition = "isNull (attachedTo ExileClientInteractionObject) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
                action = "_this call ExileClient_object_supplyBox_install";
            };

            class Unmount: ExileAbstractAction
            {
                title = "Unmount";
                condition = "!(isNull (attachedTo ExileClientInteractionObject)) && ((ExileClientInteractionObject getvariable ['ExileOwnerUID',1]) isEqualTo 1)";
                action = "_this call ExileClient_object_supplyBox_unmount";
            };
        };
    };

Dependencies

Tested with these Exile mods

  • Linux ArmA server
  • Exile client/server 1.0.3
  • DMS
  • Occupation
  • InfiSTAR
  • ExAd
  • Advanced Towing
  • Advanced Sling Loading
  • Advanced Rappelling
  • Advanced Urban Rappelling
  • Extended Base Mod
  • Enigma's Revive
  • Claim Vehicles

Tools

License

Apache 2.0 License

About

ArmA 3 Exile mod for claiming loot crates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages