Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Sign in to follow this  
DrZiLLo

Палатка-сохранение лута

Добрый день, где можно найти скрипт-по которму, при разрушении палаток, скидывается весь лут, который лежал внутри. В конфиге с палаткой нашёл только это
 

class LargeTent : TentBase {
        scope = public;
        displayName = "$STR_CfgVehicles_LargeTent0";
        descriptionShort = "$STR_CfgVehicles_LargeTent1";
        model = "\DZ\gear\camping\LargeTent.p3d";
        bounding = "BSphere";
        overrideDrawArea = 3.0;
        forceFarBubble = "true";
        slopeTolerance = 0.3;
        yawPitchRollLimit[] = {12, 12, 12};
        hiddenSelections[] = {"entrancec", "camo", "bags", "xlights_glass_r", "xlights_glass_g", "xlights_glass_b", "xlights_glass_y"};
        hiddenSelectionsTextures[] = {"dz\gear\camping\data\tent_door_co.paa", "", "dz\gear\camping\data\bagpack_co.paa"};
        hiddenSelectionsMaterials[] = {"dz\gear\camping\data\tent_door.rvmat", "dz\gear\camping\data\large_tent.rvmat", "dz\gear\camping\data\bagpack.rvmat"};
        openable = 0;
        carveNavmesh = 1;
        weight = 20000;
        itemSize[] = {10, 4};
        itemsCargoSize[] = {10, 40};
        itemBehaviour = 0;
        lootCategory = "Tents";
        placement = "ForceSlopeOnTerrain";
        physLayer = "item_large";
        repairableWithKits[] = {5, 2};
        repairCosts[] = {30.0, 25.0};
        attachments[] = {"CamoNet", "Lights"};
        minPlacingDist = 10;
        rotationFlags = 2;
        
        class DamageSystem {
            class GlobalHealth {
                class Health {
                    hitpoints = 2000;
                    healthLevels[] = {{1.0, {""}}, {0.7, {""}}, {0.5, {""}}, {0.3, {""}}, {0.0, {""}}};
                };
            };
            
            class GlobalArmor {
                class Projectile {
                    class Health {
                        damage = 0.05;
                    };
                };
                
                class Melee {
                    class Health {
                        damage = 0.3;
                    };
                };
                
                class FragGrenade {
                    class Health {
                        damage = 8;
                    };
                };
            };
            
            class DamageZones {
                class Body {
                    class Health {
                        hitpoints = 2000;
                        transferToGlobalCoef = 0.5;
                        healthLevels[] = {{1.0, {"dz\gear\camping\Data\tent_pristine_co.paa", "DZ\gear\camping\data\bagpack.rvmat"}}, {0.7, {"dz\gear\camping\data\tent_worn_co.paa", "DZ\gear\camping\data\bagpack.rvmat"}}, {0.5, {"dz\gear\camping\data\tent_damage_co.paa", "DZ\gear\camping\data\bagpack_damage.rvmat"}}, {0.3, {"dz\gear\camping\data\tent_destruct_co.paa", "DZ\gear\camping\data\bagpack_damage.rvmat"}}, {0.0, {"dz\gear\camping\data\tent_destruct_co.paa", "DZ\gear\camping\data\bagpack_destruct.rvmat"}}};
                    };
                    
                    class ArmorType {
                        class Projectile {
                            class Health {
                                damage = 0.05;
                            };
                        };
                        
                        class Melee {
                            class Health {
                                damage = 0.3;
                            };
                        };
                        
                        class FragGrenade {
                            class Health {
                                damage = 8;
                            };
                        };
                    };
                    componentNames[] = {"body"};
                    transferToZonesNames[] = {"Inventory"};
                    transferToZonesCoefs[] = {1.0};
                    fatalInjuryCoef = -1;
                };
                
                class Inventory {
                    class Health {
                        hitpoints = 2000;
                        transferToGlobalCoef = 0.5;
                        healthLevels[] = {{1.0, {"DZ\gear\camping\data\bagpack.rvmat"}}, {0.7, {"DZ\gear\camping\data\bagpack.rvmat"}}, {0.5, {"DZ\gear\camping\data\bagpack_damage.rvmat"}}, {0.3, {"DZ\gear\camping\data\bagpack_damage.rvmat"}}, {0.0, {"DZ\gear\camping\data\bagpack_destruct.rvmat"}}};
                    };
                    
                    class ArmorType {
                        class Projectile {
                            class Health {
                                damage = 0.05;
                            };
                        };
                        
                        class Melee {
                            class Health {
                                damage = 0.3;
                            };
                        };
                        
                        class FragGrenade {
                            class Health {
                                damage = 8;
                            };
                        };
                    };
                    componentNames[] = {"inventory"};
                    transferToZonesNames[] = {"Body", "Entrance", "Window1", "Window2", "Window3", "Window4", "Window5", "Window6", "Window7"};
                    transferToZonesCoefs[] = {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0};
                    fatalInjuryCoef = -1;
                };
                
                class Entrance {
                    class Health {
                        hitpoints = 2000;
                        transferToGlobalCoef = 0;
                        healthLevels[] = {{1.0, {"DZ\gear\camping\data\tent_door.rvmat", "DZ\gear\camping\data\tent_pristine_co.paa"}}, {0.7, {"DZ\gear\camping\data\tent_door.rvmat", "DZ\gear\camping\data\tent_worn_co.paa"}}, {0.5, {"DZ\gear\camping\data\tent_door_damage.rvmat", "DZ\gear\camping\data\tent_damage_co.paa"}}, {0.3, {"DZ\gear\camping\data\tent_door_damage.rvmat", "DZ\gear\camping\data\tent_destruct_co.paa"}}, {0.0, {"DZ\gear\camping\data\tent_door.rvmat", "DZ\gear\camping\data\tent_ruined_ca.paa"}}};
                    };
                    
