; 0.6 HUD FOV------------------------------------------------------------------------------------------------
[wpn_spas12]:identity_immunities,weapon_probability,default_weapon_params, wpn_saiga_sounds ,wpn_spas12_sounds
        GroupControlSection         = spawn_group
        $npc                        = on
        $prefetch                   = 8
        $spawn                      = "weapons\spas12"
        scheduled                   = off
        cform                       = skeleton
        
        class                       = WP_ASHTG
        slot                        = 2
        animation_slot              = 9
        ef_main_weapon_type         = 1
        ef_weapon_type              = 9
        hand_dependence             = 1
        single_handed               = 0
        
        icons_texture      = ui\ui_icon_spas

        inv_grid_width     = 6
        inv_grid_height    = 2
        inv_grid_x         = 1
        inv_grid_y         = 0
        inv_name                    = st_wpn_spas12_new
        inv_name_short              = st_wpn_spas12_new
        description                 = st_wpn_spas12_descr_new
        
        kind                        = w_shotgun
        inv_weight                  = 4.13
        cost                        = 29390
        repair_type                 = shotgun
        weapon_class                = shotgun
        
        hud                         = wpn_spas12_hud
        visual                      = dynamics\weapons\wpn_spas12\wpn_spas12.ogf
        position                    = -0.024, -0.081, 0.
        orientation                 = 0, 0, 0
        fire_point                  = 0.0, 0.133, 0.686
        fire_point2                 = 0.0, 0.103, 0.686
        strap_bone0                 = bip01_spine2
        strap_bone1                 = bip01_spine1
        strap_position              = -0.26, -0.10, 0.05
        strap_orientation           = -15, -9, 110
        ph_mass                     = 3
        
        flame_particles             = weapons\generic_weapon05
        smoke_particles             = amik\weapons\smoke_particles\smoke_particles_pump_01
        
		shell_point                 = 0.0, 0.138, 0.07
		;shell_particles			= weapons\12ga

        light_color                 = 0.6, 0.5, 0.3
        light_range                 = 6.0
        light_time                  = 0.2
        light_var_color             = 0.05
        light_var_range             = 0.5

        upgr_icon_path     = ui\ui_icon_spas
   
        upgrades                    = up_gr_firstab_spas12, up_gr_seconab_spas12, up_gr_thirdab_spas12, up_gr_fourtab_spas12
        installed_upgrades          =
        upgrade_scheme              = upgrade_scheme_spas12
        upgr_icon_x                 = 50
        upgr_icon_y                 = 100
        upgr_icon_width             = 300
        upgr_icon_height            = 100    
        
        tri_state_reload            = on
        fire_modes                  = 1
        ammo_class                  = ammo_12x70_buck, ammo_12x70_buck_bad, ammo_12x70_buck_verybad, ammo_12x76_zhekan, ammo_12x76_zhekan_bad, ammo_12x76_zhekan_verybad, ammo_12x76_dart, ammo_12x76_dart_bad, ammo_12x76_dart_verybad, ammo_12x70_buck_self
        ammo_elapsed                = 8
        ammo_mag_size               = 8
        startup_ammo                = 10
        
        scope_status                = 0
        scope_zoom_factor           = 0
        
silencer_name                            = wpn_sil_nato
silencer_status                          = 2
silencer_x                               = 230
silencer_y                               = 10
silencer_light_color                     = 0.6, 0.5, 0.3
silencer_light_range                     = 0.01
silencer_light_time                      = 0.2
silencer_light_var_color                 = 0.05
silencer_light_var_range                 = 0.5
silencer_smoke_particles                 = weapons\generic_shoot_00
        
        grenade_launcher_status     = 0
        
        hit_impulse                 = 40
        hit_power                   = 0.79, 0.79, 0.79, 0.79
        hit_type                    = fire_wound
        fire_distance               = 300
        bullet_speed                = 340
        rpm                         = 250
        rpm_empty_click             = 200
        
        zoom_dof                    = 0.5, 1.0, 180
        zoom_enabled                = true
