Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
EUTW-PVP vicious

Need help with config.cpp for Custom Tents

Recommended Posts

Hello guys.

I customized the Medium. Just changed the color and i want to add some camo pattern in near future too.

I currently have the problem that the config.cpp is not working correctly for me. I have some understanding problems. Maybe you can help me out. 

 

I created for the Medium Tent 2 custom files (placed in the data folder):

  • olive_tent_medium_packed_co.paa
  • olive_tent_medium_pitched_b_co.paa

My config.cpp looks like this:

// #include "BIS_AddonInfo.hpp"
class CfgPatches
{
    class camo_tent_pack_olive
    {
        units[]={};
        weapons[]={};
        requiredVersion=0.1;
        requiredAddons[]=
        {
            "DZ_Gear_Camping",
            "DZ_Data"
        };
    };
};
class cfgVehicles
{
       class custom_olive_tent_medium :MediumTent
    {
        displayName="Medium Tent Olive";
        descriptionShort="The Medium Tent in olive camouflage color";
        scope=2;
        hiddenSelectionsTextures[]=
        {
            "data\olive_tent_medium_pitched_b_co.paa";
            "data\olive_tent_medium_packed_co.paa"
        };
    };
};

Full regular config.cpp here: https://github.com/ravmustang/DayZ_SA_ClassName_Dump/blob/master/CurrentConfigs/gear_camping/config.cpp

Im testing with the Offline Mode. 

Is it possible to replace the current colored tents? Or can i just add a variant?

Edited by tier1_vicious

Share this post


Link to post
Share on other sites

Good luck, i can't figure it out. I've tried but i'm going crasy now. If you or someone find please tell me.

I was trying to make custom tent for my paint mod but ...

Share this post


Link to post
Share on other sites
Sign in to follow this  

×