// example addon for the DesnoGuns Mod

var ADDON_NAME = "Example Addon";

var ADDON_DESCRIPTION = "More and more guns example addon by Desno365. WOW.";

var ADDON_WEAPONS = [

	{
		weaponType: "gun",
		name: "Glock 18",
		gunType: "handgun",
		buttonType: "on_click",
		id: 3500,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 13,
		texture: "glock_18",
		ammo: 20,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M9Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/ColtReload.ogg",
	},

	{
		weaponType: "gun",
		name: "AK12",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3501,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "ak_12",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/AK47Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "MP7",
		gunType: "sub_machine",
		buttonType: "on_touch",
		id: 3502,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		zoomLevel: 18,
		accuracy: 3,
		texture: "mp7",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/MP5Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/TT33Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "M1 Garand",
		gunType: "sniper_rifle",
		buttonType: "on_click",
		id: 3503,
		fireRate: 1,
		recoil: 4,
		bulletSpeed: 5.9,
		zoomLevel: 23,
		accuracy: 2,
		texture: "m1_garand",
		ammo: 20,
		smoke: 0,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M14_and_M16A4Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/M1CarbineReload.ogg",
	},

	{
		weaponType: "gun",
		name: "Kriss Vector",
		gunType: "sub_machine",
		buttonType: "on_touch",
		id: 3504,
		fireRate: 2,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 3,
		zoomLevel: 18,
		texture: "kriss_vector",
		ammo: 25,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/P90_and_Bizon_and_G3Shoot_and_Minigun.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP40Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "Famas",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3508,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "famas",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/FNSCAR_and_AUG_and_MTARShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "HAMR",
		gunType: "sub_machine",
		buttonType: "on_touch",
		id: 3509,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 18,
		texture: "hamr",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/P90_and_Bizon_and_G3Shoot_and_Minigun.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP40Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "M32",
		gunType: "launcher",
		buttonType: "on_click",
		id: 3510,
		fireRate: 1,
		recoil: 8,
		bulletSpeed: 2.4,
		accuracy: 15,
		zoomLevel: 10,
		texture: "m32",
		ammo: 6,
		smoke: 0,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "tnt",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/GrenadeLauncherShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/GL6Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "Mac-10",
		gunType: "sub_machine",
		buttonType: "on_touch",
		id: 3511,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 18,
		texture: "mac_10",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/MiniUziShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/ColtReload.ogg",
	},

	{
		weaponType: "gun",
		name: "M4A1",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3512,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "m4a1",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M14_and_M16A4Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "UMP45",
		gunType: "sub_machine",
		buttonType: "on_touch",
		id: 3513,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		zoomLevel: 18,
		accuracy: 5,
		texture: "ump45",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/FNSCAR_and_AUG_and_MTARShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "SMAW",
		gunType: "launcher",
		buttonType: "on_click",
		id: 3514,
		fireRate: 10,
		recoil: 13,
		bulletSpeed: 3.9,
		accuracy: 5,
		zoomLevel: 12,
		texture: "smaw",
		ammo: 1,
		smoke: 4,
		// BEHAVIOR
		shotType: "normal",
		hasParticleTrail: true,
		particleTrailDistance: 3,
		particleTrailId: 4,
		bulletType: "normal_explosive_on_touch",
		bulletsExplosionRadius: 4,
		// SOUNDS
		sound: "custom/my-addon-name-sounds/AT4_and_M72LAW_and_Panzerfaust3Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/BazookaReload.ogg",
	},

	{
		weaponType: "gun",
		name: "XM8",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3515,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "xm8",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M14_and_M16A4Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "L85A2",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3516,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "l85a2",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/FNSCAR_and_AUG_and_MTARShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "Saiga-12",
		gunType: "shotgun",
		buttonType: "on_click",
		id: 3517,
		fireRate: 15,
		recoil: 22,
		bulletSpeed: 3.9,
		accuracy: 10,
		zoomLevel: 15,
		texture: "saiga",
		ammo: 5,
		smoke: 1,
		// BEHAVIOR
		shotType: "shotgun",
		shotgunBullets: 8,
		shotgunDegreesSpread: 5,
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/AA-12Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/PPSHReload.ogg",
	},

	{
		weaponType: "gun",
		name: "AS VAL",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3520,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "as_val",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M14_and_M16A4Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "SCAR-H",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3521,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "scar_h",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/FNSCAR_and_AUG_and_MTARShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "HK416",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3522,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		zoomLevel: 23,
		accuracy: 5,
		texture: "hk416",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M14_and_M16A4Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "Thompson",
		gunType: "sub_machine",
		buttonType: "on_touch",
		id: 3523,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 18,
		texture: "thompson",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/P90_and_Bizon_and_G3Shoot_and_Minigun.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/ThompsonReload.ogg",
	},

	{
		weaponType: "gun",
		name: "Steyr AUG",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3524,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "steyr_aug",
		ammo: 42,
		smoke: 4,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/FNSCAR_and_AUG_and_MTARShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "Galil",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3525,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "galil",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/AK47Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "M1191 .Colt",
		gunType: "handgun",
		buttonType: "on_click",
		id: 3526,
		fireRate: 1,
		recoil: 3,
		bulletSpeed: 5.1,
		accuracy: 6,
		zoomLevel: 13,
		texture: "m1191",
		ammo: 10,
		smoke: 0,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M9Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/ColtReload.ogg",
	},

	{
		weaponType: "gun",
		name: "XM1014",
		gunType: "shotgun",
		buttonType: "on_click",
		id: 3527,
		fireRate: 15,
		recoil: 22,
		bulletSpeed: 3.9,
		accuracy: 11,
		zoomLevel: 15,
		texture: "xm1014",
		ammo: 7,
		smoke: 1,
		// BEHAVIOR
		shotType: "shotgun",
		shotgunBullets: 7,
		shotgunDegreesSpread: 2,
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/W1200_and_SPASShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/W1200Reload.ogg",
	},

  {
		weaponType: "gun",
		name: "SG551",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3531,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "sg551",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/SG550Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

  {
		weaponType: "gun",
		name: "SA58",
		gunType: "assault_rifle",
		buttonType: "on_touch",
		id: 3530,
		fireRate: 3,
		recoil: 3,
		bulletSpeed: 5.9,
		accuracy: 5,
		zoomLevel: 23,
		texture: "sa58",
		ammo: 30,
		smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/M14_and_M16A4Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/MP44Reload.ogg",
	},

	{
		weaponType: "gun",
		name: "FP6",
		gunType: "shotgun",
		buttonType: "on_click",
		id: 3532,
		fireRate: 15,
		recoil: 22,
		bulletSpeed: 3.9,
		accuracy: 11,
		zoomLevel: 15,
		texture: "fp6",
		ammo: 7,
		smoke: 1,
     // BEHAVIOR
		shotType: "shotgun",
		shotgunBullets: 7,
		shotgunDegreesSpread: 2,
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/W1200_and_SPASShoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/W1200Reload.ogg",
	},

  {
		weaponType: "gun",
		name: "FR F2",
		gunType: "sniper_rifle",
		buttonType: "on_click",
		id: 3529,
		fireRate: 26,
		recoil: 14,
		bulletSpeed: 9.9,
		zoomLevel: 40,
		accuracy: 2,
		hasAimImageLayer: true,
		texture: "frf2",
		ammo: 10,
     smoke: 1,
		// BEHAVIOR
		shotType: "normal",
		bulletType: "normal",
		// SOUNDS
		sound: "custom/my-addon-name-sounds/L96Shoot.ogg",
		reloadSound: "custom/my-addon-name-sounds/reload/BARReload.ogg",
	},
];


/*
	// REFERENCE
	{
		// all possible variables for a gun
		weaponType: "gun", // must be gun
		name: string, // the name of the gun.
		gunType: string, // the type of the gun, can be "assault_rifle", "sub_machine", "light_machine", "sniper_rifle", "shotgun", "machine_pistol", "handgun", "launcher" and "minigun".
		buttonType: string, // how the mod manages the click of the "fire" button, can be "on_click": the gun shoot every time you click; "on_touch": when you click the "fire" button the gun continues to shoot until you release it; "on_touch_with_wait": it's a special on_touch type, it is like on_touch but the gun needs some time to load before shooting.
		id: int, // the unique id of the gun, must be a number > 512 and < 4096.
		fireRate: int, // an integer number > or = 1, it represents how many ticks (1/20 of a seconds) the gun has to wait before shooting another bullet.
		recoil: float, // a number > 0, the higher this number is the more recoil the gun will have.
		bulletSpeed: float, // a number > 0, this is the speed of the bullet. P.S.: this is not necessary with a flamethrower.
		accuracy: int, // a number > 0 and < 45, the higher this number is the less accuracy the gun will have.
		zoomLevel: int, // an integer number > 0 and < 68, the higher this number is the more zoom the gun will have when aiming.
		hasAimImageLayer: boolean, // show image when aiming, usually sniper rifles has this image.
		texture: String, // the name of the texture this gun uses.
		textureNumber: int, // the texture number of the texture, if you are using a custom texture you can delete this variable since this variable is only useful when using textures already present in Minecraft.
		ammo: int, // an integer number > 0, it represents the number of bullets in the ammo.
		ammunitionID: int, // here you can set a custom id for the ammunition used when reloading the gun. If you delete this variable the mod will use the default ammunition id of the gunType.
		smoke: int, // number of particles spawned after the gun has stopped shooting, if 0 can be deleted
		recipeShape: array, //  *! advanced variable, only for experts, if you don't understand what it does just delete it !*
		recipeDescription: array, //  *! advanced variable, only for experts, if you don't understand what it does just delete it !*

		// BEHAVIOR
		shotType: string, // can be "normal", "shotgun", "flamethrower"
		bulletType: string, // can be "normal", "normal_explosive_on_touch", "normal_explosive_on_time", "tnt", "snowball", "custom". This can be changed only with "normal" or "shotgun" types, not with flamethrower.
		customBulletId: int, //  *! advanced variable, only for experts, if you don't understand what it does just delete it !* entity id of the bullet that can be used with bulletType "custom"

		// options with shotType = "normal" or "shotgun"
		hasParticleTrail: boolean, // display a trail of particles behind the bullet
		particleTrailDistance: int, // the higher this number is the less distance particles will have between them and the player
		particleTrailId: int, // the id of the particle

		// options with shotType = "shotgun"
		shotgunBullets: int, // number of bullets the gun will shoot. Must be > or = 0 when using shotType "shotgun".
		shotgunDegreesSpread: float, // represents the width of the shotgun cone in degrees (it basically acts like an accuracy). Must be > or = 0 when using shotType "shotgun".
		shotgunWait: int, // *! advanced variable, only for experts, if you don't understand what it does just delete it !* it represents the number of milliseconds to wait before shooting the next bullet of the shotgun. If you want the shotgun bullets to be shot all at the same time just delete this variable

		// options with bulletType = "normal_explosive_on_time"
		bulletsExplosionDelay: int, // the milliseconds of delay before exploding
		bulletsExplosionRadius: int, // the radius of the explosion

		// options with bulletType = "normal_explosive_on_touch"
		bulletsExplosionRadius: int, // the radius of the explosion

		// SOUNDS
		hasntShootingSound: boolean,
		sound: String, // sound when shooting
		reloadSound: String, // sound when reloading

		// SOUNDS only for type "on_touch_with_wait"
		warmupSound: String,
		spinSound: String,
		hasntCooldownSound: boolean,
		cooldownSound: String,
	}

	// Please don't delete this reference from your addon, it can be useful for other people.
*/


// Don't delete or modify this function! It is called by the DesnoGuns Mod to load all your guns.
function loadWeaponsHook() { var arrobject = [ADDON_WEAPONS, ADDON_NAME, ADDON_DESCRIPTION]; net.zhuoweizhang.mcpelauncher.ScriptManager.callScriptMethod("loadWeaponsCallback", arrobject); }

