//#M#011#
//////////////////////////////////////////////////////////////////////////
// The new weapon instance is passed to this function as the 'this'
// Properties can be set like this.Property = x, or the this prefix can be left off.
//////////////////////////////////////////////////////////////////////////

WEAPON.M79 = 103; 					// Defined into g_etbot_interface.cpp

//////////////////////////////////////////////////////////////////////////
// Overall weapon properties.
this.Name = "M79";
this.WeaponId = WEAPON.M79;
this.PrimaryFire.AmmoType = WEAPON.M79;
//~ this.MinUseTime = 10.0;

//////////////////////////////////////////////////////////////////////////
// Set some weapon properties that affect some internal logic.
this.PrimaryFire.WeaponType = "projectile";
this.PrimaryFire.ProjectileSpeed = 2000;
this.PrimaryFire.RequiresAmmo = true;
this.PrimaryFire.WaterProof = false;
this.PrimaryFire.SplashDamage = false;
this.PrimaryFire.InheritsVelocity = false;
this.PrimaryFire.ProjectileGravity = 1.0;
this.PrimaryFire.NeedsInRange = false;
this.PrimaryFire.MinRange = 0.0;
this.PrimaryFire.MaxRange = 1000.0;
this.PrimaryFire.DelayAfterFiring = 5.0;
this.PrimaryFire.IgnoreReload = true;

this.PrimaryFire.MaxAimError = Vector2(0, 0);
this.PrimaryFire.AimOffset = Vector3(0, 0, 0);

this.PrimaryFire.SetTargetBias(CLASS.VEHICLE_HVY, 1);
this.PrimaryFire.DefaultDesirability = 0.8;
//~ this.PrimaryFire.SetDesirabilityRange(256, 500, 0.4);
//~ this.PrimaryFire.SetDesirabilityRange(500, 1500, 0.7);
//~ this.PrimaryFire.SetDesirabilityRange(1500, 2500, 0.9);
this.PrimaryFire.SetDesirabilityRange(500, 2600, 0.8);
