• 0
ka0s

[SOLVED] class Altis - class Namalsk: Altis, clarification?

Question

Hi Devs. 

I may be a dummy here, just having a look and processing the setup of Namalsk, however I stumbled upon this in config.cpp within the mission file: 

Spoiler

    class Altis 
    {
        class FireFlies
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // At this hour fire flies begin to spawn
            startHour = 18;

            // At this hour fire flies stop spawning
            endHour = 4;
        };

        class Anomalies
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // At this hour anomalies begin to spawn
            startHour = 19;

            // At this hour anomalies stop spawning
            endHour = 6;
        };

        class Breathing
        {
            // 1 = enabled, 0 = disabled
            enable = 0;
        };

        class Snow
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            // https://community.bistudio.com/wiki/surfaceType
            surfaces[] = {};
        };

        class Radiation 
        {
            // 1 = enabled, 0 = disabled
            enable = 0;

            /*
                Defines contaminated zones in a specific map. 
                You can define multiple zones per map. The format
                of the zones is:

                [Position ASL(!), Full Radiation Radius, Maximum Radius]

                The radius works as follows:

                |-------------------------------------------------------|
                                    Maximum Radius
                
                |------------------------|
                  Full Radiation Radius   

                Within the full radiation radius, radiation factor is
                always at a maximum. Outside of this, it lowers down
                to no radiation smoothly.

                Radiation:

                |------------------------|------------------------------|
                1        1      1        1     0.75    0.5     0.25    0
            */
            contaminatedZones[] = {};
        };

        class Temperature
        {
            // Temperature in °C for the time of day, per hour
            // Add the first index to the last index, so it is 25 indizes!
            daytimeTemperature[] = {15.93,16.89,18.42,20.40,22.68,25.10,27.48,29.63,31.40,32.66,33.32,33.80,33.80,33.32,32.66,31.40,29.63,27.48,25.10,22.68,20.40,18.42,16.89,15.93,15.93};
        
            // Temperature change in °C when it is 100% overcast
            overcast = -3;

            // Temperature change in °C when it is 100% raining
            rain = -5;

            // Temperature change in °C when it is 100% windy
            wind = -8;

            // Temperature change per 100m altitude in °C
            altitude = -0.8;

            // Difference from the daytime temperature to the water temperature
            water = -5;
        };
    };

    class Namalsk: Altis 
    {
        class FireFlies: FireFlies
        {
            enable = 1;
        };

        class Anomalies: Anomalies
        {
            enable = 1;
        };

        class Breathing: Breathing
        {
            enable = 1;
        };

        class Snow: Snow
        {
            enable = 1;
            surfaces[] = {"#nam_snow"};
        };

        class Radiation: Radiation
        {
            enable = 1;
            contaminatedZones[] = 
            {
                {{3960.14,    8454.75,    152.862},     80,     140},    // Object A1
                {{4974.70,    6632.82,    4.74293},     40,     150},    // Object A2
                {{6487.92,    9302.03,    36.0014},     60,     110}    // Sebjan Chemical Factory
            };
        };

        class Temperature: Temperature
        {
            daytimeTemperature[] = {-2.00,-1.77,-1.12,-0.10,1.24,2.78,4.40,6.00,7.46,8.65,9.50,9.90,9.90,9.50,8.65,7.46,6.00,4.40,2.78,1.24,-0.10,-1.12,-1.77,-2.00,-2.00};
        };
    };
};

class Altis, Class Namalsk: Altis, what's that supposed to mean? I figure that it's supported on both maps, but it's kinda confusing this "class Namalsk: Altis"? I reckon that I should edit class Namalsk: Altis for the Namalsk map settings? 

Thanks for the awesome release, been F5'in' the page the entire day! :rock:

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

This means that the settings of Namalsk inherit the ones of Altis. As we are lazy, we only overwrite the things that differ :)

2 people like this

Share this post


Link to post
Share on other sites
  • 0

We have closed this thread and marked it as solved.

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.