Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
RuslanVagner

Проблема с модификацией АК101

Решил перекрасить АК101, а заодно и мощности добавить. Перекрасил, добавил хп, добавил крашеный магазин и новые патроны прописал:

class AK101_ZR1: AK101
	{
		scope=2;
		displayName="AK101 v2";
		descriptionShort="Модифицированный АК101, питается кастомными патронами, при производстве использовались секретные технологии, благодаря которым прочность увеличена в 1000 раз";
		chamberableFrom[]=
		{
			"Ammo_ZR1_556x45"
		};
		magazines[]=
		{
			"Mag_AK101_ZR1_300Rnd"
		};
		hiddenSelectionsTextures[]=
		{
			"WeapZR1\weapons\firearms\AK101_ZR1\data\ak101_ZR1_co.paa",
			""
		};
		hiddenSelectionsMaterials[]=
		{
			"dz\weapons\firearms\AK101\data\ak101.rvmat",
			"DZ\weapons\attachments\magazine\data\magazine_ak74.rvmat"
		};
		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=300000;
				};
			};
		};
	};

Переделал магазин:

class Mag_AK101_ZR1_300Rnd: Mag_AK101_30Rnd
	{
		scope=2;
		displayName="Магазин АК101 v2";
		descriptionShort="";
		count=300;
		ammo="Bullet_ZR1_556x45";
		ammoItems[]=
		{
			"Ammo_ZR1_556x45"
		};
		tracersEvery=1;
		hiddenSelections[]=
		{
			"camo"
		};
		hiddenSelectionsTextures[]=
		{
			"WeapZR1\weapons\firearms\AK101_ZR1\data\ak101_ZR1_co.paa"
		};
		hiddenSelectionsMaterials[]=
		{
			"DZ\weapons\firearms\AK101\data\ak101.rvmat"
		};
		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=9999999;
				};
			};
		};
	};	

К нему патроны сделал:

class Ammo_ZR1_556x45: Ammo_556x45
	{
		scope=2;
		displayName="Патрон AK101 v2";
		descriptionShort="";
		ammo="Bullet_ZR1_556x45";
	};

К патрону пули:

class Bullet_ZR1_556x45: Bullet_556x45
	{
		scope=1;
		class DamageApplied
		{
			type="Projectile";
			dispersion=0;
			bleedThreshold=1;
			defaultDamageOverride[]=
			{
				{0.87,1}
			};
			class Health
			{
				damage=510;
			};
			class Blood
			{
				damage=500;
			};
			class Shock
			{
				damage=510;
			};
		};
	};

И вроде все, ак перекрашен, магазин перекрашен, патроны через админку спавнятся, но суть в чем, заряжаем магазин в автомат - патрон из магазина вычитается, но в автомате не спавнится - при передергивании затвора в инвентарь падает патрон, а из магазина снова вычитается. Далее, выкидываем магазин и пытаемся зарядить патрон напрямую в автомат, все виснет, клиент, а следом и сервер крашатся. Берем магазин, патроны разряжаются из магазина, в инвентаре появляются, но обратно не заряжается.
Подскажите, в чем может быть проблема?
Полную пбо прилагаю: Сcылка на полную PBO

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Попробуйте с таким конфигом пули запустить

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Share this post


Link to post
Share on other sites
MagicByte MagicByte MagicByte

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Поддержка