Показать сообщение отдельно
Старый 10.03.2015, 10:47   #65
jabo
подсадной пассажир
 
Аватар для jabo
 
Регистрация: 15.01.2010
Адрес: Earth
Сообщений: 1,431
По умолчанию

Обсуждалось действительно очень много раз. А в игровом коде как-то так:

ШВАК

Цитата:
public class MGunShVAKs extends MGunAircraftGeneric
{

public MGunShVAKs()
{
}

public GunProperties createProperties()
{
GunProperties gunproperties = super.createProperties();
gunproperties.bCannon = false;
gunproperties.bUseHookAsRel = true;
gunproperties.fireMesh = "3DO/Effects/GunFire/20mm/mono.sim";
gunproperties.fire = null;
gunproperties.sprite = "3DO/Effects/GunFire/20mm/GunFlare.eff";
gunproperties.smoke = "effects/smokes/MachineGun.eff";
gunproperties.shells = "3DO/Effects/GunShells/GunShells.eff";
gunproperties.sound = "weapon.mgun_20_700";
gunproperties.emitColor = new Color3f(1.0F, 1.0F, 0.0F);
gunproperties.emitI = 10F;
gunproperties.emitR = 3F;
gunproperties.emitTime = 0.03F;
gunproperties.aimMinDist = 10F;
gunproperties.aimMaxDist = 1000F;
gunproperties.weaponType = 3;
gunproperties.maxDeltaAngle = 0.14F;
gunproperties.shotFreq = 10.83333F;
gunproperties.traceFreq = 3;
gunproperties.bullets = 120;
gunproperties.bulletsCluster = 1;
gunproperties.bullet = (new BulletProperties[] {
new BulletProperties(),
});
gunproperties.bullet[0].massa = 0.096F;_______________AP
gunproperties.bullet[0].kalibr = 0.000248F;
gunproperties.bullet[0].speed = 800F;
gunproperties.bullet[0].power = 0.001F;
gunproperties.bullet[0].powerType = 0;
gunproperties.bullet[0].powerRadius = 0.0F;
gunproperties.bullet[0].traceMesh = "3do/effects/tracers/20mmYellow/mono.sim";
gunproperties.bullet[0].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
gunproperties.bullet[0].traceColor = 0xd200ffff;
gunproperties.bullet[0].timeLife = 2.5F;
gunproperties.bullet[1].massa = 0.096F;_______________НЕ
gunproperties.bullet[1].kalibr = 0.000248F;
gunproperties.bullet[1].speed = 800F;
gunproperties.bullet[1].power = 0.004488F;
gunproperties.bullet[1].powerType = 0;
gunproperties.bullet[1].powerRadius = 0.25F;
gunproperties.bullet[1].traceMesh = null;
gunproperties.bullet[1].traceTrail = null;
gunproperties.bullet[1].traceColor = 0;
gunproperties.bullet[1].timeLife = 2.5F;


return gunproperties;
}

public int nextIndexBulletType()
MG151/20

Цитата:
public class MGunMG15120MGs extends MGunAircraftGeneric
{

public MGunMG15120MGs()
{
}

public GunProperties createProperties()
{
GunProperties gunproperties = super.createProperties();
gunproperties.bCannon = false;
gunproperties.bUseHookAsRel = true;
gunproperties.fireMesh = "3DO/Effects/GunFire/20mm/mono.sim";
gunproperties.fire = null;
gunproperties.sprite = "3DO/Effects/GunFire/20mm/GunFlare.eff";
gunproperties.smoke = "effects/smokes/MachineGun.eff";
gunproperties.shells = "3DO/Effects/GunShells/GunShells.eff";
gunproperties.sound = "weapon.mgun_20_700";
gunproperties.emitColor = new Color3f(1.0F, 1.0F, 0.0F);
gunproperties.emitI = 10F;
gunproperties.emitR = 3F;
gunproperties.emitTime = 0.03F;
gunproperties.aimMinDist = 10F;
gunproperties.aimMaxDist = 1000F;
gunproperties.weaponType = 3;
gunproperties.maxDeltaAngle = 0.28F;
gunproperties.shotFreq = 11.5F;
gunproperties.traceFreq = 5;
gunproperties.bullets = 250;
gunproperties.bulletsCluster = 1;
gunproperties.bullet = (new BulletProperties[] {
new BulletProperties(), new BulletProperties(), new BulletProperties(), new BulletProperties(), new BulletProperties()
});
gunproperties.bullet[0].massa = 0.115F;
gunproperties.bullet[0].kalibr = 0.00032F;
gunproperties.bullet[0].speed = 710F;
gunproperties.bullet[0].power = 0.0036F;
gunproperties.bullet[0].powerType = 0;
gunproperties.bullet[0].powerRadius = 0.0F;
gunproperties.bullet[0].traceMesh = "3do/effects/tracers/20mmBlue/mono.sim";
gunproperties.bullet[0].traceTrail = "3DO/Effects/Tracers/TrailCurved.eff";
gunproperties.bullet[0].traceColor = 0xd2ff0000;
gunproperties.bullet[0].timeLife = 3.3F;
gunproperties.bullet[1].massa = 0.115F;
gunproperties.bullet[1].kalibr = 0.000404F;
gunproperties.bullet[1].speed = 705F;
gunproperties.bullet[1].power = 0.0044F;
gunproperties.bullet[1].powerType = 0;
gunproperties.bullet[1].powerRadius = 0.1F;
gunproperties.bullet[1].traceMesh = "3do/effects/tracers/20mmCyan/mono.sim";
gunproperties.bullet[1].traceTrail = "3DO/Effects/Tracers/TrailCurved.eff";
gunproperties.bullet[1].traceColor = 0xd2ffff00;
gunproperties.bullet[1].timeLife = 3F;
gunproperties.bullet[2].massa = 0.092F;
gunproperties.bullet[2].kalibr = 0.000404F;
gunproperties.bullet[2].speed = 775F;
gunproperties.bullet[2].power = 0.01395F;
gunproperties.bullet[2].powerType = 0;
gunproperties.bullet[2].powerRadius = 0.2F;
gunproperties.bullet[2].traceMesh = "3do/effects/tracers/20mmCyan/mono.sim";
gunproperties.bullet[2].traceTrail = "3DO/Effects/Tracers/TrailCurved.eff";
gunproperties.bullet[2].traceColor = 0xd2ffff00;
gunproperties.bullet[2].timeLife = 2.0F;


return gunproperties;
}
У советов больше начальная скорость снарядов, гансам же дали больше заряд ВВ
jabo вне форума   Ответить с цитированием