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
sabrinka30

Мясо курицы

Ребята,помогите решить проблему!Когда таскаешь курицу в инвентаре,она гниет,но при разделывании мясо в нормальном состоянии.Как сделать,чтобы и мясо было гнилое?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

как ты курицу в инвентаре таскаешь?)

Share this post


Link to post
Share on other sites



  • 0

 

33 минуты назад, DOPHAMINE сказал:

как ты курицу в инвентаре таскаешь?)

Есть скрипт,при убийстве курицы если нет возможности ее разделать,то можно положить ее в инвентарь или взять в руки.

Edited by sabrinka30 (see edit history)

Share this post


Link to post
Share on other sites
  • 0
4 часа назад, sabrinka30 сказал:

Ребята,помогите решить проблему!Когда таскаешь курицу в инвентаре,она гниет,но при разделывании мясо в нормальном состоянии.Как сделать,чтобы и мясо было гнилое?

Изменить скрипт разделки мяса, чтобы проверялось состояние курицы

Share this post


Link to post
Share on other sites
  • 0
modded class РазделатьКурицу
{
	override void Do(аргументы)
	{
		super.Do(аргументы);
		ItemBase курица = ItemBase.Cast(results[0 (или не 0, смотря сколько мяса)];
		MiscGameplayFunctions.TransferItemProperties(ingredients[0], курица, true, true, true);
	}
}

Всё по памяти, русских слов быть не должно если что, в TransferItemProperties почитай названия аргументов, ненужные в false.
Это концепт, а не готовый код. Разберёшься, думаю

UPD на случай, если тут есть танкисты - MiscGameplayFunstions.c ищется в файлах Дейза просто по названию, проблем быть не должно. TransferItemProperties внутри этого класса

 

Edited by XenoZD (see edit history)

Share this post


Link to post
Share on other sites

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.