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
vanish767

Свойства костра

Может делал кто, хочу наследовать свойства костра , а конкретнее дамаг и эффекты при нём, но вот не могу найти способ, сам дамаг не сложно, но вот эффекты дамага и температуры никак не хотят, знает кто способ ?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Класс
 

class FireplaceBase : ItemBase

Функция

protected void StartHeating()

Блок
 

//create area damage
		if (IsBaseFireplace() && !IsOven())
			CreateAreaDamage();

Блок
 

void CreateAreaDamage()
	{
		//destroy area damage if some already exists
		DestroyAreaDamage();
		
		//create new area damage
		m_AreaDamage = new AreaDamageLoopedDeferred(this);
		m_AreaDamage.SetDamageComponentType(AreaDamageComponentTypes.HITZONE);
		m_AreaDamage.SetExtents("-0.30 0 -0.30", "0.30 0.75 0.30");
		m_AreaDamage.SetLoopInterval(0.5);
		m_AreaDamage.SetDeferDuration(0.5);
		m_AreaDamage.SetHitZones({ "Head","Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" });
		m_AreaDamage.SetAmmoName("FireDamage");
		m_AreaDamage.Spawn();
	}

Дальше уже разбирать от того что ты хочешь сделать
Распаковываешь игру через dayz tools, используешь IDE для кода, запускаешь полный поиск по Ctrl + Shift + F и погнал гадать как назвали разрабы функции, я нашел по "FireplaceBase" и копался в файле по "damage"

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.

Поддержка