Пример #1
0
 public LAPV(int x, int y, Player _player)
     : base(x, y, VehicleType.LAPV, _player)
 {
     fuelCapacity = 100;
     fuel = fuelCapacity;
     maxSpeed = 2.5f;
     acceleration = 0.05f;
     deceleration = 0.03f;
     turnSpeed = 4f;
     bitmap = Bitmaps.Vehicles.LAPVBody;
     vehicleSizeX = Convert.ToInt32(bitmap.Width * 1.5f);
     vehicleSizeY = Convert.ToInt32(bitmap.Height * 1.5f);
     weapon = new LAPVWeapon(_player);
     relativeWeaponPos.X = 0;
     relativeWeaponPos.Y = 0;
     maxHealth = 120;
     health = maxHealth;
     ramDamage = 80;
     sideDamageMultiplier = 1.1f;
     grassMultiplier = 0.8f;
     engineSound = AudioFiles.LAPVSound;
 }
Пример #2
0
 public Motorfiets(int x, int y, Player _player)
     : base(x, y, VehicleType.Motorfiets, _player)
 {
     fuelCapacity = 70;
     fuel = fuelCapacity;
     maxSpeed = 1.1f;
     acceleration = 0.035f;
     deceleration = 0.07f;
     turnSpeed = 3.4f;
     bitmap = Bitmaps.Vehicles.MotorfietsBody;
     vehicleSizeX = bitmap.Width;
     vehicleSizeY = bitmap.Height;
     weapon = new LAPVWeapon(_player);
     relativeWeaponPos.X = 0;
     relativeWeaponPos.Y = 0;
     maxHealth = 60;
     health = maxHealth;
     ramDamage = 30;
     sideDamageMultiplier = 2;
     grassMultiplier = 0.4f;
 }