{
    "name": "cs_g3sg1",
    "type": "Gun",
    "maxAmmoCapacity": 20,
    "compatibleAmmo": ["ammocreative", "ammo762x51"],
    "rpm": 215,
    "damage": 9.0,	
    "fireModes": ["SINGLE", "AUTOMATIC"],
    "fireSound": "g3",
    "animationType": "rifle",
    "defaultAttachments": [],
    "compatibleAttachmentGroups": [
      "ar_sightsandscopes",
	  "snipers_sights",
      "rf_suppressors",
      "cs_g3sg1_skins"	  
    ],
	"compatibleAttachments": [
    "cantedrail"
    ],
    "gunRecoilInitialAmplitude": 0.8,
    "shakeRecoilAmplitude": 0.35,
    "shakeRecoilSpeed": 2.0,
    "viewRecoilAmplitude": 3.0,
    "drawAnimations": [
      { "name": "animation.model.draw",    "duration": 805 }
    ],
    "inspectAnimations": [
      { "name": "animation.model.inspect", "duration": 5425 }
    ],
    "phasedReloads": [
      {
        "phase": "RELOADING",
        "condition": {
          "allOf": [
            { "onEmptyReload": true },
            { "unselectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "laser_cannon" },
            { "unselectedFireMode": "shotgun" }
          ]
        },
        "duration": 3322,
        "animation": "animation.model.reloadempty"
      },
      {
        "phase": "RELOADING",
        "condition": {
          "allOf": [
            { "onEmptyReload": false },
            { "unselectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "laser_cannon" },
            { "unselectedFireMode": "shotgun" }
          ]
        },
        "duration": 1970,
        "animation": "animation.model.reload"
      },
      {
        "phase": "RELOADING",
        "condition": {
          "allOf": [
            { "onEmptyReload": true },
            { "selectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "laser_cannon" },
            { "unselectedFireMode": "shotgun" }
          ]
        },
        "duration": 1870,
        "animation": "animation.model.launcherreload"
      },
      {
        "phase": "RELOADING",
        "condition": {
          "allOf": [
            { "onEmptyReload": true },
            { "selectedFireMode": "laser_cannon" },
            { "unselectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "shotgun" }
          ]
        },
        "duration": 2670,
        "animation": "animation.model.laserreload"
      },
      {
        "phase": "RELOADING",
        "condition": {
          "allOf": [
            { "onEmptyReload": false },
            { "selectedFireMode": "laser_cannon" },
            { "unselectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "shotgun" }
          ]
        },
        "duration": 2670,
        "animation": "animation.model.laserreload"
      },
      {
        "phase": "RELOADING",
        "condition": {
          "allOf": [
            { "onEmptyReload": true },
            { "selectedFireMode": "shotgun" },
            { "unselectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "laser_cannon" }
          ]
        },
        "duration": 2420,
        "animation": "animation.model.shotgunreloadempty"
      },
      {
        "phase": "RELOADING",
        "condition": {
          "allOf": [
            { "onEmptyReload": false },
            { "selectedFireMode": "shotgun" },
            { "unselectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "laser_cannon" }
          ]
        },
        "duration": 1970,
        "animation": "animation.model.shotgunreload"
      }
    ],
    "effects": [
      { "phase": "hit_scan_acquired", "name": "tracer" }
    ],
    "features": [
      {
        "type": "MuzzleFlash",
        "effects": [
          { "phase": "firing", "name": "muzzle_flash" }
        ],
        "condition": {
          "allOf": [
            { "doesNotHaveAttachmentGroup": "rf_suppressors" },
            { "unselectedFireMode": "grenade_launcher" },
            { "unselectedFireMode": "laser_cannon" },
            { "unselectedFireMode": "shotgun" }
          ]
        }
      },
      {
        "type": "Aiming",
        "zoom": 0.4,
        "condition": { "allOf":[ { "doesNotHaveAttachmentGroup":"m16_sightsandscopes" } ] }
      },	  
	  {
        "type": "Pip",
        "overlayTexture": "textures/gui/scope_pip.png",
        "parallax": true,
        "zoom": 0.88,
        "condition": { "allOf":[ { "doesNotHaveAttachmentGroup":"snipers_sights" } ] }
      },
      {
        "type": "PartVisibility",
        "parts": [
          {
            "name": "rail",
            "visible": true,
            "condition": {
              "allOf": [
                { "hasAttachmentGroup": "m16_sightsandscopes" }
              ]
            }
          },
          {
            "name": "sight",
            "visible": false,
            "condition": {
              "allOf": [
                { "hasAttachmentGroup": "m16_sightsandscopes" }
              ]
            }
          }
        ]
      },
      {
        "type": "Sound",
        "fireSound": "g3_silenced",
        "fireSoundVolume": 1,
        "condition": {
          "allOf": [
            { "hasAttachmentGroup": "rf_suppressors" }
          ]
        }
      }
    ],
    "glowingParts": [
      { "name": "glowy_new6" }
    ]
  }
  