Jump to content

deactivate decay?

Closed 1.0.2 1.0.3

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.

Share this comment


Link to comment

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);
	}

 

Share this comment


Link to comment
433.2k

Downloads

Total number of downloads.

2.3k

Customers

Total customers served.

31.9k

Files Sold

Total number of files sold.

518.2k

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.