                    class ArmorType {
                        class Projectile {
                            class Health {
                                damage = 1.0;
                            };
                        };
                        
                        class Melee {
                            class Health {
                                damage = 5.0;
                            };
                        };
                        
                        class FragGrenade {
                            class Health {
                                damage = 40;
                            };
                        };
                    };
                    displayName = "$STR_CfgVehicles_Tent_Entrance0";
                    componentNames[] = {"entranceo", "entrancec"};
                    fatalInjuryCoef = -1;
                };
                
                class Window_Base {
                    class Health {
                        hitpoints = 2000;
                        transferToGlobalCoef = 0;
                        healthLevels[] = {{1.0, {"DZ\gear\camping\data\tent_pristine_co.paa"}}, {0.7, {"DZ\gear\camping\data\tent_worn_co.paa"}}, {0.5, {"DZ\gear\camping\data\tent_damage_co.paa"}}, {0.3, {"DZ\gear\camping\data\tent_destruct_co.paa"}}, {0.0, {"DZ\gear\camping\data\tent_ruined_ca.paa"}}};
                    };
                    
                    class ArmorType {
                        class Projectile {
                            class Health {
                                damage = 1.0;
                            };
                        };
                        
                        class Melee {
                            class Health {
                                damage = 5.0;
                            };
                        };
                        
                        class FragGrenade {
                            class Health {
                                damage = 40;
                            };
                        };
                    };
                    displayName = "$STR_CfgVehicles_LargeTent_Window0";
                    componentNames[] = {""};
                    fatalInjuryCoef = -1;
                };
                
                class Window1 : Window_Base {
                    componentNames[] = {"window1o", "window1c"};
                };
                
                class Window2 : Window_Base {
                    componentNames[] = {"window2o", "window2c"};
                };
                
                class Window3 : Window_Base {
                    componentNames[] = {"window3o", "window3c"};
                };
                
                class Window4 : Window_Base {
                    componentNames[] = {"window4o", "window4c"};
                };
                
                class Window5 : Window_Base {
                    componentNames[] = {"window5o", "window5c"};
                };
                
                class Window6 : Window_Base {
                    componentNames[] = {"window6o", "window6c"};
                };
                
                class Window7 : Window_Base {
                    componentNames[] = {"window7o", "window7c"};
                };
            };
        };
        
        class PointLights {
            class PointLight {
                color[] = {1.0, 1.0, 1.0, 0.05};
                ambient[] = {0.01, 0.01, 0.01, 0.01};
                position = "light";
                hitpoint = "bulb";
                selection = "bulb";
                size = 0;
                radius = 5;
                brightness = 0.001;
                dayLight = 1;
                heatHazeRadius = 0.0;
                heatHazePower = 0.0;
                fireEffect = 0;
                fireEffectOctaves = 0;
                fireEffectPersistence = 0;
                fireEffectFract = 0;
            };
        };
        
        class GUIInventoryAttachmentsProps {
            class Attachments {
                name = "$STR_attachment_accessories";
                description = "";
                attachmentSlots[] = {"CamoNet", "Lights"};
                icon = "set:dayz_inventory image:cat_fp_tents";
                view_index = 1;
            };
        };
        
        class AnimationSources {
            class Body {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class CamoNet {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Inventory {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class EntranceO {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class EntranceC {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window1O {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window2O {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window3O {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window4O {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window5O {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window6O {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window7O {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window1C {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window2C {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window3C {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window4C {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window5C {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window6C {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Window7C {
                source = "user";
                animPeriod = 0.01;
                initPhase = 1;
            };
            
            class Xlights {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
            
            class Xlights_glass_r {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
            
            class Xlights_glass_g {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
            
            class Xlights_glass_b {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
            
            class Xlights_glass_y {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
            
            class Cord_folded {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
            
            class Cord_plugged {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
            
            class Pack {
                source = "user";
                initPhase = 1;
                animPeriod = 0.01;
            };
        };
        
        class AnimEvents {
            class SoundWeapon {
                class movement_walk {
                    soundSet = "mediumtent_movement_walk_SoundSet";
                    id = 1;
                };
                
                class movement_run {
                    soundSet = "mediumtent_movement_run_SoundSet";
                    id = 3;
                };
                
                class movement_sprint {
                    soundSet = "mediumtent_movement_sprint_SoundSet";
                    id = 5;
                };
                
                class pickUpItem_Light {
                    soundSet = "pickUpTentLight_SoundSet";
                    id = 796;
                };
                
                class pickUpItem {
                    soundSet = "pickUpTent_SoundSet";
                    id = 797;
                };
                
                class mediumtent_drop {
                    soundset = "mediumtent_drop_SoundSet";
                    id = 898;
                };
            };
        };
    };

 

Edited by 123new
вставка кода в обязательный тег для его вставки (see edit history)

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts








  • 0

Ты смотришь конфиг а надо скрипт.

Share this post


Link to post
Share on other sites
  • 0
9 часов назад, Venom21 сказал:

Ты смотришь конфиг а надо скрипт.

Ну а где этот скрипт ? В файлах игры я не могу ничего связанное с палатками найти

Share this post


Link to post
Share on other sites
  • 0
15.06.2021 в 09:46, BorizzK сказал:

10590464_.png.5af24541f3ac3c23bda1364d97fa45d0.png535420980_.png.1da6752e01d70e3e8ccd72170847f073.png

1660828273_.png.d2af4e28749f23cd4b2a8fe1366b5792.png

спасибо большое )

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.