As title say the guns are not dropping can get meds and ammo but no weapons.
Gun not dropping after last updateFixed
Send your configuration file here, please.
Hi, I am having an issue also. I do run botspawn, and these bots do drop weapons. The ones that dont are the normally generated Scientist NPCs on Oilrig/CH47/Roaming around etc.
Config below
Config below
{
"1.Types of loot to spawn": {
"Ammo": true,
"Guns": true,
"Medicine": true
},
"2.Chances of drop": {
"Ammo": 1.0,
"Guns": 1.0,
"Meds": 1.0
},
"3.Amounts": {
"Ammo Max": 120,
"Ammo Min": 20,
"Condition Max": 1.0,
"Condition Min": 0.5,
"Gun Ammo Max": 30,
"Gun Ammo Min": 0,
"Meds Max": 3,
"Meds Min": 0
},
"4.Utility": {
"Assign random skin to item": true,
"Drop items near the corpse if it's full": true,
"Put held items into inventory": false,
"Remove default loot": false
}
} Must be fixed in the latest version (2.0.2), but test it. BotSpawn used to cause troubles earlier and most likely will cause them in the future. Since BS is not supported on uMod - I cannot submit any patches to it to somehow change the situation.
Thank you for the fix. I can confirm that works on my server at least.
{
"chanceToDropAmmo": 1.0,
"chanceToDropGun": 1.0,
"chanceToDropMeds": 1.0,
"dropAmmo": true,
"dropGuns": true,
"dropMeds": true,
"maxAmmo": 120,
"maxCondition": 150.0,
"maxMeds": 5,
"minAmmo": 10,
"minCondition": 30.0,
"minMeds": 1
}
"chanceToDropAmmo": 1.0,
"chanceToDropGun": 1.0,
"chanceToDropMeds": 1.0,
"dropAmmo": true,
"dropGuns": true,
"dropMeds": true,
"maxAmmo": 120,
"maxCondition": 150.0,
"maxMeds": 5,
"minAmmo": 10,
"minCondition": 30.0,
"minMeds": 1
}
Old plugin versions are not supported. Please, update to the latest released version and test if it works for you.Bergil{
"chanceToDropAmmo": 1.0,
"chanceToDropGun": 1.0,
"chanceToDropMeds": 1.0,
"dropAmmo": true,
"dropGuns": true,
"dropMeds": true,
"maxAmmo": 120,
"maxCondition": 150.0,
"maxMeds": 5,
"minAmmo": 10,
"minCondition": 30.0,
"minMeds": 1
}
@2CHEVSKII - since installing v2.0.2 I get this error now
[3/17/2020 5:13:15 PM] Failed to call hook 'OnEntityDeath' on plugin 'NPCDropGun v2.0.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.NPCDropGun.DoSpawns (BasePlayer player) [0x0002b] in <56955c32aa704743a5b54b24c450b11d>:0
at Oxide.Plugins.NPCDropGun.OnEntityDeath (BasePlayer player) [0x00016] in <56955c32aa704743a5b54b24c450b11d>:0
at Oxide.Plugins.NPCDropGun.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000b0] in <56955c32aa704743a5b54b24c450b11d>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <98321e516fc1420ea57d4d2088213a59>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <ac41dd3599754d448b8c218b34645820>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <ac41dd3599754d448b8c218b34645820>:0 Please, try the last update and give feedback. I cannot reproduce the error even tho I spent half an hour killing various bots.
2CHEVSKII
Please, try the last update and give feedback. I cannot reproduce the error even tho I spent half an hour killing various bots.
Thats with version 2.0.2 the latest version.
I think its was because of a config issue as there is a diffferent config file now.
Merged postTurns out it was indeed the Config being old.
FastBurst
Thats with version 2.0.2 the latest version.
I think its was because of a config issue as there is a diffferent config file now.
Merged post
Turns out it was indeed the Config being old.
Well... There is never too much null checks I guess =)
Locked automatically