
;// MP_40 Machine_Gun
;// Revision 1.1  28/03/16
;// Right-Click to Aim Down Sights

;// Ammunition

poolammo		= machinegun
alt poolammo		= machinegun
shareloadedammo 	= 1

reloadqty               = 32
iterate                 = 1
altiterate              = 1
chamberedround		= 1

altreloadqty            = 35
alt chamberedround	= 1
alternateisray          = 1

noautoreload		= 0
nofullreload		= 1
forcezoomout		= 1
addtospare		= 1

alt noautoreload	= 1
alt nofullreload	= 1
alt forcezoomout	= 1
alt addtospare		= 0

npcignorereload		= 0

;// Range and damage

firerate                = 6
damage                  = 7
damagetype              = 1
range			= 3000
force           	= 30
scorchtype              = 1


altdamage               = 7
altrange                = 3000
alt force           	= 30
alt scorchtype		= 1
alt noscorch		= 0


;// Accuracy

simplezoom		= 1
accuracy                = 10
runaccuracy             = 60
simplezoomacc		= 1

alt simplezoom		= 1
alt accuracy            = 6
alt simplezoomacc	= 1



;// HUD handling characteristics


zoomwalkspeed           = 0.4
zoomturnspeed           = 0.15

alt zoomwalkspeed	= 0.4
alt zoomturnspeed 	= 0.15
alt plrmovespeedmod	= 0

recoily                 = 50
recoilyreturn           = 85
recoilxreturn		= 80
recoilx			= 5

zoomrecoily             = 10
zoomrecoilyreturn       = 90
zoomrecoilx             = 1.5
zoomrecoilxreturn       = 95

gunlagspeed             = 9
gunlagxmax              = 3
gunlagymax              = 3

zoomgunlagspeed         = 6
zoomgunlagxmax          = 4
zoomgunlagymax          = 6

simplezoomspeed         = 6

altrecoily              = 75
altrecoilx              = 15
altrecoilyreturn        = 70
altrecoilxreturn        = 80
alt zoomrecoily		= 10
alt zoomrecoilyreturn	= 90
alt zoomrecoilx		= 1.5
alt zoomrecoilxreturn	= 95
alt zoomgunlagspeed	= 6
alt zoomgunlagxmax	= 4
alt zoomgunlagymax	= 6

alt gunlagspeed		= 9
alt gunlagxmax		= 3
alt gunlagymax		= 3

alt simplezoomspeed	= 10

reloadspeed 		= 120
alt reloadspeed 	= 120

;// Visuals


textured		= gun_D2.dds
effect			= effectbank\reloaded\weapon_bone.fx
transparency		= 2
minpolytrim		= 0

;// GUN HUD (0-colt,1-magnum,2-uzi,3-shotgun,4-rifle,5-rpg)
statuspanelcode		= 100
;// WEAPON Style (1-pistol,2-rocket,3-shotgun,4-uzi,5-assault)
weapontype		= 5

;// NPC Decal 
decal           	= muzzleflash4
decalforward    	= 125


;//Model positions

horiz                   = 0
vert                    = 2
forward                 = -2
runy                    = -7
simplezoomy             = 0.1
simplezoomx             = -0.2

alt horiz		= 0
alt vert		= 2
alt forward		= -2
alt runy		= -7
alt simplezoommod	= 0
alt simplezoomx		= -0.2
alt simplezoomy		= 0.1


;// Muzzleflash

muzzlecolorR		= 168
muzzlecolorG		= 100
muzzlecolorB		= 36

alt muzzlecolorR	= 168
alt muzzlecolorG	= 100
alt muzzlecolorB	= 36

muzzleflash             = 1
muzzlesize              = 200
simplezoomflash         = 1
smokedecal              = smoke1
second                  = 0
smokespeed		= 11
alignx                  = 18
aligny                  = -6
alignz                  = 140
zoomalignx              = 0
zoomaligny              = -6
zoomalignz              = 140

alt muzzleflash         = 4
alt simplezoomflash	= 1
alt muzzlesize		= 150
alt smokedecal		= gunsmoke
alt smokespeed		= 14
alt alignx		= 8
alt aligny		= -5
alt alignz		= 80
alt zoomalignx		= 0
alt zoomaligny		= -5
alt zoomalignz		= 50


;// Brass System

brass			= 1
alt brass		= 1


;// HUD ANIMATION (timeline 0-850)

keyframe ratio          = 1

simplezoomanim          = 1
alt simplezoomanim	= 1

useempty		= 1
alt useempty		= 1

disablemovespeedmod	= 0
alt disablemovespeedmod	= 0

select			= 0,17
idle			= 18,51
move			= 55,70
run                     = 586,604
start fire		= 72,75
automatic fire  	= 76,82
end fire		= 83,86
reload			= 88,131
empty reload            = 139,193
putaway			= 1025,1040


zoomto                  = 207,212
zoomfrom                = 279,284
zoom idle               = 213,233
zoom move               = 236,259
zoom start fire         = 261,264
zoom automatic fire     = 265,271
zoom end fire           = 272,276

altto                   = 421,470
altfrom                 = 376,420
empty altto		= 421,470
empty altfrom		= 376,420

alt select              = 0,17
alt idle                = 18,51
alt move                = 54,70
;alt run                = 586,604
alt start fire          = 72,75
alt automatic fire      = 76,82
alt end fire            = 83,86
alt reload              = 139,198
alt putaway             = 1026,1040

melee start             = 714,719
melee end               = 720,733


;// GUN Sounds (0-zoom,1-fire,2-reload,3-dryfire,4-putaway)
sound0			= zoom.wav
sound1			= fire.wav
sound2                  = reload.wav
sound3			= dryfire.wav
sound4                  = zoom.wav
sound5			= cock.wav
sound6			= putaway.wav
sound7			= retrieve1.wav
sound8			= eject.wav
sound9			= insert.wav
fireloop		= 4000
soundstrength		= 100

altsound1		= fire.wav
altsound3		= dryfire.wav
altsound4		= putaway.wav
alt fireloop            = 2000
alt soundstrength	= 100

;// HUD sound frames list

soundframes             = 4
sframe0                 = 72,1
sframe1                 = 145,2
sframe3                 = 94,2
sframe2                 = 170,5