Skip to content

Guns render files (.render.json)

Render files are located in content-pack -> guns -> render -> yourgun.render.json

It allows to setup the client rendering parameters of your guns, such as arms position, aim position, attachments positions, model scale.

{
  "modelFileName": "mp40.obj",
  "arms": {
    "leftHandAmmo": true,
    "actionArm": "Left",
    "leftArm": {
      "armScale": {
        "x": 0.7,
        "y": 1.0,
        "z": 0.7
      },
      "armPos": {
        "x": -0.12,
        "y": -0.97,
        "z": 0.1
      },
      "armRot": {
        "x": 65.0,
        "y": 32.0,
        "z": -46.0
      },
      "armReloadPos": {
        "x": -0.12,
        "y": -0.97,
        "z": 0.1
      },
      "armReloadRot": {
        "x": 35.0,
        "y": 0.0,
        "z": -25.0
      }
    },
    "rightArm": {
      "armScale": {
        "x": 0.7,
        "y": 1.0,
        "z": 0.7
      },
      "armPos": {
        "x": 0.20,
        "y": -0.67,
        "z": 0.0
      },
      "armRot": {
        "x": 0.0,
        "y": 0.0,
        "z": -90.0
      },
      "armReloadPos": {
        "x": 0.21,
        "y": -0.71,
        "z": 0.0
      },
      "armReloadRot": {
        "x": 0.0,
        "y": 0.0,
        "z": -90.0
      },
      "armChargePos": {
        "x": 0.47,
        "y": -0.39,
        "z": 0.14
      },
      "armChargeRot": {
        "x": 0.0,
        "y": 0.0,
        "z": -90.0
      }
    }
  },
  "sprint": {
    "sprintRotate": {
      "x": 10.0,
      "y": 30.0,
      "z": 0.0
    },
    "sprintTranslate": {
      "x": 0.9,
      "y": -0.1,
      "z": -0.7
    }
  },
  "thirdPerson": {
    "thirdPersonOffset": {
      "x": 0.0,
      "y": -0.1,
      "z": 0.0
    },
    "backPersonOffset": {
      "x": 0.0,
      "y": 0.0,
      "z": 0.0
    },
    "thirdPersonScale": 0.8
  },
  "aim": {
    "rotateHipPosition": {
      "x": 0.0,
      "y": 0.0,
      "z": 0.0
    },
    "translateHipPosition": {
      "x": 0.0,
      "y": 0.0,
      "z": 0.0
    },
    "rotateAimPosition": {
      "x": 0.0,
      "y": 0.0,
      "z": 0.0
    },
    "translateAimPosition": {
      "x": 0.1,
      "y": 0.0,
      "z": 0.0
    }
  },
  "attachments": {
    "attachmentPointMap": {
      "barrel": [
        {
          "x": -0.4,
          "y": 0.004,
          "z": 0.0
        },
        {
          "x": 0.0,
          "y": 0.0,
          "z": 0.0
        }
      ],
      "sight": [
        {
          "x": 0.0,
          "y": 0.0,
          "z": 0.0
        },
        {
          "x": 0.0,
          "y": 0.0,
          "z": 0.0
        }
      ],
      "flashlight": [
        {
          "x": 0.0,
          "y": 0.0,
          "z": 0.0
        },
        {
          "x": 0.0,
          "y": 0.0,
          "z": 0.0
        }
      ]
    },
    "attachmentModeRotate": {
      "x": 10.0,
      "y": 30.0,
      "z": 0.0
    }
  },
  "extra": {
    "translateAll": {
      "x": 0.0,
      "y": 0.0,
      "z": 0.0
    },
    "modelScale": 1.2,
    "gunOffsetScoping": 0.0,
    "crouchZoom": -0.04,
    "adsSpeed": 0.07,
    "gunSlideDistance": 0.16,
    "modelRecoilBackwards": 0.05,
    "modelRecoilUpwards": 0.05,
    "modelRecoilShake":  0.05
  }
}