TheOperator

[Release] R3F-Waste Dump Override

8 posts in this topic

Hello everyone,

This is my first real release on the Exile forums. Be gentle.

This is a simple override that can be used in conjunction with R3F-Logistics. Instead of players having to unload and drop those mission crates all over your tradezones, they can simple walk up to the wastedump trader and sell them.

https://github.com/TheSmoothOperator/R3F-WasteDumpOverride

Very simple script setup. Just look over the readme.

 

Operator

6 people like this

Share this post


Link to post
Share on other sites

nvm my mistake i disabled the load cargo into Veh some time ago and thought this was load cargo into back of veh lol, everything works thanks.

Edited by KillingRe

Share this post


Link to post
Share on other sites
Advertisement

A quick question.

When players go to sell the crate from the vehicle it teleport's the vehicle to the corner of the map. I have been trying to figure out what its causing it. any ideas? 

edit* turns out it is infistar v71

 

Edited by YetiBlood

Share this post


Link to post
Share on other sites

The better solution is to use that's ;)  You can sell the crate at waste dump or trader :)  [ R3F is required ]

class CfgExileCustomCode:

Spoiler

    ExileClient_gui_traderDialog_updateInventoryDropdown = "custom\overwrites\ExileClient_gui_traderDialog_updateInventoryDropdown.sqf";
    ExileClient_gui_wasteDumpDialog_show = "custom\overwrites\ExileClient_gui_wasteDumpDialog_show.sqf";

ExileClient_gui_traderDialog_updateInventoryDropdown:

Spoiler

