diff --git a/Acid.cs b/Acid.cs index e2c5626..a1a73a3 100644 --- a/Acid.cs +++ b/Acid.cs @@ -6,6 +6,10 @@ namespace SDG.Unturned // Destroys itself after one use and cannot be reset public class Acid : MonoBehaviour { + public Guid effectGuid; + + // Kept because lots of modders have been using this script in Unity, + // so removing legacy effect id would break their content. public ushort effectID; } } diff --git a/DeadzoneVolume.cs b/DeadzoneVolume.cs index caa06e1..7a43741 100644 --- a/DeadzoneVolume.cs +++ b/DeadzoneVolume.cs @@ -1,4 +1,4 @@ -using UnityEngine; +using UnityEngine; namespace SDG.Framework.Devkit { @@ -6,5 +6,19 @@ namespace SDG.Framework.Devkit // BoxCollider must have 'isTrigger' set to True public class DeadzoneVolume : MonoBehaviour { + [SerializeField] + private EDeadzoneType _deadzoneType; + + [SerializeField] + private float _unprotectedDamagePerSecond; + + [SerializeField] + private float _protectedDamagePerSecond; + + [SerializeField] + private float _unprotectedRadiationPerSecond = 6.25f; + + [SerializeField] + private float _maskFilterDamagePerSecond = 0.4f; } } diff --git a/OxygenVolume.cs b/OxygenVolume.cs new file mode 100644 index 0000000..1fca347 --- /dev/null +++ b/OxygenVolume.cs @@ -0,0 +1,34 @@ +using UnityEngine; + +namespace SDG.Unturned +{ + // The New Volumes use the Scale of the GameObject as the Size for the Volume, No Colliders Required + // This Volume Script should be attached to an Empty GameObject with Tag and Layer :: Trap + // To Visualize the Size of the Volume Temporarily Attach either a BoxCollider or a SphereCollider. Making sure that the Collider Component uses the default Radius ( 0.5 ) or Size ( 1 1 1 ) + public class OxygenVolume : MonoBehaviour + { + public bool isBreathable + { + get + { + return this._isBreathable; + } + set + { + if (!base.enabled) + { + this._isBreathable = value; + return; + } + this._isBreathable = value; + } + } + + [SerializeField] + private bool _isBreathable = true; + + public ELevelVolumeShape Shape; + + public float falloffDistance; + } +} \ No newline at end of file