{
  "name" : "cs_ots14",
  "type": "Gun",
  "maxAmmoCapacity" : 20,
  "compatibleAmmo" : ["ammocreative","cs_ammo939"],
  "damage" : 7,
  "rpm" : 700,
  "adsSpeed": 450,
  "fireModes" : ["SINGLE", "AUTOMATIC"],
  "fireSound" : "m4a1",
  "animationType": "rifle",
  "compatibleAttachments": [
      "cantedrail",
	  "cs_ots14_suppressor",
	  "cs_ots14_launcher",
	  "cs_ots14_scope"
  ],
  "compatibleAttachmentGroups": [
      "ar_sightsandscopes",
      "cs_ots14_skins"
  ],
  "gunRecoilInitialAmplitude" : 0.8,
  "shakeRecoilAmplitude" : 0.6,
  "shakeRecoilSpeed" : 2,
  "viewRecoilAmplitude" : 1.3,
  "phasedReloads": [
    {
      "phase": "RELOADING",
      "condition": {
                "allOf": [
                    { "onEmptyReload": false },
                    { "unselectedFireMode": "grenade_launcher" }
                ]
            },
      "duration": 2485,
      "animation": "animation.model.reload"
    },
    {
      "phase": "RELOADING",
      "condition": {
                "allOf": [
                    { "onEmptyReload": true },
                    { "unselectedFireMode": "grenade_launcher" }
                ]
            },
      "duration": 3255,
      "animation": "animation.model.reloadempty"
    },
    {
      "phase": "RELOADING",
      "condition": {
        "allOf": [
          "reloadIterationIndex == 0",
          {
            "selectedFireMode": "grenade_launcher"
          }
        ]
      },
      "duration": 1720,
      "animation": "animation.model.launcherreload"
    }
  ],
    "drawAnimations": [
        {
            "name": "animation.model.draw",
            "duration": 775
        }
    ],
    "inspectAnimations": [
        {
            "name": "animation.model.inspect",
            "duration": 4525
        }
    ],
	"fireAnimations": [
        {
            "name": "animation.model.fire",
            "condition": "random"
        },
		{
            "name": "animation.model.fire2",
            "condition": "random"
        }
    ],
  "features": [
    {
          "type": "Aiming",
          "zoom": 0.35,
          "condition": {
              "allOf": [
                  { "doesNotHaveAttachmentGroup": "ar_sightsandscopes"},
                  { "doesNotHaveAttachment": "cs_ots14_scope"}				  
              ]
          }
    },  
      {
        "type": "MuzzleFlash",
        "effects": [ { "phase": "firing", "name": "muzzle_flash" } ],
        "condition": { "allOf":[ { "doesNotHaveAttachment":"cs_ots14_suppressor" } ] }
      },
	{
      "type": "Sound",
      "fireSound": "g41_silenced",
      "fireSoundVolume": 1,
      "condition": {
         "allOf": [
              { "hasAttachment": "cs_ots14_suppressor"},
              { "unselectedFireMode": "grenade_launcher"}
             ]
          }
        },
		{
			"type": "PartVisibility",
			"parts": [
				{
					"name":"carryhandle",
					"visible":false,
					"condition": {
					"hasAttachmentGroup":"ar_sightsandscopes"
					}
				},
				{
					"name":"groza_guard",
					"visible":false,
					"condition": {
					"hasAttachmentGroup":"m16_sightsandscopes"
					}
				},
				{
					"name":"tactical_guard",
					"visible":true,
					"condition": {
					"hasAttachmentGroup":"m16_sightsandscopes"
					}
				},
				{
					"name":"barrel",
					"visible":false,
					"condition": {
					"hasAttachment":"cs_ots14_launcher"
					}
				},
				{
					"name":"launcher",
					"visible":true,
					"condition": {
					"hasAttachment":"cs_ots14_launcher"
					}
				},				
				{
					"name":"grip",
					"visible":false,
					"condition": {
					"hasAttachment":"cs_ots14_suppressor"
					}
				}
		]
	}
  ],
  "effects": [
    {
               "phase": "hit_scan_acquired",
               "name": "tracer"
    }
]
}