Skip to content

Ammo DamageScales

Wizard Lizard edited this page May 15, 2020 · 17 revisions

Damage Scales

This page will cover all of the damage scales.

Modifier Values Cheat Sheet

-1  = disabled
0 = no damage
0.5f = half damage
1 = 100% of available damage
2 = 200% of available damage

Initial Settings

            DamageScales = new DamageScaleDef
            {
                MaxIntegrity = 0f, 
                DamageVoxels = true, 
                SelfDamage = false, 

                Characters = -1f,

Falloff

                FallOff = new FallOffDef
                {
                    Distance = 5000, // Distance at which max damage begins falling off.
                    MinMultipler = 0.45f, // value from 0.0f to 1f where 0.1f would be a min damage of 10% of max damage.
                },

Grids

                Grids = new GridSizeDef
                {
                    Large = -1f,
                    Small = -1f,
                },

Armor

                Armor = new ArmorDef
                {
                    Armor = -1f,
                    Light = -1f,
                    Heavy = -1f,
                    NonArmor = -1f,
                },

Shields

                Shields = new ShieldDef
                {
                    Modifier = 10f,
                    Type = Energy,
                    BypassModifier = -1f,
                },

Custom

                Custom = new CustomScalesDef
                {
                    IgnoreAllOthers = false,
                    Types = new[]
                    {
                        new CustomBlocksDef
                        {
                            SubTypeId = "Test1",
                            Modifier = -1f,
                        },
                        new CustomBlocksDef
                        {
                            SubTypeId = "Test2",
                            Modifier = -1f,
                        },
                    },
                },
Clone this wiki locally