/**
 * ExileClient_gui_traderDialog_updateInventoryDropdown
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_dialog","_inventoryDropdown","_index","_nearVehicles"];
disableSerialization;
_dialog = uiNameSpace getVariable ["RscExileTraderDialog", displayNull];
_inventoryDropdown = _dialog displayCtrl 4004;
lbClear _inventoryDropdown;
_index = _inventoryDropdown lbAdd "Equipment";
_inventoryDropdown lbSetValue [_index, 1];
_inventoryDropdown lbSetPicture [_index, "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\face_ca.paa"];
_inventoryDropdown lbSetCurSel 0;
if !((uniform player) isEqualTo "") then
{
    _index = _inventoryDropdown lbAdd "Uniform";
    _inventoryDropdown lbSetPicture [_index, "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\uniform_ca.paa"];
    _inventoryDropdown lbSetValue [_index, 2];
};
if !((vest player) isEqualTo "") then
{
    _index = _inventoryDropdown lbAdd "Vest";
    _inventoryDropdown lbSetPicture [_index, "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\vest_ca.paa"];
    _inventoryDropdown lbSetValue [_index, 3];
};
if !((backpack player) isEqualTo "") then
{
    _index = _inventoryDropdown lbAdd "Backpack";
    _inventoryDropdown lbSetPicture [_index, "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\backpack_ca.paa"];
    _inventoryDropdown lbSetValue [_index, 4];
};
_nearVehicles = nearestObjects [player, ["LandVehicle", "Air", "Ship", "Box_NATO_WpsSpecial_F", "Box_NATO_Ammo_F", "Box_NATO_Uniforms_F", "Box_East_Wps_F", "Box_IND_Support_F", "Box_East_Support_F", "Land_CargoBox_V1_F", "Box_IND_Wps_F", "Box_FIA_Ammo_F",
                                        "CargoNet_01_box_F", "Box_Syndicate_Wps_F", "Box_NATO_AmmoVeh_F", "B_supplyCrate_F", "Box_NATO_Wps_F", "C_supplyCrate_F", "C_T_supplyCrate_F", "IG_supplyCrate_F", "Box_IND_AmmoVeh_F", "I_SupplyCrate_F", "Box_FIA_Wps_F",
                                        "Box_Syndicate_Ammo_F", "Box_Syndicate_WpsLaunch_F", "Box_IED_Exp_F", "Box_NATO_Equip_F", "Box_GEN_Equip_F", "Box_AAF_Equip_F", "Box_CSAT_Equip_F", "Box_AAF_Uniforms_F", "Box_CSAT_Uniforms_F", "Box_FIA_Support_F",
                                        "Box_T_East_Ammo_F", "Box_T_East_Wps_F", "Box_T_East_WpsSpecial_F", "Box_T_NATO_Wps_F", "Box_T_NATO_WpsSpecial_F", "Box_NATO_AmmoOrd_F", "Box_NATO_Grenades_F", "Box_NATO_Support_F", "Box_IND_WpsLaunch_F",
                                        "Box_NATO_WpsLaunch_F", "Box_East_AmmoVeh_F", "Box_IND_WpsSpecial_F", "Land_Box_AmmoOld_F", "O_supplyCrate_F", "I_supplyCrate_F", "B_CargoNet_01_ammo_F", "O_CargoNet_01_ammo_F", "I_CargoNet_01_ammo_F",
                                        "Land_MetalCase_01_large_F", "Land_MetalCase_01_small_F", "Box_East_Grenades_F", "Box_IND_Grenades_F", "Box_East_Ammo_F", "Box_IND_Ammo_F", "Box_East_AmmoOrd_F", "Box_IND_AmmoOrd_F", "Box_East_WpsLaunch_F"], 80];
{
    if (local _x) then
    {
        if (alive _x) then
        {
            _index = _inventoryDropdown lbAdd getText(configFile >> "CfgVehicles" >> (typeOf _x) >> "displayName");
            _inventoryDropdown lbSetData [_index, netId _x];
            _inventoryDropdown lbSetValue [_index, 5];
        };
    };
}
forEach _nearVehicles;
true

 

ExileClient_gui_wasteDumpDialog_show:

Spoiler

/**
 * ExileClient_gui_wasteDumpDialog_show
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_nearVehicles","_localVehicles","_display","_revenue","_sellButton","_dropdown","_vehicleObject","_vehicleName","_index"];
disableSerialization;
_nearVehicles = nearestObjects [player, ["LandVehicle", "Air", "Ship", "Box_NATO_WpsSpecial_F", "Box_NATO_Ammo_F", "Box_NATO_Uniforms_F", "Box_East_Wps_F", "Box_IND_Support_F", "Box_East_Support_F", "Land_CargoBox_V1_F", "Box_IND_Wps_F", "Box_FIA_Ammo_F",
                                        "CargoNet_01_box_F", "Box_Syndicate_Wps_F", "Box_NATO_AmmoVeh_F", "B_supplyCrate_F", "Box_NATO_Wps_F", "C_supplyCrate_F", "C_T_supplyCrate_F", "IG_supplyCrate_F", "Box_IND_AmmoVeh_F", "I_SupplyCrate_F", "Box_FIA_Wps_F",
                                        "Box_Syndicate_Ammo_F", "Box_Syndicate_WpsLaunch_F", "Box_IED_Exp_F", "Box_NATO_Equip_F", "Box_GEN_Equip_F", "Box_AAF_Equip_F", "Box_CSAT_Equip_F", "Box_AAF_Uniforms_F", "Box_CSAT_Uniforms_F", "Box_FIA_Support_F",
                                        "Box_T_East_Ammo_F", "Box_T_East_Wps_F", "Box_T_East_WpsSpecial_F", "Box_T_NATO_Wps_F", "Box_T_NATO_WpsSpecial_F", "Box_NATO_AmmoOrd_F", "Box_NATO_Grenades_F", "Box_NATO_Support_F", "Box_IND_WpsLaunch_F",
                                        "Box_NATO_WpsLaunch_F", "Box_East_AmmoVeh_F", "Box_IND_WpsSpecial_F", "Land_Box_AmmoOld_F", "O_supplyCrate_F", "I_supplyCrate_F", "B_CargoNet_01_ammo_F", "O_CargoNet_01_ammo_F", "I_CargoNet_01_ammo_F",
                                        "Land_MetalCase_01_large_F", "Land_MetalCase_01_small_F", "Box_East_Grenades_F", "Box_IND_Grenades_F", "Box_East_Ammo_F", "Box_IND_Ammo_F", "Box_East_AmmoOrd_F", "Box_IND_AmmoOrd_F", "Box_East_WpsLaunch_F"], 150];
_localVehicles = [];
{
    if (local _x) then
    {
        if (alive _x) then
        {
            _localVehicles pushBack _x;
        };
    };
}
forEach _nearVehicles;
if (_localVehicles isEqualTo []) exitWith
{
    ["ErrorTitleAndText", ["Whoops!", "Park within 50m and get in as driver first."]] call ExileClient_gui_toaster_addTemplateToast;
};
ExileClientCurrentTrader = _this;
createDialog "RscExileWasteDumpDialog";
waitUntil { !isNull findDisplay 24011 };
_display = uiNameSpace getVariable ["RscExileWasteDumpDialog", displayNull];
_revenue = _display displayCtrl 4001;
_revenue ctrlSetStructuredText (parseText "<t size='1.4'>0<img image='\exile_assets\texture\ui\poptab_notification_ca.paa' size='1' shadow='true' /></t>");
_sellButton = _display displayCtrl 4000;
_sellButton ctrlEnable false;
_dropdown = _display displayCtrl 4002;
lbClear _dropdown;
{
    _vehicleObject = _x;
    _vehicleName = getText(configFile >> "CfgVehicles" >> (typeOf _vehicleObject) >> "displayName");
    _index = _dropdown lbAdd (format ["Cargo: %1", _vehicleName]);
    _dropdown lbSetData [_index, netId _vehicleObject];
    _dropdown lbSetValue [_index, 1];
    _index = _dropdown lbAdd (format ["Vehicle + Cargo: %1", _vehicleName]);
    _dropdown lbSetData [_index, netId _vehicleObject];
    _dropdown lbSetValue [_index, 2];
}
forEach _localVehicles;
true call ExileClient_gui_postProcessing_toggleDialogBackgroundBlur;
true

 

Enjoy!

1 person likes this

Share this post


Link to post
Share on other sites
6 hours ago, YetiBlood said:

A quick question.

When players go to sell the crate from the vehicle it teleport's the vehicle to the corner of the map. I have been trying to figure out what its causing it. any ideas? 

edit* turns out it is infistar v71

 

Yes there is such problem. Too I can't solve this problem. This question needs to be asked at

infiSTAR

http://www.exilemod.com/forum/103-anti-hack/

Share this post


Link to post
Share on other sites

In the Update you will be able to disable my wasteDumpTrader checks to make this addon work again by putting

/*
    server side check for the famous "wastedump dupe" as well as client side cooldown
*/
fix_wastedump_dupe = "false";

1 person likes this

Share this post


Link to post
Share on other sites

Sells boxes with transport. Help how to be?

 

Edited by ROFI492

Share this post


Link to post
Share on other sites
18 hours ago, ROFI492 said:

Sells boxes with transport. Help how to be?

 

infiSTAR  v0072

/*
    server side check for the famous "wastedump dupe" as well as client side cooldown
*/
fix_wastedump_dupe = "false";

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.