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
Demogorn

Кастомные болты к ванильному арбалету.

Пытаюсь расширить арсенал для арбалета и столкнулся с проблемой - мои болты при заряжании в арбалет становятся "пустышками", т.е. анимация заряжания происходит, тетива взводится, анимация перемещения болта в ложе ложе, но сама стрела не видна(она как бы возвращается в инвентарь. 

Если поменять класснейм кастомной стрелы на зарезервированный бегемотами 4й вид болтов все начинает работать как надо. 

Т.е. при текущем раскладе получается нельзя сделать больше 1 кастомного болта. Либо я что то упустил(

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts




  • 0

Огромное спасибо! Подсмотрел, нашел свой косяк) 

Share this post


Link to post
Share on other sites
  • 0
25.09.2023 в 20:17, Demogorn сказал:

Огромное спасибо! Подсмотрел, нашел свой косяк) 

Как решил то? 

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

Всем привет помогите) портировал арбалет, и болт к нему, арбалет встал нормально, а болт я добился что бы его было видно в игре и в инвентаря, но при зарядки в арбалет становится пустышкой как исправить?

 

class CfgPatches
{
    class MDT_Weapons_Archery_Crossbow
    {
        units[]=
        {
            ""
        };
        requiredVersion=0.1;
        requiredAddons[]=
        {
            "DZ_Data",
            "DZ_Weapons_Ammunition",
            "DZ_Weapons_Projectiles",
            "DZ_Weapons_Archery"
        };
    };
};
class Mode_Safe;
class Mode_SemiAuto;
class Mode_Single;
class Mode_Burst;
class Mode_FullAuto;
class OpticsInfoRifle;
class cfgWeapons
{
    class Crossbow;
    class MDT_Crossbow_Base: Crossbow
    {
        scope=0;
        displayName="$STR_cfgWeapons_Crossbow0";
        descriptionShort="$STR_cfgWeapons_Crossbow1";
        model="weapontest\crossbow\MDT_crossbow_mlod.p3d";
        animName="Crossbow";
        animClass="";
        rotationFlags=34;
        weight=2700;
        repairableWithKits[]={8};
        repairCosts[]={25};
        PPDOFProperties[]={1,0.1,4.5,145,6,25};
        WeaponLength=0.94;
        barrelArmor=1.7;
        itemSize[]={9,5};
        chamberSize=1;
        chamberedRound="";
        chamberableFrom[]=
        {
            "MDT_Ammo_HuntingBolt",
            "Ammo_ImprovisedBolt_1",
            "Ammo_ImprovisedBolt_2",
            "Ammo_CupidsBolt"
        };
        magazines[]={};
        DisplayMagazine=0;
        ejectType=4;
        recoilModifier[]={1,1,1};
        swayModifier[]={1.3,1.3,0.80000001};
        attachments[]=
        {
            "weaponOptics"
        };
        distanceZoomMin=30;
        distanceZoomMax=30;
        discreteDistance[]={30};
        discreteDistanceInitIndex=1;
        hiddenSelections[]=
        {
            "camo"
        };
        simpleHiddenSelections[]=
        {
            "bullet",
            "bullet2",
            "bullet3",
            "bullet4",
            "bullet5"
        };
        hiddenSelectionsTextures[]=
        {
            ""
        };
        class DamageSystem
        {
            class GlobalHealth
            {
                class Health
                {
                    hitpoints=250;
                    healthLevels[]=
                    {
                        
                        {
                            1,
                            
                            {
                                "DZ\weapons\archery\crossbow\data\crossbow.rvmat"
                            }
                        },
                        
                        {
                            0.69999999,
                            
                            {
                                "DZ\weapons\archery\crossbow\data\crossbow.rvmat"
                            }
                        },
                        
                        {
                            0.5,
                            
                            {
                                "DZ\weapons\archery\crossbow\data\crossbow_damage.rvmat"
                            }
                        },
                        
                        {
                            0.30000001,
                            
                            {
                                "DZ\weapons\archery\crossbow\data\crossbow_damage.rvmat"
                            }
                        },
                        
                        {
                            0,
                            
                            {
                                "DZ\weapons\archery\crossbow\data\crossbow_destruct.rvmat"
                            }
                        }
                    };
                };
            };
        };
        class Single: Mode_Single
        {
            soundSetShot[]=
            {
                "Crossbow_Shot_SoundSet",
                "Crossbow_InteriorTail_SoundSet"
            };
            reloadTime=5.3333001;
            recoil="recoil_crossbow";
            recoilProne="recoil_crossbow";
            dispersion=0.00075000001;
            magazineSlot="";
        };
        class NoiseShoot
        {
            strength=2;
            type="shot";
        };
        class OpticsInfo: OpticsInfoRifle
        {
            memoryPointCamera="eye";
            discreteDistance[]={25,50,75};
            discreteDistanceInitIndex=0;
            discreteDistanceClampOpticsMax=100;
            modelOptics="-";
            distanceZoomMin=25;
            distanceZoomMax=25;
        };
        class InventorySlotsOffsets
        {
            class Shoulder
            {
                position[]={0,0.07,-0.050000001};
                orientation[]={0,-80,0};
            };
            class Melee
            {
                position[]={0,0.1,0.029999999};
                orientation[]={0,80,0};
            };
        };
        weaponStateAnim="dz\anims\anm\player\reloads\Crossbow\w_crossbow_states.anm";
        boneRemap[]=
        {
            "bullet",
            "Weapon_Bullet",
            "trigger",
            "Weapon_Trigger",
            "chord",
            "Weapon_Bone_01",
            "shutter",
            "Weapon_Bolt"
        };
    };
    class MDT_Crossbow_Autumn: MDT_Crossbow_Base
    {
        scope=2;
        hiddenSelectionsTextures[]=
        {
            "weapontest\crossbow\MDT_crossbow_autumn_co.paa"
        };
    };
};
class CfgMagazines
{
    class Ammunition_Base;
    class MDT_Ammo_HuntingBolt: Ammunition_Base
    {
        scope=2;
        displayName="$STR_CfgMagazines_Ammo_HuntingBolt0";
        descriptionShort="$STR_CfgMagazines_Ammo_HuntingBolt1";
        model="weapontest\bolt\MDT_bolt_biggame.p3d";
        rotationFlags=34;
        weight=35;
        itemSize[]={4,1};
        count=5;
        ammo="MDT_Bullet_HuntingBolt";
        emptySound="empty_arrows";
        class DamageSystem
        {
            class GlobalHealth
            {
                class Health
                {
                    hitpoints=120;
                    healthLevels[]=
                    {
                        
                        {
                            1,
                            
                            {
                                ""
                            }
                        },
                        
                        {
                            0.69999999,
                            
                            {
                                ""
                            }
                        },
                        
                        {
                            0.5,
                            
                            {
                                ""
                            }
                        },
                        
                        {
                            0.30000001,
                            
                            {
                                ""
                            }
                        },
                        
                        {
                            0,
                            
                            {
                                ""
                            }
                        }
                    };
                };
            };
        };
    };
};
class cfgAmmoTypes
{
    class AType_MDT_Bullet_HuntingBolt
    {
        name="MDT_Bullet_HuntingBolt";
    };
};
class CfgAmmo
{
    class Bolt_Base;
    class MDT_Bullet_HuntingBolt: Bolt_Base
    {
        scope=1;
        model="weapontest\bolt\MDT_bolt_biggame.p3d";
        proxyShape="weapontest\bolt\MDT_bolt_biggame.p3d";
        simulation="shotArrow";
        hit=12;
        indirectHit=0;
        indirectHitRange=0;
        casing="";
        round="FxRound_HuntingBolt";
        deflecting=25;
        dispersion=0.0015;
        initSpeed=105;
        typicalSpeed=105;
        caliber=3.0999999;
        airFriction=-0.0013;
        weight=0.029999999;
        impactBehaviour=1;
        hitAnimation=1;
        unconRefillModifier=4;
        spawnPileType="MDT_Ammo_HuntingBolt";
        dmgPerUse=0.090000004;
        class DamageApplied
        {
            type="Projectile";
            dispersion=0;
            bleedThreshold=0;
            defaultDamageOverride[]=
            {
                {0.98000002,0.95999998},
                {0.96100003,0.95999998},
                {0.935,0.92500001},
                {0.90499997,0.70999998},
                {0.87,0.56}
            };
            class Health
            {
                damage=125;
            };
            class Blood
            {
                damage=100;
            };
            class Shock
            {
                damage=95;
            };
        };
    };
};
class CfgVehicles
{
    class FxRound;
    class FxRound_Bullet_HuntingBolt: FxRound
    {
        model="weapontest\bolt\MDT_bolt_biggame.p3d";
    };
};

 

Edited by 123new
вставка кода в спец тег (see edit history)

Share this post


Link to post
Share on other sites
  • 0

Решил проблему, конфиг чутка неправильно сделал

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

×
×
  • 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.