Skip to content

Content Tool Tutorial ‐ Modifiers

Flan edited this page Feb 22, 2024 · 2 revisions

Guns have damage, spread, recoil and so on. Attachments modify those stats. How?

Modifier Layers

Modifiers are calculated in a series of layers. Each layer is summed (or multiplied) together, and then the results of each layer are applied to the base stat. "Layer" 0: Unmodded - The value on the gun (or other modifiable Definition) Layer 1: "BaseAdd" - A simple additive bonus, in the same units as the stat Layer 2: "StackablePercentage" - The simpler percent boost, these add up before being applied, so +10%, -3% and +15% will multiply your stat by 1.22x Layer 3: "IndependentPercentage" - Each of these is multiplied separately, after other multipliers. So 120%, 50% and 110% would be 1.2 x 0.5 x 1.1 = 0.66x Layer 4: "FinalAdd" - The final addition layer, in case you want your bonus to not be affected by any multipliers.

Some examples

Our weapon has "impact_damage" = 10, "spread" = 4.5, "vertical_recoil = 0" BoomGrip has +4 BaseAdd and +50% StackablePercentage to impact_damage, and +200% StackablePercentage to vertical_recoil NeatScope has

Attaching just BoomGrip, it gives; impact_damage = (10 + 4) x (100 + 50)% = 14 x 1.5 = 21 vertical_recoil = (0) x (100 + 200)% = 0 x 3 = 0

Clone this wiki locally