Jump to content

Failed to call hook 'OnEntityTakeDamage'

Closed 1.0.9

Failed to call hook 'OnEntityTakeDamage' on plugin 'BradleyGuards v1.0.9' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.BradleyGuards.OnEntityTakeDamage (BradleyAPC entity, HitInfo info) [0x0010c] in <9eebf57351ea46b98db78d045300a5bc>:0 at Oxide.Plugins.BradleyGuards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0047a] in <9eebf57351ea46b98db78d045300a5bc>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Share this comment


Link to comment

{
  "Bradley Settings": {
    "Change Values": true,
    "Bradley Health": 1000,
    "Bradley Max Fire Range": 100,
    "Bradley Throttle Responce": 1.0
  },
  "Bradley Loot": {
    "Change Values": true,
    "Bradley Max crates after kill": 5
  },
  "Bradley Canon": {
    "Change Values": true,
    "Bradley Canon Fire delay": 0.3,
    "Bradley Canon Firerate": 0.25
  },
  "Bradley Machinegun": {
    "Change Values": true,
    "Bradley Machinegun Bullet Damage": 15,
    "Bradley Machinegun Firerate": 0.06667
  },
  "Event Settings": {
    "Bradley Crew Max Roam Distance": 50,
    "Max throwing range of a Grenade": 25.0,
    "Max Grenades per trigger": 1,
    "Max throwing range of a Molotov": 25.0,
    "Max Molotovs per trigger": 1,
    "Hard Mode : Throws towards player (Grenades)": true,
    "Hard Mode : Max Grenades per trigger": 1,
    "Hard Mode : Max radius of a Grenade on player": 15.0,
    "Hard Mode : Throws towards player (Molotovs)": true,
    "Hard Mode : Max Molotovs per trigger": 1,
    "Hard Mode : Max radius of a Molotov on player": 15.0,
    "Napalm Support": true,
    "Napalm Support Area Radius": 35.0,
    "Napalm Support Rocket Amount": 1,
    "Napalm Support Rocket Height": 50,
    "Last Ditch Effort Rocket Amount": 1,
    "Last Ditch Effort Grenade Amount": 1
  },
  "Tank Crew Driver": {
    "Tank Driver Health": 150.0,
    "Tank Driver Lifetime (minutes)": 10.0,
    "Tank Driver Damage multiplier": 1.0,
    "Tank Driver Spawn Chance 0-1": 1.0,
    "Tank Driver Spawn Amount": 1,
    "Tank Driver Use Outfit": true,
    "Tank Driver Use other gun with outfit": false,
    "Tank Driver gun short prefabname": "smg.mp5",
    "Tank Driver gun skin id": 0,
    "Tank Driver Use kit (clothing)": false,
    "Tank Driver Kit ID": ""
  },
  "Tank Crew Guards": {
    "Tank Guards Health": 150.0,
    "Tank Guards Lifetime (minutes)": 10.0,
    "Tank Guards Damage multiplier": 1.0,
    "Tank Guards Spawn Chance 0-1": 1.0,
    "Tank Guards Spawn Amount": 1,
    "Tank Guards Use Outfit": true,
    "Tank Guards Use other gun with outfit": false,
    "Tank Guards gun short prefabname": "smg.mp5",
    "Tank Guards gun skin id": 0,
    "Tank Guards Use kit (clothing)": false,
    "Tank Guards Kit ID": ""
  },
  "Tank Crew Gunners": {
    "Tank Gunners Health": 150.0,
    "Tank Gunners Lifetime (minutes)": 10.0,
    "Tank Gunners Damage multiplier": 1.0,
    "Tank Gunners Spawn Chance 0-1": 1.0,
    "Tank Gunners Spawn Amount": 1,
    "Tank Gunners Use Outfit": true,
    "Tank Gunners Use other gun with outfit": false,
    "Tank Gunners gun short prefabname": "smg.mp5",
    "Tank Gunners gun skin id": 0,
    "Tank Gunners Use kit (clothing)": false,
    "Tank Gunners Kit ID": ""
  }
}

Share this comment


Link to comment


hmm seems fine ill do some testing on the testserver see if i can replicate this.
Do you run any other bradley plugins ?

after using your config file on testerver i did not get any errors

Edited by Krungh Crow

Share this comment


Link to comment

tryed removing cfg file and language files then reload ?
i tested it several times on the testserver without your issues

Share this comment


Link to comment

yeah i had that trigger once while someone was attacking the bradley and reloaded the plugin.
when he stopped and i reloaded it again it was gone.
Keep me posted if it happens again.

 

cheers
 

Share this comment


Link to comment
433.1k

Downloads

Total number of downloads.

2.3k

Customers

Total customers served.

31.9k

Files Sold

Total number of files sold.

518.1k

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

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.