Jump to content

deactivate decay?

Closed 1.0.2 1.0.3

snetzer
snetzer

Posted

Hello

 

is it possible to deactivate decay(despawn)?

 

best regards

NubbbZ

Posted

I can take a look but no guarantee, I recommend you use that plugin above.

NubbbZ

Posted

Changed Status from Pending to Work in Progress

snetzer

Posted

My server is a pve server on which decay is switched off. I think the fish trap has no real decay, it is more wear and tear.

NubbbZ

Posted

same here, i use that plugin and it stops the damage. and it is decay damage "internal server code"

	public void TrapWildlife(global::TrappableWildlife trapped)
	{
		global::Item item = global::ItemManager.Create(trapped.inventoryObject, Random.Range(trapped.minToCatch, trapped.maxToCatch + 1), 0UL);
		if (!item.MoveToContainer(this.inventory, -1, true))
		{
			item.Remove(0f);
		}
		else
		{
			base.SetFlag(global::BaseEntity.Flags.Reserved1, true, false, true);
		}
		this.SetTrapActive(false);
		this.Hurt(this.StartMaxHealth() * 0.1f, Rust.DamageType.Decay, null, false);
	}

 

NubbbZ

Posted

just uploaded a new update with an option to disable decay, please inform me if it works or not 🙂

snetzer

Posted

I will test it in about 1 hour and then write to you if it works

snetzer

Posted

thank you, it works. very good work.

best regards

NubbbZ

Posted

Changed Status from Work in Progress to Closed

Changed Fixed In to 1.0.3

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

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.