I think i found where they changed the latest JunkPile Respawn float.
https://i.imgur.com/4tOiu9F.png
I've tried for a while to try and change it, how could this be done?
Changing JunkPile respawn float?
Discussion in 'Rust Development' started by ToppDogg420, Jan 19, 2018.
-
Attached Files:
-
-
How about: Search the number in the code???
Code:// JunkPile private const float lifetimeMinutes = 30f;
And NO, there's no ConVar.Last edited by a moderator: Jan 19, 2018 -
Thanks
[DOUBLEPOST=1516453524][/DOUBLEPOST]I got this to work but thanks for pointing me in rigfht direction
Code:using Facepunch; using Network; using System; using System.Collections.Generic; using UnityEngine;namespace Oxide.Plugins { [Info("ChangeJunk", "topper", "1.0.0")] class ChangeJunk : RustPlugin { public class JunkPile{ private const float lifetimeMinutes = 2f; } }}
-
This works if people want to speed up junkpile respawn
Code:using Facepunch; using Network; using System; using System.Collections.Generic; using UnityEngine;namespace Oxide.Plugins { [Info("ChangeJunk", "topper", "1.0.0")] class ChangeJunk : RustPlugin { void OnServerInitialized(BaseEntity entity) { ProcessJunk(entity); } void OnEntitySpawned(BaseEntity entity) { ProcessJunk(entity); } private void ProcessJunk(BaseEntity entity) { var junkPile = entity as JunkPile; if (junkPile != null) { junkPile.Invoke("lifetimeMinutes", 10f); junkPile.CancelInvoke("TimeOut"); } } } }