to avoid folks exploiting bots with melee weapons when on Peace_Keeper consider altering the code at line 436
From:
var heldWeapon = victim.GetHeldEntity() as BaseProjectile;
var heldFlame = victim.GetHeldEntity() as FlameThrower;
if (heldWeapon == null && heldFlame == null)
return 0f;
To:
var heldGun = victim.GetHeldEntity() as BaseProjectile;
var heldFlame = victim.GetHeldEntity() as FlameThrower;
var heldMelee = victim.GetHeldEntity() as BaseMelee;
var heldLauncher = victim.GetHeldEntity() as BaseLauncher;
var heldTorchWeapon = victim.GetHeldEntity() as TorchWeapon;
if (heldGun == null && heldMelee == null && heldLauncher == null && heldFlame == null && heldTorchWeapon == null)
return 0f;
That should attack folks if they have any potential weapon. I have not tested it, but I think it should surprise some exploiters. ;-)
BotSpawn
Moved
Total Downloads: 11,691 - First Release: Jul 31, 2017 - Last Update: Jul 27, 2018
- 5/5, 81 likes
-
Reinstalled server! OXIDE! In custom bot, “/botspawn add customname”! But it's still a mistake! Sorry, these words come from Google!
Code:Failed to call hook 'botspawn' on plugin 'BotSpawn v1.2.2' (JsonSerializationException: Self referencing loop detected for property 'normalized' with type 'UnityEngine.Vector3'. Path 'CustomProfiles.customname.Location.normalized.normalized'.) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContainerContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.Serialization.JsonContract& memberContract, System.Object& memberValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonPropert
-
-
Hello,
By bots are running around doing their thing and I decided that I wanted Kits for them. I've followed the various directions and my console is spitting out:
NullReferenceException: Object reference not set to an instance of an object
My bots are nude and have no Kits. Any thoughts? -
the plugin is not working. Zombies standing still
-
@yurkin that is not the plugin that is you not updating to latest version of oxide.
Update and your bots will move. -
[DOUBLEPOST=1508732778][/DOUBLEPOST]https://pp.userapi.com/c639420/v639420451/517d9/HSz6vbCr2R0.jpg -
Wasn't getting updates for this thread, for some reason.
I'm aware of the custom location issue. It relates to the storage of the location coordinates.
I have a temp fix here but will push a proper one soon.
MSpeedie's solution regarding melee weapons and tools is fine, but it was requested that bots not attack players with tools/melee on-sight.
The proper solution is to have bots attack on site if you have a conventional weapon out, and retaliate if they're attacked by anything, which is a little more complicated.
I may implement Mspeedie's idea as optional, as a temporary measure against melee farming.
[DOUBLEPOST=1508772748][/DOUBLEPOST]
What's your oxide version?Last edited by a moderator: Oct 23, 2017 -
I'm sorry if this question was.The plugin supports map HapisIsland ?
-
Steenamaroo I love your plugin. Its posible add a optional dependencies of Rewards plugin?? To get money by killing the bots ?? Thanks a lot!!
-
RE previous post, I could simply make it that melee weapons and tools do not damage the bot?! It's an option.
I'll have a think about it, either way.
vist - no, not by default, although you can add custom locations on any map and get the same functionality.
Just a little bit more work.
tanatos - Thank you. It's possible, but I think it would work the other way around.
Rewards(or quests?) plugin would need to add such a campaign.
In order to have different rewards for different locations/profiles of bots, I'd probably need to expose information too. -
-
(17:25:16) | Failed to call hook 'botspawn' on plugin 'BotSpawn v1.2.2' (JsonSerializationException: Self referencing loop detected for property 'normalized' with type 'UnityEngine.Vector3'. Path 'CustomProfiles.1234.Location.normalized'.)
(17:25:16) | at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CheckForCircularReference (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContainerContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.Serialization.JsonContract& memberContract, System.Object& memberValue) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x00000] in <filename unknown>:0 -
I know. ^^
mentioned above.
[DOUBLEPOST=1508776426][/DOUBLEPOST]
Other things to worry about, all the same. Maybe in the near future. -
-
-
i obv suck at this... I have been trying for 2 days does anyone have a full config file they can just share that is already setup with bots? Ill love you long time.
-
For a basic working profile, all you have to do is set activate to true (per monument) and reload the plug.
-
-