control_inertion_factor = 1.0f
        crosshair_inertion          = 6.9
        fire_dispersion_base        = 0.48
        fire_dispersion_condition_factor = 0.001
        
        misfire_probability         = 0.005
        misfire_start_condition     = 0.7 ;  0.80
        misfire_start_prob          = 0.007
        misfire_end_condition       = 0.1
        misfire_end_prob            = 0.11
        
        condition_queue_shot_dec    = 0.0022
        condition_shot_dec          = 0.0022
        
        cam_return                  = 0
        cam_relax_speed             = 20
        cam_dispersion              = 7.88
        cam_dispersion_frac         = 1.1
        cam_dispersion_inc          = 0.0
        cam_max_angle               = 50.0
        cam_max_angle_horz          = 50.0
        cam_step_angle_horz         = 2.77
        zoom_cam_relax_speed        = 16
        zoom_cam_dispersion         = 6.03
        zoom_cam_dispersion_frac    = 0.7
        zoom_cam_dispersion_inc     = 0.0
        zoom_cam_max_angle          = 50.0
        zoom_cam_max_angle_horz     = 50.0
        zoom_cam_step_angle_horz    = 2.61
        
        PDM_disp_accel_factor       = 1.755
        PDM_disp_base               = 1.7
        PDM_disp_crouch             = 1.0
        PDM_disp_crouch_no_acc      = 1.0
        PDM_disp_vel_factor         = 1.75
        
        cam_relax_speed_ai          = 360
        zoom_cam_relax_speed_ai     = 120.75
        holder_fov_modifier         = 1.0
        holder_range_modifier       = 1.0
        min_radius                  = 0
        max_radius                  = 500
        hit_probability_gd_novice   = 1.00
        hit_probability_gd_stalker  = 1.00
        hit_probability_gd_veteran  = 1.00
        hit_probability_gd_master   = 1.00
        
        kill_msg_x                  = 91
        kill_msg_y                  = 104
        kill_msg_width              = 80
        kill_msg_height             = 20


        snd_empty		        = weapons\spas\empty
        snd_draw        	        = weapons\spas\draw
        snd_holster        	        = weapons\spas\holster
        snd_bore		        = $no_sound
        snd_reload_misfire              =  $no_sound
        scripted_snd_reload_misfire              = weapons\spas\unjam
        scripted_snd_reload_misfire_empty        = $no_sound

        scripted_snd_sprint2walk        	        = weapons\spas\draw

        snd_open_weapon			= $no_sound
        snd_add_cartridge		= $no_sound
        snd_add_cartridge_empty		=  $no_sound
        snd_close_weapon		= weapons\spas\close

        scripted_snd_open 	= weapons\spas\open  
        scripted_snd_open_empty 	= weapons\spas\open_empty  

        ;snd_add_cartridge		= $no_sound
        scripted_snd_add_cartridge		= weapons\spas\load
        scripted_snd_add_cartridge_empty		= weapons\spas\load_empty

        snd_bore_actor		        = $no_sound

        ; scripted_snd_ammo_check                 = weapons\spas\magcheck
        ; scripted_snd_ammo_check_empty           = weapons\spas\magcheck
        ; scripted_snd_ammo_check_jammed          = weapons\spas\magcheck
        ; scripted_snd_ammo_check_empty_jammed    = weapons\spas\magcheck

        scripted_snd_bore = weapons\spas\inspect
        scripted_snd_bore_empty = weapons\spas\inspect
        scripted_snd_bore_jammed = weapons\spas\inspect_jammed
        scripted_snd_bore_empty_jammed  = weapons\spas\inspect

