• 0
Sign in to follow this  
Followers 0
Razor77

Radiation

Question

Hi,

Could anybody point out why my radiation zone does not work please?

I have tried several times but no loss of health, the loot spawns better and the marker shows up on the map.

 

Running Chernarus Summer, here is part of the config and mission.sqm

 

Thanks in advance Razor

Spoiler

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

            // 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 = 1;
        };

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

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

        class Radiation
        {
            enable = 1;
            
            contaminatedZones[] = 
            {
                {{1691.8, 0, 3827.28}, 60, 250}
                
            };
        };

        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[] = 
            {
                0.93,     //0
                1.89,    //1
                2.42,    //2
                3.40,     //3
                4.68,    //4
                5.10,    //5
                6.48,    //6
                7.63,    //7
                8.40,    //8
                9.66,    //9
                10.32,    //10
                11.80,    //11
                12.80,    //12
                11.32,    //13
                12.66,    //14
                11.40,     //15
                10.63,    //16
                9.48,    //17
                8.10,    //18
                7.68,    //19
                6.40,    //20
                4.42,    //21
                3.89,    //22
                1.93,     //23
                0.93     //24
            };
        
            // Temperature change in °C when it is 100% overcast
            overcast = -3;

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

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

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

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

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

        class Anomalies: Anomalies
        {
            enable = 0;
        };

        class Breathing: Breathing
        {
            enable = 1;
        };

        class Snow: Snow
        {
            enable = 0;
            surfaces[] = {};
        };

        class Radiation: Radiation
        {
            enable = 1;
            contaminatedZones[] = 
            {
                {{1691.8, 0, 3827.28}, 60, 250}
            };
        };

        class Temperature: Temperature
        {
            daytimeTemperature[] = 
            {
                0.93,     //0
                1.89,    //1
                2.42,    //2
                3.40,     //3
                4.68,    //4
                5.10,    //5
                6.48,    //6
                7.63,    //7
                8.40,    //8
                9.66,    //9
                10.32,    //10
                11.80,    //11
                12.80,    //12
                11.32,    //13
                12.66,    //14
                11.40,     //15
                10.63,    //16
                9.48,    //17
                8.10,    //18
                7.68,    //19
                6.40,    //20
                4.42,    //21
                3.89,    //22
                1.93,     //23
                0.93     //24
            };
        };
    };

Spoiler

  class Item29
    {
        dataType = "Marker";
        position[] = {1691.8, 0, 3827.28};
        name = "ExileMarker1";
        text = "Radiation Zone";
        markerType = "ELLIPSE";
        type = "ExileContaminatedZone";
        colorName = "ColorBlack";
        fillName = "Border";
        a = 250;
        b = 250;
        drawBorder = 1;
        id = 101;
        atlOffset = 0;
    };
    class Item30
    {
        dataType = "Marker";
        position[] = {1691.8, 0, 3827.28};
        name = "ExileMarker2";
        text = "Radiation";
        type = "ExileContaminatedZoneIcon";
        id = 102;
        atlOffset = 0;
    };

 

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

class Altis

hi, your not runing so why is it altis

 

edit: does anything else in environment work like temperature? lol

Edited by Crazy Mike
1 person likes this

Share this post


Link to post
Share on other sites
Advertisement
  • 0

yeah breathing works and temp, I was in god mode when i first tested it :D  but it didnt work when i disabled it

I am trying again now with different coordinates to see if that makes it work....will report back

 

and thanks for the replies guys

Share this post


Link to post
Share on other sites
  • 0

 

still get breathing and fireflies.

new coordinates and still no joy

class Radiation: Radiation
        {
            enable = 1;
            contaminatedZones[] = 
            {
                {{1692.98, 3841.42,  143.991},  110,  250}
            };
        };

Edited by Razor77

Share this post


Link to post
Share on other sites
  • 0

On Esseker, I encountered a problem where the sea level was far below the ground level on part of the map, making a radiation zone in the southern half of the map to not work. Once I expanded the radius for the radiation zone to 600m, it showed up, presumably because the ground level at that point in the map was at least 600m above sea level (even though it's not in hills/mountains - messed up map!)

So anyway, try this:

Override ExileClient_system_radiation_thread_update.sqf. 
Change this code:

_distance = (_x select 0) distance (getPosASL player);

To this code:

_distance = (_x select 0) distance2D (getPosASL player);

That makes it so the radiation zone is unlimited in height. If someone flies over that radiation zone, they will be affected. It was the only solution that let me have a radiation zone in southern Esseker.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

thanks will give that a go, im very close to giving up...spent hours trying to sort this.   Im sure I had it working on our esseker server but ive been told thats not working now.  Maybe something is blocking it.  but will try this method.  Thanks

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, BetterDeadThanZed said:

On Esseker, I encountered a problem where the sea level was far below the ground level on part of the map, making a radiation zone in the southern half of the map to not work. Once I expanded the radius for the radiation zone to 600m, it showed up, presumably because the ground level at that point in the map was at least 600m above sea level (even though it's not in hills/mountains - messed up map!)

So anyway, try this:

Override ExileClient_system_radiation_thread_update.sqf. 
Change this code:


_distance = (_x select 0) distance (getPosASL player);

To this code:


_distance = (_x select 0) distance2D (getPosASL player);

That makes it so the radiation zone is unlimited in height. If someone flies over that radiation zone, they will be affected. It was the only solution that let me have a radiation zone in southern Esseker.

did this and its working!!!!   Thank you very much, took me all day to bloody do it :D

Thank you :)

 

Share this post


Link to post
Share on other sites
  • 0
8 minutes ago, Razor77 said:

did this and its working!!!!   Thank you very much, took me all day to bloody do it :D

Thank you :)

 

No problem. What map are you running?

Share this post


Link to post
Share on other sites
  • 0

on this server I have just gone from Chernarus to Summer Chernarus.  Will try that fix on our other servers.  Thanks again you legend :) 

Share this post


Link to post
Share on other sites
Advertisement

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.