Jump to content
  • 0

Custom Vehicles and Traders


Swash

Question

So I added some vehicles to the epochconfig.hpp

    {"O_Heli_Attack_02_black_F",1},
    {"B_Heli_Light_01_armed_F",1},
    {"B_MRAP_01_hmg_F",3},
    {"I_MRAP_03_gmg_F",2},
    {"B_G_Offroad_01_armed_F",4},
    {"B_Truck_01_Repair_F",2},
    {"B_Truck_01_ammo_F",2},
    {"B_Truck_01_fuel_F",2}

They spawn perfectly fine but I can't sell them to the trader.

I've added #include "CfgEpochClient\CfgPricing.hpp" to my description.ext in the class CfgEpochClient section

class CfgEpochClient
{
    epochVersion = "0.3.4.0";

//    sapperRngChance = 100; // increase number to reduce chances and reduce to increase. Default 100 = 1% - 55% if soiled (+ 2% if in city) chance to spawn sapper
//    droneRngChance = 100; // increase number to reduce chances and reduce to increase. Default 100 = // 2% chance (+ 4% chance if in city) (1% - 2% Half if using silencer) to spawn drone if shot fired

    buildingNearbyMilitary = 1; //1 to allow building nearby
    buildingNearbyMilitaryRange = 300; //Define radius of blocked area

    buildingRequireJammer = 0; // 1 = to allow building without a jammer
    buildingCountLimit = 200; // how many objects can be built within range of a jammer
    buildingJammerRange = 75; // jammer range in meters

    EPOCH_news[] = {"Word is that Sappers have a new boss.","Dogs will often lure them monsters away.","My dog was blown up. I miss him.."};

    antagonistSpawnIndex[] = {
        {"Epoch_Cloak_F", 0}, // {"type", limit}
        {"GreatWhite_F", 2},
        {"Epoch_Sapper_F",0},
        {"Epoch_SapperB_F",0},
        {"I_UAV_01_F",4},
        {"PHANTOM",0},
        {"B_Heli_Transport_01_F",1}
    };

    customVarsDefaults[] = {
        {"Temp",98.6}, // EPOCH_player + varName, default value
        {"Hunger",5000},
        {"Thirst",2500},
        {"AliveTime",0},
        {"Energy",0},
        {"Wet",0},
        {"Soiled",0},
        {"Immunity",0},
        {"Toxicity",0},
        {"Stamina",100},
        {"Crypto",0},
        {"HitPoints",{0,0,0,0}},
        {"BloodP",100},
        {"SpawnArray",{}}
    };

    // controls max group limit and cost
    group_upgrade_lvl[] = {4,"100",6,"300",8,"500",10,"1000",12,"1500",13,"1750",14,"2000",15,"3000",16,"5000"};

    lootClasses[] = {
        { "shelfPos", "Shelf_EPOCH", true },
        { "fridgePos", "Fridge_EPOCH", true },
        { "bedPos", "Bed_EPOCH", true },
        { "couchPos", "Couch_EPOCH", true },
        { "wardrobePos", "wardrobe_epoch", true },
        { "cookerPos", "cooker_epoch", true },
        { "chairPos", { "Chair_EPOCH", "ChairRed_EPOCH" }, true },
        { "filingPos", "Filing_epoch", true },
        { "pelicanPos", "Pelican_EPOCH", true },
        { "tablePos", "Table_EPOCH", true },
        { "lockerPos", "Locker_EPOCH", true },
        { "toolRackPos", "ToolRack_EPOCH", true },
        { "shoeboxPos", "Shoebox_EPOCH", true },
        { "palletPos", "Tarp_EPOCH", true },
        { "freezerPos", "Freezer_EPOCH", true },
        { "cabinetPos", "Cabinet_EPOCH", true }
    };

    
//    Esseker map fixes
    #include "CfgEpochClient\Esseker.hpp"
    
//    Custom item pricing fixes    
    #include "CfgEpochClient\CfgPricing.hpp"

};

And I've edited CfgPricing.hpp to include the new vehicles at the end. (before the };)

   
    // Custom Vehicles
    class B_MRAP_01_hmg_F {price = 4500;};
    class I_MRAP_03_gmg_F {price = 4500;};
    class B_G_Offroad_01_armed_F {price = 3500;};
    class B_Truck_01_Repair_F {price = 4500;};
    class B_Truck_01_ammo_F {price = 5000;};
    class B_Truck_01_fuel_F {price = 5000;};
    class O_Heli_Attack_02_black_F {price = 7000;};
    class B_Heli_Light_01_armed_F {price = 6000;};


Does the database need wiped or #include "CfgEpochClient\Esseker.hpp" loaded in some other section?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Move this part

//    Custom item pricing fixes    
      #include "CfgEpochClient\CfgPricing.hpp"
    

Outside of the CfgEpochClient class like this:

Class CfgEpochClient {
...
};
// Custom item pricing fixes    
#include "CfgEpochClient\CfgPricing.hpp"

This is because this class is on its own and not a child class of any other classes.

Edited by vbawol
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...