Basically i'm looking for a plugin where I can increase damage on hatchet against buildings but not on players. What should I install for this to work?
[DOUBLEPOST=1487952591][/DOUBLEPOST]I mean only against Wooden doors nothing else.
Rust Hatchet damage from wooden doors
Discussion in 'Plugin Requests' started by wIzard 6, Feb 24, 2017.
-
I can help you out. Just wood doors and just hatchets?
-
-
I'd just recommend scaling the hatchets damage down to a level that makes doors stronger.. if you know what I mean
I'll try to hammer this out later! -
For stronger doors, do something like:
Code:float newHealth = 500f; // new door health foreach(Door door in GameObjects.FindObjectsOfType(typeof(Door))) // get all doors if(door.ShortPrefabName == "door.double.hinged.wood" || door.ShortPrefabName == "door.hinged.wood") // make sure it's a wood door door.InitializeHealth(newHealth * door.healthFraction, newHealth); // scale door health accounting for partial health
-
[DOUBLEPOST=1488084685][/DOUBLEPOST]Ill pm it to you.