This isn't my mod but I got it working with the following:
Change:
npc.Brain.Senses.Init(...) to the following:
npc.Brain.Senses.Init(npc, npc.Brain, 5f, 140f, 140f, -1f, true, false, true, 60f, false, false, true, EntityType.Player, false);
No idea if this is the correct fix but it will compile now.
I would upload the HuntsMan.cs file in it's entirety but I am pretty sure that would get me banned.
I apologize for being dense but in NoDecay what would have to set from true to false? I only have 3 settings set to true:
"DestroyOnZero": true,
"disableWarning": true,
"protectVehicleOnLift": true,
I tried setting both DestroyOnZero and protectVehicleOnLift to false and that didn't stop the warning.
I am receiving the following error :
| Calling hook OnEntityTakeDamage resulted in a conflict between the following plugins: CopterTaxi - False (Boolean), NoDecay (True (Boolean))
I am not sure what part of the NoDecay plugin is causing the issue, would you happen to know? (This seems to also break the ScrapTaxi plugin and the Taxi cannot be called.)
When I remove NoDecay I receive:
Failed to call hook 'cmd_CallTaxi' on plugin 'CopterTaxi v1.2.1' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.CopterTaxi.CreateImage (Oxide.Game.Rust.Cui.CuiElementContainer& container, System.String name, System.String panel, System.String color, System.String image, System.String aMin, System.String aMax, System.Single Fadeout, System.Single Fadein, System.UInt64 skin) [0x0002a] in <f93b0f6c20b1439ea57f3046ce6ea44d>:0
at Oxide.Plugins.CopterTaxi.CreateCallCopterTaxiUI (BasePlayer player) [0x0021f] in <f93b0f6c20b1439ea57f3046ce6ea44d>:0
at Oxide.Plugins.CopterTaxi.cmd_CallTaxi (BasePlayer player, System.String c, System.String[] a) [0x00039] in <f93b0f6c20b1439ea57f3046ce6ea44d>:0
at Oxide.Plugins.CopterTaxi.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00cdb] in <f93b0f6c20b1439ea57f3046ce6ea44d>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cc99cb05b42e4ea494cdf294badea406>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <99d545163fdd4d57a562df7989f2ca0a>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <99d545163fdd4d57a562df7989f2ca0a>:0
Here is the json for the NoDecay plugin and a link to the actual plugin I am using.
NoDecay.json
Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.
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.