Jump to content
  • 0

Anti-Radiation Skin


lucho

Question

8 answers to this question

Recommended Posts

  • 0
23 minutes ago, raymix said:

It's not a skin, it's a radiation code itself that can be adjusted. You simply attach code for extra check - if player has certain skin applied then simply reduce damage given.

 

Here is my code can you help me with this pls?

 

 

 

Quote

    class Sensors
    {
        items=1;
        class Item0
        {
   position[]={12505.5,0.00120354,14290.2};
    a=100;
    b=100;
    activationBy="WEST";
    repeating=1;
    interruptable=1;
    age="UNKNOWN";
    name="radzone";
    expCond="(player distance radzone) < 400;";
    expActiv="TitleText[""Your Geiger counter starts making noise..."",""PLAIN DOWN""]; DZE_Quarantine = true;";
    expDesactiv="TitleText[""Your Geiger counter is now silent."",""PLAIN DOWN""]; DZE_Quarantine = false;";
    class Effects
    {
    };
};
    };
};

 

 

 

Link to comment
Share on other sites

  • 0

Hey, no that's just a configuration file, however it gives you a clue - boolean variable is switched on or off named DZE_Quarantine.

What this now tells us is that there's an endless loop running somewhere that will enable or disable damage on player. Basically you'll need to find this script and modify it. However, something tells me you're not very familiar with scripting :)

edit: oh yeah, found this old thread, might be something you are looking for.

Edited by raymix
Link to comment
Share on other sites

  • 0

You can't compare string from typeOf to an array using ==

You can check if string exists inside an array using in

fruits = ["apple","banana","oranges"];
notAFruit = if ("oranges" in fruits) then {true} else {false};

Also, lucho, did you actually add skin names or just copied the code directly? Cuz that array olga gave you consists of 3 empty strings which you are suppose to fill in :)

Link to comment
Share on other sites

  • 0
28 minutes ago, raymix said:

You can't compare string from typeOf to an array using ==

You can check if string exists inside an array using in


fruits = ["apple","banana","oranges"];
notAFruit = if ("oranges" in fruits) then {true} else {false};

Also, lucho, did you actually add skin names


1. TEST 

if (typeOf player == "Survivor2_DZ") then {
        DZE_Quarantine=false;
    }; 


&&AND&&


2. TEST

specialskins = ["Survivor2_DZ"];

if (typeOf player == specialskins) then {
        DZE_Quarantine=false;
    }; 

added Survivor2_DZ and have tested it but when i join radiation zone still losing blood.

 

Link to comment
Share on other sites

  • 0

Maybe its easier to add Item which you can off radiation?

like this

extra_rc.hpp

        class RadiationItem{
            text = "Radiation Shield";
            script = "DZE_Quarantine=false";
        
        };

 YEAH ITS WORKS !!!!!! TESTED when you join radiation zone and press at item radiation is OFF.

 

my first idea that works :D

 

Link to comment
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
  • Advertisement
  • Discord

×
×
  • Create New...