Skip to content

Guns config files (.json)

Starting with an example

Suppressor

{
  "displayName": "Mono. AK Suppressor",
  "internalName": "prototype.ak47_suppressor",
  "attachmentType": "barrel",
  "modelSkins": [
    {
      "skinAsset": "prototype.ak47_suppressor",
      "displayName": "AK47 Suppressor - Default"
    }
  ]
}

Sight/Scope

{
  "displayName": "Docter Sight Red Dot",
  "internalName": "prototype.docter_sight",
  "attachmentType": "sight",
  "modelSkins": [
    {
      "skinAsset": "prototype.docter_sight",
      "displayName": "Docter Sight Red Dot - Default"
    }
  ],
  "sight": {
    "scopeType": "reddot",
    "sensivityScopeFactor": 0.9,
    "dotColorType": "red"
  }
}

Grip

{
  "displayName": "Ergonomic Foregrip",
  "internalName": "prototype.ergo_foregrip",
  "attachmentType": "grip",
  "modelSkins": [
    {
      "skinAsset": "prototype.ergo_foregrip",
      "displayName": "Ergonomic Foregrip - Default"
    }
  ],
  "grip": {
    "recoilPitchFactor": 0.1,
    "recoilYawFactor": 0.1
  }
}

Attachment Types

Info

  • sight
    • Info: `For sight/scopes attachment
    • Require: The section sight -> scopeType, sensitivityScopeFactor, dotColorType parameters.
  • barrel
    • Info: For flash hiders, suppressor.
  • slide
    • Info: Slides attachment.
  • grip
    • Info: For grips attachments, allow to reduce the recoil.
    • Require: The section grip -> recoilPitchFactor, recoilYawFactor parameters.
  • flashlight
    • Info: If a flashlight is applied on the gun, press H to enable the flash.
  • charm
    • Info: Add a custom charm, to make your gun badass