[wpn_spas12_hud]:hud_base
        item_visual                 = anomaly_weapons\wpn_spas12\wpn_spas12_hud.ogf
        attach_place_idx            = 0
        zoom_hide_crosshair         = true
        

        item_position                            = 0, 0, 0
        item_orientation                         = 0, 0, 0

        hands_position                           = 0.0, 0.0, 0.0
        hands_position_16x9                      = 0.0, 0.0, 0.0
        hands_orientation                        = 0.0, 0.0, 0.0
        hands_orientation_16x9                   = 0.0, 0.0, 0.0

        aim_hud_offset_pos                       = -0.063009, 0.045002, -0.061513
        aim_hud_offset_pos_16x9                  = -0.063009, 0.045002, -0.061513
        aim_hud_offset_rot                       = 0.0101343, -0.021134, -0.031884
        aim_hud_offset_rot_16x9                  = 0.0101343, -0.021134, -0.031884

        lowered_hud_offset_pos			= 0.052129,-0.022413, -0.02
        lowered_hud_offset_pos_16x9		= 0.052129,-0.022413, -0.02
        lowered_hud_offset_rot			= -0.1,-0.6,0.4
        lowered_hud_offset_rot_16x9		= -0.1,-0.6,0.4

        gl_hud_offset_pos                        = 0, 0, 0
        gl_hud_offset_pos_16x9                   = 0, 0, 0
        gl_hud_offset_rot                        = 0, 0, 0
        gl_hud_offset_rot_16x9                   = 0, 0, 0

        lean_hud_offset_pos                      = 0, 0, 0
        lean_hud_offset_rot                      = 0, 0, 0


        anm_open                    =   wpn_spas12_new_open, open
        anm_open_empty              =   wpn_spas12_new_open_empty, open_empty
        anm_add_cartridge_empty     =   wpn_spas12_new_load_empty, load_empty
        anm_add_cartridge           =   wpn_spas12_new_load
        anm_close                   =   wpn_spas12_new_close, close

        anm_hide                    = wpn_spas12_new_holster, idle
        anm_idle                    = wpn_spas12_new_idle, idle
        anm_idle_aim                = wpn_spas12_new_aim, idle
        anm_idle_aim_moving         = wpn_spas12_new_walk, idle, 0.75
        anm_idle_aim_moving_crouch  = wpn_spas12_new_walk, idle, 0.7
        anm_idle_moving             = wpn_spas12_new_walk, idle
        anm_idle_sprint             = wpn_spas12_new_sprint_less_wavy, idle, 1.2
        anm_shots                   = wpn_spas12_new_shoot_hip
        anm_show                    = wpn_spas12_new_draw, idle

        anm_hide_empty                    = wpn_spas12_new_holster, idle_empty
        anm_idle_empty                    = wpn_spas12_new_idle, idle_empty
        anm_idle_aim_empty                = wpn_spas12_new_aim, idle_empty
        anm_idle_aim_moving_empty         = wpn_spas12_new_walk, idle_empty, 0.75
        anm_idle_aim_moving_crouch_empty  = wpn_spas12_new_walk, idle_empty, 0.7
        anm_idle_moving_empty             = wpn_spas12_new_walk, idle_empty
        anm_idle_sprint_empty             = wpn_spas12_new_sprint_less_wavy, idle_empty, 1.2
        anm_shot_l                  = wpn_spas12_new_shoot_hip, shoot_empty
        anm_show_empty                    = wpn_spas12_new_draw, idle_empty

        anm_walk2sprint                     = wpn_spas12_new_sprint_start, idle, 1.1
        anm_walk2sprint_empty               = wpn_spas12_new_sprint_start, idle_empty, 1.1

        anm_sprint2walk                     = wpn_spas12_new_sprint_end, idle,
        anm_sprint2walk_empty               = wpn_spas12_new_sprint_end, idle_empty

        anm_bore_empty                      = wpn_spas12_new_inspect, idle_empty
        anm_bore                            = wpn_spas12_new_inspect, idle

        anm_reload_misfire         		 = wpn_spas12_new_unjam, unjam
        anm_reload_misfire_empty          	 = wpn_spas12_new_unjam_empty, idle_empty


        anm_hide_jammed                    = wpn_spas12_new_holster, idle_jammed
        anm_idle_jammed                    = wpn_spas12_new_idle, idle_jammed
        anm_idle_aim_jammed                = wpn_spas12_new_aim, idle_jammed
        anm_idle_aim_moving_jammed         = wpn_spas12_new_walk, idle_jammed, 0.75
        anm_idle_aim_moving_crouch_jammed  = wpn_spas12_new_walk, idle_jammed, 0.7
        anm_idle_moving_jammed             = wpn_spas12_new_walk, idle_jammed
        anm_idle_sprint_jammed             = wpn_spas12_new_sprint_less_wavy, idle_jammed, 1.2
        anm_show_jammed                    = wpn_spas12_new_draw, idle_jammed
        anm_bore_jammed                     = wpn_spas12_new_inspect_jammed, idle_jammed
        anm_walk2sprint_jammed              = wpn_spas12_new_sprint_start, idle_jammed, 1.1
        anm_sprint2walk_jammed              = wpn_spas12_new_sprint_end, idle_jammed
        


        anm_hide_empty_jammed                    = wpn_spas12_new_holster, idle_empty
        anm_idle_empty_jammed                    = wpn_spas12_new_idle, idle_empty
        anm_idle_aim_empty_jammed                = wpn_spas12_new_aim, idle_empty
        anm_idle_aim_moving_empty_jammed         = wpn_spas12_new_walk, idle_empty, 0.75
        anm_idle_aim_moving_crouch_empty_jammed  = wpn_spas12_new_walk, idle_empty, 0.7
        anm_idle_moving_empty_jammed             = wpn_spas12_new_walk, idle_empty
        anm_idle_sprint_empty_jammed             = wpn_spas12_new_sprint_less_wavy, idle_empty, 1.2
        anm_show_empty_jammed                    = wpn_spas12_new_draw, idle_empty
        anm_bore_empty_jammed               = wpn_spas12_new_inspect, idle_empty

        anm_walk2sprint_empty_jammed        = wpn_spas12_new_sprint_start, idle_empty, 1.1
        anm_sprint2walk_empty_jammed        = wpn_spas12_new_sprint_end, idle_empty

        ; Transition Definitions


        ts_pattern_walk2sprint      = .+, anm_idle_sprint, anm_walk2sprint, 1

        ts_pattern_sprint2walk      = anm_idle_sprint, ^anm_idle.*, anm_sprint2walk, 1
        ts_pattern_sprint2walk_aim  = anm_walk2sprint, ^anm_idle_aim.*, anm_sprint2walk, 1
        ts_strict_sprint2walk_idle  = anm_walk2sprint, anm_idle, anm_sprint2walk
        ts_strict_sprint2walk_move  = anm_walk2sprint, anm_idle_moving, anm_sprint2walk

        ;ts_pattern_idle2aim         = ^anm_idle.*, ^anm_idle_aim$, anm_idle2aim, 1
        ts_strict_sprint2aim        = anm_idle_sprint, anm_idle_aim, anm_sprint2walk

        ts_strict_sprint2inspect        = anm_idle_sprint, anm_bore, anm_sprint2walk
        ts_strict_walk2sprint_inspect        = anm_walk2sprint, anm_bore, anm_sprint2walk

        ts_pattern_reload_interrupt     = anm_add_cartridge, ^anm_idle.*, anm_close 
        ts_pattern_reload_empty_interrupt     = anm_add_cartridge_empty, ^anm_idle.*, anm_close    

        fire_bone                   = muzzle
        fire_point                  = 0, 0, 0
 
		freelook_z_offset_mul		= 0.1
 
