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  
Helite

"C" encountered instead of "{" Config Error

Recommended Posts

I am having a problem writing config for a new model22-02-2021_124702.png

enum {
    DESTRUCTENGINE = 2,
    DESTRUCTDEFAULT = 6,
    DESTRUCTWRECK = 7,
    DESTRUCTTREE = 3,
    DESTRUCTTENT = 4,
    DESTRUCTNO = 0,
    DESTRUCTMAN = 5,
    DESTRUCTBUILDING = 1,
};

class CfgPatches {
    class DZ_Characters_Vests {
        units[] = {"TacticalVest", "UKAssVest"};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"DZ_Characters"};
    };
};

class CfgVehicles {
    class Clothing_Base;    // External class reference
    class PlateCarrierVest
    
    class PlateCarrierVest_Ahegao : PlateCarrierVest {
        scope = 2;
        displayName = "$STR_CfgVehicles_PlateCarrierBlank0";
        descriptionShort = "$STR_CfgVehicles_PlateCarrierBlank1";
        model = "\DZ\characters\vests\plate_carrier_g.p3d";
        inventorySlot[] = {"Vest"};
        itemInfo[] = {"Clothing", "Vest"};
        attachments[] = {"VestHolster", "VestPouch", "VestGrenadeA", "VestGrenadeB", "VestGrenadeC", "VestGrenadeD"};
        weight = 12000;
        itemSize[] = {4, 4};
        varWetMax = 0.49;
        heatIsolation = 0.8;
        repairableWithKits[] = {3};
        repairCosts[] = {25.0};
    
        class ClothingTypes {
            male = "\DZ\characters\vests\plate_carrier_m.p3d";
            female = "\DZ\characters\vests\plate_carrier_f.p3d";
        };
        
        class DamageSystem {
            class GlobalHealth {
                class Health {
                    hitpoints = 100;
                    healthLevels[] = {{1.0, {"DZ\characters\vests\Data\BallisticVest.rvmat"}}, {0.7, {"DZ\characters\vests\Data\BallisticVest.rvmat"}}, {0.5, {"DZ\characters\vests\Data\BallisticVest_damage.rvmat"}}, {0.3, {"DZ\characters\vests\Data\BallisticVest_damage.rvmat"}}, {0.0, {"DZ\characters\vests\Data\BallisticVest_destruct.rvmat"}}};
                };
            };
            
            class GlobalArmor {
                class Projectile {
                    class Health {
                        damage = 0.5;
                    };
                    
                    class Blood {
                        damage = 0;
                    };
                    
                    class Shock {
                        damage = 0.26;
                    };
                };
                
                class Melee {
                    class Health {
                        damage = 0.25;
                    };
                    
                    class Blood {
                        damage = 0.0;
                    };
                    
                    class Shock {
                        damage = 0.25;
                    };
                };
                
                class Infected {
                    class Health {
                        damage = 0.25;
                    };
                    
                    class Blood {
                        damage = 0.0;
                    };
                    
                    class Shock {
                        damage = 0.25;
                    };
                };
                
                class FragGrenade {
                    class Health {
                        damage = 0.5;
                    };
                    
                    class Blood {
                        damage = 0;
                    };
                    
                    class Shock {
                        damage = 0.26;
                    };
                };
            };
        };
        
        class AnimEvents {
            class SoundWeapon {
                class pickUpItem {
                    soundSet = "SmershVest_pickup_SoundSet";
                    id = 797;
                };
                
                class drop {
                    soundset = "SmershVest_drop_SoundSet";
                    id = 898;
                };
            };
        };
    };

    class Ahegao : PlateCarrierVest_Ahegao {
        scope = 2;
        displayName = "vest_ahegao";
        visibilityModifier = 0.95;
        hiddenSelectionsTextures[] = {"plate_anime\data\ahegao_plate.paa", "plate_anime\data\ahegao_plate.paa", "plate_anime\data\ahegao_plate.paa"};
    };
};
    

Edited by Helite

Share this post


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

×