Name H&K UMP-40
ShortName HKUMP40
//The ammo this gun uses (shortName)
Ammo ump40Ammo
Icon UMP40
//Colour in Red, Green, Blue, each going up to 255.
Colour 255 255 255
ItemID 23627
//Reload time in ticks, 1/20ths of a second
ReloadTime 45
//The amount of gun recoil, all relative : Sten = 1, Mp40 = 3, Kar98kSniper = 20
Recoil 2
RandomRecoilRange 1.4
RandomRecoilYawRange 0.6
DecreaseRecoil 1.0
DecreaseRecoilYaw 1.5
//Damage in half hearts
Damage 8
//The higher this value, the more the bullets spread
Accuracy 3.5
//Time in ticks between rounds
ShootDelay 2
ShootSound UMP40Fire
ReloadSound coltReload
Mode FullAuto SemiAuto
OneHanded false
//Bullet speed, default 3.0
BulletSpeed 10.5
//Default scope settings. Usually for aiming down sights. In which case, use FOVZoomLevel, not ZoomLevel
Scope None
ZoomLevel 1.0
FOVZoomLevel 1.3
Deployable False
DeployedModel None
Model rainfire.UMP40
Texture SkinUMP40
ModelScale 1.0
//Attachment Settings
AllowAllAttachments true
//List here all the attachments allowed on this gun by shortName and separated by spaces
AllowAttachments flanMWSilencer flanMWRedDot flanMWACOG flanMW4xScope
AllowBarrelAttachments true
AllowScopeAttachments true
AllowStockAttachments true
AllowGripAttachments true
NumGenericAttachmentSlots 1
//Modifiers
MoveSpeedModifier 0.95
//Show Information
Description Made by Heckler&Koch GmbH_Is chambered in the .40 S&W cartridge, offering an edge_over most 9mm submachine guns due to it's increased power.
ShowAttachments true
ShowDamage true
ShowAccuracy true
ShowRecoil true
ShowReloadTime true
ShowCrosshair false
ReloadSoundRange 6
GunSoundRange 232

//Casing Ejection
CasingModel rainfire.GenericCasing
CasingTexture SkinGenericCasing2

//Muzzle Flashes
FlashModel rainfire.GenericFlash
FlashTexture SkinGenericFlash