Показать сообщение отдельно
Старый 09.04.2022, 08:03   #43
Vasya
Звичайна людина на Землі
 
Аватар для Vasya
 
Регистрация: 06.11.2011
Адрес: Україна, м.Київ, Печерський район, вул. Кіквідзе
Сообщений: 8,085
Смущение

http://www.airwar.ru/weapon/guns/vya23.html
Код:
public MGunVYas()
    {
    }

    public GunProperties createProperties()
    {
        GunProperties gunproperties = super.createProperties();
        gunproperties.bCannon = false;
        gunproperties.bUseHookAsRel = true;
        gunproperties.fireMesh = null;
        gunproperties.fire = "3DO/Effects/GunFire/30mm/GunFire.eff";
        gunproperties.sprite = "3DO/Effects/GunFire/30mm/GunFlare.eff";
        gunproperties.smoke = "effects/smokes/12mmSmoke.eff";
        gunproperties.shells = "3DO/Effects/GunShells/CannonShells.eff";
        gunproperties.sound = "weapon.cannon_vya23";
        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 = -1;
        gunproperties.maxDeltaAngle = 0.13F;
        gunproperties.shotFreq = 17F;
        gunproperties.traceFreq = 4;
        gunproperties.bullets = 120;
        gunproperties.bulletsCluster = 1;
        gunproperties.bullet = (new BulletProperties[] {
            new BulletProperties(), new BulletProperties(),new BulletProperties(), new BulletProperties(), new BulletProperties()
        });
        gunproperties.bullet[0].massa = 0.199F;
        gunproperties.bullet[0].kalibr = 0.0003174F;
        gunproperties.bullet[0].speed = 890F;
        gunproperties.bullet[0].power = 0.0120F;
        gunproperties.bullet[0].powerType = 2;
        gunproperties.bullet[0].powerRadius = 0.0F;
        gunproperties.bullet[0].traceMesh = "3do/effects/tracers/20mmRed/mono.sim";
        gunproperties.bullet[0].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[0].traceColor = 0xd9002eff;
        gunproperties.bullet[0].timeLife = 3F;
        gunproperties.bullet[1].massa = 0.199F;
        gunproperties.bullet[1].kalibr = 0.0003174F;
        gunproperties.bullet[1].speed = 890F;
        gunproperties.bullet[1].power = 0.0120F;
        gunproperties.bullet[1].powerType = 2;
        gunproperties.bullet[1].powerRadius = 0.0F;
        gunproperties.bullet[1].traceMesh = "3do/effects/tracers/20mmRed/mono.sim";
        gunproperties.bullet[1].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[1].traceColor = 0xd9002eff;
        gunproperties.bullet[1].timeLife = 3F;
        gunproperties.bullet[2].massa = 0.199F;
        gunproperties.bullet[2].kalibr = 0.0003174F;
        gunproperties.bullet[2].speed = 890F;
        gunproperties.bullet[2].power = 0.0120F;
        gunproperties.bullet[2].powerType = 2;
        gunproperties.bullet[2].powerRadius = 0.0F;
        gunproperties.bullet[2].traceMesh = "3do/effects/tracers/20mmRed/mono.sim";
        gunproperties.bullet[2].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[2].traceColor = 0xd9002eff;
        gunproperties.bullet[2].timeLife = 3F;
        gunproperties.bullet[3].massa = 0.201F;
        gunproperties.bullet[3].kalibr = 0.0003174F;
        gunproperties.bullet[3].speed = 890F;
        gunproperties.bullet[3].power = 0.016F;
        gunproperties.bullet[3].powerType = 2;
        gunproperties.bullet[3].powerRadius = 1.0F;
        gunproperties.bullet[3].traceMesh = null;
        gunproperties.bullet[3].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[3].traceColor = 0;
        gunproperties.bullet[3].timeLife = 4F;        
        gunproperties.bullet[4].massa = 0.199F;
        gunproperties.bullet[4].kalibr = 0.0003174F;
        gunproperties.bullet[4].speed = 890F;
        gunproperties.bullet[4].power = 0.0120F;
        gunproperties.bullet[4].powerType = 2;
        gunproperties.bullet[4].powerRadius = 0.0F;
        gunproperties.bullet[4].traceMesh = "3do/effects/tracers/20mmRed/mono.sim";
        gunproperties.bullet[4].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[4].traceColor = 0xd9002eff;
        gunproperties.bullet[4].timeLife = 3F;
        return gunproperties;
    }
}
http://www.airwar.ru/weapon/guns/ns23.html
Код:
public MGunNS23s()
    {
    }

    public GunProperties createProperties()
    {
        GunProperties gunproperties = super.createProperties();
        gunproperties.bCannon = false;
        gunproperties.bUseHookAsRel = true;
        gunproperties.fireMesh = null;
        gunproperties.fire = "3DO/Effects/GunFire/30mm/GunFire.eff";
        gunproperties.sprite = "3DO/Effects/GunFire/30mm/GunFlare.eff";
        gunproperties.smoke = "effects/smokes/MachineGun.eff";
        gunproperties.shells = "3DO/Effects/GunShells/CannonShells.eff";
        gunproperties.sound = "weapon.MGun_NS23";
        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.20F;
        gunproperties.shotFreq = 18F;
        gunproperties.traceFreq = 3;
        gunproperties.bullets = 120;
        gunproperties.bulletsCluster = 1;
        gunproperties.bullet = (new BulletProperties[] {
            new BulletProperties(), new BulletProperties(),new BulletProperties(), new BulletProperties(), new BulletProperties()
        });
        gunproperties.bullet[0].massa = 0.196F;
        gunproperties.bullet[0].kalibr = 0.000279F;
        gunproperties.bullet[0].speed = 700F;
        gunproperties.bullet[0].power = 0.0112F;
        gunproperties.bullet[0].powerType = 0;
        gunproperties.bullet[0].powerRadius = 0.968F;
        gunproperties.bullet[0].traceMesh = "3do/effects/tracers/20mmRed/mono.sim";
        gunproperties.bullet[0].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[0].traceColor = 0xd9002eff;
        gunproperties.bullet[0].timeLife = 3F;
        gunproperties.bullet[1].massa = 0.201F;
        gunproperties.bullet[1].kalibr = 0.000279F;
        gunproperties.bullet[1].speed = 690F;
        gunproperties.bullet[1].power = 0.016F;
        gunproperties.bullet[1].powerType = 2;
        gunproperties.bullet[1].powerRadius = 1.0F;
        gunproperties.bullet[1].traceMesh = null;
        gunproperties.bullet[1].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[1].traceColor = 0;
        gunproperties.bullet[1].timeLife = 4F;
        gunproperties.bullet[2].massa = 0.201F;
        gunproperties.bullet[2].kalibr = 0.000279F;
        gunproperties.bullet[2].speed = 690F;
        gunproperties.bullet[2].power = 0.016F;
        gunproperties.bullet[2].powerType = 2;
        gunproperties.bullet[2].powerRadius = 1.0F;
        gunproperties.bullet[2].traceMesh = null;
        gunproperties.bullet[2].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[2].traceColor = 0;
        gunproperties.bullet[2].timeLife = 4F;
        gunproperties.bullet[3].massa = 0.196F;
        gunproperties.bullet[3].kalibr = 0.000279F;
        gunproperties.bullet[3].speed = 700F;
        gunproperties.bullet[3].power = 0.0112F;
        gunproperties.bullet[3].powerType = 0;
        gunproperties.bullet[3].powerRadius = 0.968F;
        gunproperties.bullet[3].traceMesh = "3do/effects/tracers/20mmRed/mono.sim";
        gunproperties.bullet[3].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[3].traceColor = 0xd9002eff;
        gunproperties.bullet[3].timeLife = 3F;
        gunproperties.bullet[4].massa = 0.199F;
        gunproperties.bullet[4].kalibr = 0.000279F;
        gunproperties.bullet[4].speed = 700F;
        gunproperties.bullet[4].power = 0.0120F;
        gunproperties.bullet[4].powerType = 2;
        gunproperties.bullet[4].powerRadius = 0.0F;
        gunproperties.bullet[4].traceMesh = "3do/effects/tracers/20mmRed/mono.sim";
        gunproperties.bullet[4].traceTrail = "effects/Smokes/SmokeBlack_BuletteTrail.eff";
        gunproperties.bullet[4].traceColor = 0xd9002eff;
        gunproperties.bullet[4].timeLife = 3F;
        return gunproperties;
    }
}
Пока без тестов, могут быть очепятки.
Vasya вне форума   Ответить с цитированием