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  
Сергей161

Проблема с анимацией двери

Знающие люди, подскажите: если модель нормально работает в бульдозере (дверь как положено открывается), то сама р3д сделана правильно? Проблема в том, что в игре она не работает  - не появляется "F" . Это проблема подключения мода? Или, все же, нужно ковырять модель? 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Конфиг к ней надо прописать. Контрольные точки указать( memoryPoints ) и т.п.

Share this post


Link to post
Share on other sites
MagicByte MagicByte MagicByte
  • 0
class CfgSkeletons
{
    class Default
    {
        isDiscrete        =    1;
        skeletonInherit    =    "";
        skeletonBones[]    =    {};
    };
    class Ultima_Client_Construction_Buildable_Gate_Skeleton_8x8x0_5 : Default
    {
        SkeletonBones[]=
        {
            "component02", ""
        };
    };
};

class CfgPatches
{
    class a3_ultima_objects
    {
        units[]                =
        {
            "Ultima_Object_Constructions_Buildable_Brick_Wall_8x8x0_5m_With_Gate"                //    Кирпичная арка, 8x8x0.5м с воротами
        }
    }
}

class CfgVehicles
{
    class HouseBase;
    class House: HouseBase
    {
        class DestructionEffects;
    };
    
    class Ultima_Object_Constructions_Buildable_Brick_Wall_8x8x0_5m_With_Gate : House
    {
        author                =    "NoNameUltima";
        _generalMacro        =    "Ultima_Object_Constructions_Buildable_Brick_Wall_8x8x0_5m_With_Gate";
        scope                =    public;
        armor                =    3000;
        scopeCurator        =    2;
        displayName            =    "Кирпичная арка 8x8x0.5м с воротами";
        model                =    "\x\addons\a3_ultima_objects\objects\buildable\p3d\Ultima_Object_Constructions_Buildable_Brick_Wall_8x8x0_5m_With_Gate";
        picture                =    "\x\addons\a3_ultima_objects\objects\buildable\icons\Ultima_Object_Constructions_Buildable_Brick_Wall_4x4x0_5m_And_8x8x0_0_5m_With_Gate_Icon.paa";
        icon                =    "\x\addons\a3_ultima_objects\objects\buildable\icons\Ultima_Object_Constructions_Buildable_Brick_Wall_4x4x0_5m_And_8x8x0_0_5m_With_Gate_Icon.paa";
        editorPreview        =    "\x\addons\a3_ultima_objects\objects\buildable\icons\Ultima_Object_Constructions_Buildable_Brick_Wall_4x4x0_5m_And_8x8x0_0_5m_With_Gate_Icon.paa";
        editorCategory        =    "Ultima_CfgEditorCategories_Objects";
        editorSubcategory    =    "Ultima_CfgEditorSubcategories_Object_Constructions_Buildable";
        vehicleClass        =    "Fortifications";
        destrType            =    "DestructBuilding";
        class AnimationSources
        {
            class component02
            {
                animPeriod    =    10;
                source        =    "user";
            };
        };
        class UserActions
        {
            class OpenGate
            {
                position        =    "gate_ap";
                radius            =    3;
                condition        =    "( (this animationPhase ""component02"" < 0.1) && (this getVariable [""Ultima_Client_Boolean_Object_Constructions_Buildable_Gate_Open"", false]) )";
                statement        =    "this animate [""component02"", 1];";
                onlyforplayer    =    0;
                displayName        =    "Открыть ворота";
            };
            class CloseGate
            {
                position        =    "gate_ap";
                radius            =    3;
                condition        =    "( (this animationPhase ""component02"" > 0.9) && (this getVariable [""Ultima_Client_Boolean_Object_Constructions_Buildable_Gate_Open"", false]) )";
                statement        =    "this animate [""component02"", 0];";
                onlyforplayer    =    0;
                displayName        =    "Закрыть ворота";
            };
        };
        actionBegin1    =    "OpenGate";
        actionEnd1        =    "OpenGate";
        class DestructionEffects: DestructionEffects
        {
            class Ruin1
            {
                simulation    =    "ruin";
                type        =    "\x\addons\a3_ultima_objects\objects\wreck\p3d\Ultima_Object_Constructions_Buildable_Ruins_0_2x0_2x0_2m";
                position    =    "";
                intensity    =    1;
                interval    =    1;
                lifeTime    =    1;
            };
        };
    };
};

class CfgModels
{
    class Animations {};
    class Default
    {
        sections[]        =    {};
        sectionsInherit    =    "";
        skeletonName    =    "";
    };
    class Ultima_Object_Constructions_Buildable_Brick_Wall_8x8x0_5m_With_Gate : Default
    {
        skeletonName    =    "Ultima_Client_Construction_Buildable_Gate_Skeleton_8x8x0_5";
        sections[]        =    {};
        class Animations
        {
            class component02
            {
                type            =    "translation";
                offset0            =    0;
                offset1            =    35;
                axis            =    "gate_axis";
                memory            =    1;
                minValue        =    0;
                maxValue        =    1;
                minPhase        =    0;
                maxPhase        =    1;
                source            =    "user";
                sourceAddress    =    0;
                selection        =    "component02";
            };
        };
    };
};

С ArmA3. В DayZ убрать лишнее, и откорректировать.
 

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

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.

Поддержка