BradleyControl

A plugin that controls Bradley properties.

Total Downloads: 3,295 - First Release: Aug 25, 2017 - Last Update: Jun 2, 2018

5/5, 16 likes
  1. Can you post your config? A lot of us could use a look at it. Thanks!
     
  2. Code:
    {
      "options": {
        "bradleyEnabled": true,
        "bradleyAverage": 1,
        "respawnDelay": 21600.0,
        "despawnDelay": 1.0,
        "startHealth": 5000.0,
        "maxTurretRange": 120.0,
        "gunAccuracy": 1.0,
        "gunDamage": 1.0,
        "speed": 0.8,
        "targetsNakeds": true,
        "ammoDoesDamage": false,
        "maxLootCrates": 1,
        "customLootTables": false,
        "enableNapalm": true,
        "napamWaterRequired": -1,
        "lootAccessDelay": 160.0,
        "enableGibs": true,
        "gibsHotDelay": -1.0,
        "gibsHealth": 500.0,
        "disableStartSearch": false
      },
      "lootTables": {
        "bradleyCrate": {
          "ammo.rocket.basic": [
            "1",
            "0",
            "1"
          ],
          "lmg.m249": [
            "55",
            "0",
            "1"
          ],
          "ammo.rifle.explosive": [
            "12",
            "0",
            "1"
          ]
        }
      },
      "targetable": {
        "mostClothing": 2,
        "targetable": [],
        "nonTargetable": []
      }
    }
     
  3. i get empty loot creates and i am not useing custom loot mod may need an update
     
  4. I notice after i updated this app that a vanished player does not get fired on anymore. How do I fix this so it targets vanished players again?
     
  5. Code:
    Failed to call hook 'OnEntitySpawned' on plugin 'BradleyControl v0.1.8' (Argumen
    tOutOfRangeException: Argument is out of range.
    Parameter name: index)
      at System.Collections.Generic.List`1[System.String].get_Item (Int32 index) [0x
    00000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl.OnEntitySpawned (.BaseNetworkable entity) [0x0
    0000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl.DirectCallHook (System.String name, System.Obj
    ect& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod meth
    od, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[]
    args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] arg
    s) [0x00000] in <filename unknown>:0
     
  6. Code:
    (17:19:14) | Failed to call hook 'OnEntitySpawned' on plugin 'BradleyControl v0.1.8' (ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: index)
    (17:19:14) | at System.Collections.Generic.List`1[System.String].get_Item (Int32 index) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    
     
  7. I just download but it will not create a config file.
     
  8. having same issue as the callheil mod
    Except on the tank the crates do appear but have nothing in them.
     
  9. When im taking the bradley down i usually see this error in the CMD window.
    Is it anything to worry about ?
    Code:
    Failed to run a 160.00 timer in 'BradleyControl v0.1.8' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[LockedByEntCrate] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl+<OnEntitySpawned>c__AnonStorey0.<>m__2 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    Failed to run a 160.00 timer in 'BradleyControl v0.1.8' (NullReferenceException: )
      at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[LockedByEntCrate] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl+<OnEntitySpawned>c__AnonStorey0.<>m__2 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Oct 17, 2017
  10. After last Thursday update for some reason the tanks stop spawning. Anyone know of a fix?
     
  11. Tank is spawning fine for me.
     
  12. Code:
    Failed to call hook 'OnEntitySpawned' on plugin 'BradleyControl v0.1.8' (ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: index)
      at System.Collections.Generic.List`1[System.String].get_Item (Int32 index) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BradleyControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  13. what is each number for?
     
  14. Does the Bradley spawn in a random location? I'm using the HappisIsland map.. so no Bradley there without a mod..
     
  15. work ? i think after last update not
     
  16. This pretty new to me not sure what I have done wrong. I installed plugin and it worked spawning first Bradley. But once it was taken down it will not respawn. Here is my config file could someone tell me what is wrong. I am having to /bradley reset to get it to respawn.

    {
    "options": {
    "bradleyEnabled": true,
    "bradleyAverage": 1,
    "respawnDelay": 600.0,
    "despawnDelay": -1.0,
    "startHealth": 5000.0,
    "maxTurretRange": 120.0,
    "gunAccuracy": 2.0,
    "gunDamage": 1.0,
    "speed": 1.5,
    "targetsNakeds": true,
    "ammoDoesDamage": false,
    "maxLootCrates": 2,
    "customLootTables": true,
    "enableNapalm": true,
    "napamWaterRequired": -1,
    "lootAccessDelay": 160.0,
    "enableGibs": true,
    "gibsHotDelay": -1.0,
    "gibsHealth": 500.0,
    "disableStartSearch": false
    },
    "lootTables": {
    "bradleyCrate": {
    "ammo.rocket.basic": [
    "10",
    "0",
    "1"
    ],
    "lmg.m249": [
    "1",
    "0",
    "1"
    ],
    "ammo.rifle.explosive": [
    "50",
    "0",
    "1"
    ]
    }
    },
    "targetable": {
    "mostClothing": 2,
    "targetable": [],
    "nonTargetable": []
    }
    }
     
  17. hi i have changed the ammoDoesDamage to True and it still doesn't take any damage from bullets any help ?
     
  18. having this error on load.
    Code:
    (13:25:38) | [Logger] Carlos (76561198085796652) ran command: oxide.reload BradleyControl
    (13:25:38) | ExType: JsonSerializationException
    (13:25:38) | Failed to initialize plugin 'BradleyControl v0.1.8' (ArgumentException: Could not cast or convert from System.Int64 to System.String[].)
    (13:25:38) | Unloaded plugin BradleyControl v0.1.8 by Mattparks
    (13:25:38) | Previous version of plugin failed to load: BradleyControl

    using this config
    Code:
    {
      "options": {
        "bradleyEnabled": true,
        "bradleyAverage": 1,
        "respawnDelay": 1800,
        "despawnDelay": -1.0,
        "startHealth": 2000.0,
        "maxTurretRange": 150.0,
        "gunAccuracy": 1.3,
        "gunDamage": 1.3,
        "speed": 1.5,
        "targetsNakeds": true,
        "ammoDoesDamage": true,
        "maxLootCrates": 4,
        "customLootTables": false,
        "enableNapalm": true,
        "napamWaterRequired": -1,
        "lootAccessDelay": 300,
        "enableGibs": true,
        "gibsHotDelay": -1.0,
        "gibsHealth": 500.0,
        "disableStartSearch": false
      },
      "lootTables": {
        "bradleyCrate": {
        "rifle.ak": 1,
        "ammo.pistol": 128,
        "ammo.pistol.fire": 128,
        "ammo.pistol.hv": 128,
        "ammo.rifle": 128,
        "ammo.rifle.explosive": 128,
        "ammo.rifle.incendiary": 128,
        "ammo.rifle.hv": 128,
        "ammo.rocket.basic": 8,
        "ammo.rocket.fire": 8,
        "ammo.rocket.hv": 8,
        "ammo.shotgun": 128,
        "ammo.shotgun.slug": 128,
        "rifle.bolt": 1,
        "cctv.camera": 1,
        "flamethrower": 1,
        "weapon.mod.flashlight": 1,
        "weapon.mod.holosight": 1,
        "weapon.mod.lasersight": 1,
        "rifle.lr300": 1,
        "lmg.m249": 1,
        "pistol.m92": 1,
        "smg.mp5": 1,
        "weapon.mod.muzzleboost": 1,
        "weapon.mod.muzzlebrake": 1,
        "pistol.eoka": 1,
        "pistol.revolver": 1,
        "pistol.semiauto": 1,
        "pistol.python": 1,
        "rocket.launcher": 1,
        "weapon.mod.small.scope": 1,
        "rifle.semiauto": 1,
        "shotgun.double": 1,
        "shotgun.pump": 1,
        "weapon.mod.silencer": 1,
        "weapon.mod.simplesight": 1,
        "smg.2": 1,
        "targeting.computer": 1,
        "smg.thompson": 1
        }
      },
      "targetable": {
        "mostClothing": 2,
        "targetable": [],
        "nonTargetable": []
      }
    }
     
  19. At home the tank does not spawn. Is this normal
     
  20. I suppose you need to change 308 line for:
    Code:
    if (configs.options.customLootTables && configs.lootTables.bradleyCrate.Count != 0)
    To fix the ArgumentException bug