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
fantom3888

Изменение количества шкур в стаке

Не могу правильно сделать стак шкур животных, короче при разделки он выдает не по одной шкуре а то количество которое указываю  в стаке

class WildboarPelt : Pelt_Base {
        canBeSplit = 1;
        varQuantityInit = 1;
        varQuantityMin = 0;
        varQuantityMax = 4;
        varQuantityDestroyOnMin = 1;
        varStackMax = 4;
    };

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Если я правильно понял ваш вопрос то вам нужно изменить canBeSplit на 0.

Share this post


Link to post
Share on other sites



  • 0

Нужно лезть в ActionSkining и прописывать quantity после создания предмета для IskindOf("Pelt_Base") . По дефолту предметы спавнит с максимальным quantity

Share this post


Link to post
Share on other sites
  • 0

У каждого animals в config.cpp есть количество при разделке:

class Skinning {
			class ObtainedSteaks {
				item = "CowSteakMeat";
				count = 10;
				quantityMinMaxCoef[] = {0.75, 1};
			};
			
			class ObtainedPelt {
				item = "CowPelt";
				count = 1;
				quantityCoef = 1;
				transferToolDamageCoef = 1;
			};
			
			class ObtainedGuts {
				item = "Guts";
				count = 0;
				quantityMinMaxCoef[] = {0.5, 1};
			};
			
			class ObtainedLard {
				item = "Lard";
				count = 2;
				quantityMinMaxCoef[] = {0.5, 1};
			};
			
			class ObtainedBones {
				item = "Bone";
				count = 1;
				quantityMinMaxCoef[] = {0.8, 1};
				transferToolDamageCoef = 1;
			};
		};

 

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

Для всех шкур делаю следующее
 

class CfgVehicles
{
	class Inventory_Base;
	class Pelt_Base: Inventory_Base
	{
		displayName="$STR_CfgVehicles_Pelt_Base0";
		descriptionShort="";
		animClass="NoFireClass";
		absorbency=0.30000001;
		repairableWithKits[]={3};
		repairCosts[]={25};
		canBeSplit=1;
		varQuantityInit=1;
		varQuantityMin=1;
		varQuantityMax=1;
		varQuantityDestroyOnMin=1;
		varStackMax=5;
		class AnimEvents
		{
			class SoundWeapon
			{
				class pickUpItem_Light
				{
					soundSet="pickUpCourierBag_Light_SoundSet";
					id=796;
				};
				class pickUpItem
				{
					soundSet="pickUpCourierBag_SoundSet";
					id=797;
				};
			};
		};
	};
};

Если делаю значение         varQuantityMin=1; то при разделке выпадает полный стак
если ставлю         varQuantityMin=0; то выпадает 0,2 из 5 и не стакаются совсем.
Помогите решить проблему
 

Edited by Alex-Z (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.