-
Notifications
You must be signed in to change notification settings - Fork 2
Content Tool Tutorial ‐ Modifiers
Guns have damage, spread, recoil and so on. Attachments modify those stats. How?
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.
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
| Flan's Mod: Reloaded | Basic Parts Pack | Vender's Game | Create: Love & War |
|---|---|---|---|
| Getting Started Wiki | Content Wiki | Content Wiki | Content Wiki |
| On CurseForge | On CurseForge | On CurseForge | On CurseForge |
![]() |
![]() |
![]() |
![]() |
Basics - Setup | Import 1.12.2 | New Pack | New Definition
Definitions - Attachments | Bullets | Guns | Magazines | Materials | NPCs | Parts | Traits
Appendix - Modifiers | Recipes
Getting Started
Basic Parts Content
Vender's Game Content
Create: Love & War Content
Content Tool Home
Content Tool Setup
Import 1.12.2 (FM: Legacy) Pack
Create New Pack
Create New Definition
Basics
Attachments
Bullets
Guns
Magazines
Materials
NPCs
Parts
Recipes
Traits
Workbenches