;------------------------------------------------------------------------------------------------
[wpn_spas12_custom]:wpn_spas12
;         inv_grid_x                  = 40
;         inv_grid_y                  = 2
;         inv_name                    = st_wpn_spas12_custom
;         inv_name_short              = st_wpn_spas12_custom
        
;         cost                        = 32580
        
;         hud                         = wpn_spas12_sk1_hud
;         visual                      = dynamics\weapons\wpn_spas12\wpn_spas12_sk1.ogf
        
;         installed_upgrades          = up_secona_spas12
        
;         rpm                         = 130
        
;         fire_dispersion_base        = 0.45
        
;         misfire_start_condition     = 0.7 ;  0.76
;         misfire_start_prob          = 0.003
;         misfire_end_condition       = 0.09
;         misfire_end_prob            = 0.02
        
;         condition_queue_shot_dec    = 0.00225
;         condition_shot_dec          = 0.00225
 

[wpn_spas12_sk1_hud]:wpn_spas12_hud
;         item_visual                 = anomaly_weapons\wpn_spas12\wpn_spas12_sk1_hud.ogf
 
;------------------------------------------------------------------------------------------------
[wpn_spas12_nimble]:wpn_spas12
        ; $spawn                      = "weapons\wpn_spas12_nimble"
        
        ; inv_grid_x                  = 40
        ; inv_grid_y                  = 8
        ; inv_name                    = st_wpn_spas12_nimble
        ; inv_name_short              = st_wpn_spas12_nimble
        ; description                 = st_wpn_spas12_nimble_descr
        
        ; cost                        = 34860
        
        ; hud                         = wpn_spas12_nimble_hud
        ; visual                      = dynamics\weapons\wpn_spas12\wpn_spas12_nimble.ogf
        
        ; hit_power                   = 0.83, 0.83, 0.83, 0.83
        ; bullet_speed                = 350
        
        ; fire_dispersion_base        = 0.43
        
        ; misfire_start_condition     = 0.7 ;  0.73
        ; misfire_start_prob          = 0.003
        ; misfire_end_condition       = 0.08
        ; misfire_end_prob            = 0.02
        
        ; condition_queue_shot_dec    = 0.0024
        ; condition_shot_dec          = 0.0024
 

[wpn_spas12_nimble_hud]:wpn_spas12_hud
        ; item_visual                 = anomaly_weapons\wpn_spas12\wpn_spas12_nimble_hud.ogf
 
