BoobyTraps

Moved

Total Downloads: 1,687 - First Release: Dec 19, 2015 - Last Update: Apr 20, 2018

5/5, 12 likes
  1. I have a stupid question but is this addon coded so that admins dont have to have what it costs to "buy" said booby trap?
     
  2. Does this addon attach to randomly spawned crates and barrels from monuments and rad towns?

    [Oxide] 06:16 [Info] [BoobyTraps] Random trap set at (1604.9, 47.0, 2074.5) using trap: Grenades
    [Oxide] 06:17 [Info] [BoobyTraps] Random trap set at (1476.0, 39.1, -587.0) using trap: Explosives
    [Oxide] 06:17 [Info] [BoobyTraps] Random trap set at (1464.0, 33.0, -618.9) using trap: Beancan Grenades
    [Oxide] 06:17 [Info] [BoobyTraps] Random trap set at (1431.4, 33.2, -639.0) using trap: Landmines
     
  3. question what does it take to craft this trap? can the requirements be modified? can i configure this so you can only booby trap large chests and small box? does said trap make item disappear after explosion?
     
    Last edited by a moderator: Jul 18, 2016
  4. Yes free for admins.
    Yes, You can change the chance of it happening or toggle it off in the config
    You can't change what items it use's, but each trap costs something (adjustable in the config) No you can't configure it for certain boxes, the box will die if enough damage is done to it. I may eventually get around to do a rewrite to include better options
     
  5. Is there any way to set how many traps a player can set? Would like to limit the amount to 5 traps total or so.
     
  6. Could you add the ability to hide settraps options that aren't available to the player? i.e radiation on a server that has radiation disabled. I think it'd improve the plugin a lot because the idea of it is fantastic.
     
  7. check next message
     
    Last edited by a moderator: Jan 21, 2017
  8. Feature Suggestion:
    Would like it if you had the option to set it to barrels only or crates only.
    Would like it if you could enable/disable auto trap population, so no traps were generated but users can still place them on their own boxes.

    Possible Bug:
    Fire trap doesn't seem like its applying damage.
    Supply Drops still use traps after setting to 'false'
     
    Last edited by a moderator: Jan 21, 2017
  9. k1lly0u updated BoobyTraps with a new update entry:

    0.2.0

     
  10. Code:
    (03:32:24) | [Oxide] 03:32 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (03:32:24) | [Oxide] 03:32 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (03:32:24) | [Oxide] 03:32 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (03:32:24) | [Oxide] 03:32 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (03:32:24) | [Oxide] 03:32 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (03:32:24) | [Oxide] 03:32 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
    (03:32:24) | [Oxide] 03:32 [Error] Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)

    on auto traps
     
    Last edited by a moderator: Jan 23, 2017
  11. Failed to call hook 'OnEntitySpawned' on plugin 'BoobyTraps v0.2.0'
     
  12. ya I got the same NRE's spamming had to uninstall
     
  13. Post the whole error and your configs
     

  14. that is the error spamming on fresh install... on 3 servers


    Code:
    {
      "AutotrapSettings": {
        "AirdropChance": 40,
        "LootContainerChance": 40,
        "UseAirdrops": false,
        "UseLootContainers": false
      },
      "Options": {
        "CanTrapBoxes": true,
        "CanTrapDoors": true,
        "CanTrapLoot": false,
        "CanTrapSupplyDrops": false,
        "NotifyPlayersWhenTrapTriggered": true,
        "NotifyRandomSetTraps": true,
        "OverrideCostsForAdmins": true,
        "PlayTrapWarningSoundFX": true,
        "RequireBuildingPrivToTrap": true,
        "RequireOwnershipToTrap": true
      },
      "TrapTypes": {
        "BeancanGrenade": {
          "AdminOnly": false,
          "Costs": [
            {
              "Amount": 20,
              "Shortname": "grenade.beancan"
            }
          ],
          "DamageAmount": 30.0,
          "Duration": 0.0,
          "Enabled": true,
          "FuseTimer": 2.0,
          "Radius": 4.0
        },
        "Beartrap": {
          "AdminOnly": false,
          "Costs": [
            {
              "Amount": 20,
              "Shortname": "trap.bear"
            }
          ],
          "DamageAmount": 0.0,
          "Duration": 0.0,
          "Enabled": true,
          "FuseTimer": 2.0,
          "Radius": 2.0
        },
        "Explosive": {
          "AdminOnly": false,
          "Costs": [
            {
              "Amount": 100,
              "Shortname": "explosive.timed"
            }
          ],
          "DamageAmount": 110.0,
          "Duration": 0.0,
          "Enabled": true,
          "FuseTimer": 3.0,
          "Radius": 10.0
        },
        "Fire": {
          "AdminOnly": false,
          "Costs": [
            {
              "Amount": 50,
              "Shortname": "lowgradefuel"
            }
          ],
          "DamageAmount": 1.0,
          "Duration": 0.0,
          "Enabled": true,
          "FuseTimer": 3.0,
          "Radius": 2.0
        },
        "Grenade": {
          "AdminOnly": false,
          "Costs": [
            {
              "Amount": 50,
              "Shortname": "grenade.f1"
            }
          ],
          "DamageAmount": 75.0,
          "Duration": 0.0,
          "Enabled": true,
          "FuseTimer": 3.0,
          "Radius": 5.0
        },
        "Landmine": {
          "AdminOnly": false,
          "Costs": [
            {
              "Amount": 50,
              "Shortname": "trap.landmine"
            }
          ],
          "DamageAmount": 0.0,
          "Duration": 0.0,
          "Enabled": true,
          "FuseTimer": 2.0,
          "Radius": 2.0
        },
        "Radiation": {
          "AdminOnly": true,
          "Costs": [],
          "DamageAmount": 20.0,
          "Duration": 20.0,
          "Enabled": true,
          "FuseTimer": 3.0,
          "Radius": 10.0
        },
        "Shock": {
          "AdminOnly": true,
          "Costs": [],
          "DamageAmount": 95.0,
          "Duration": 0.0,
          "Enabled": true,
          "FuseTimer": 2.0,
          "Radius": 2.0
        }
      }
    }
     
  15. (06:43:38) | Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)

    (06:43:41) | [ServerRewards] Saved player data

    (06:43:42) | Failed to call hook 'OnEntityDeath' on plugin 'BoobyTraps v0.2.0' (NullReferenceException: Object reference not set to an instance of an object)
     
  16. k1lly0u updated BoobyTraps with a new update entry:

    0.2.1

     
  17. Hi k1lly0u,

    First, sorry for my english, and thanks for all the work !

    I have a [Request/Question] : I'm looking for same things than Crushed, certainly for the same needs :
    Is there a way to reactivate automatically traps on doors/boxes after they are triggered ?
    (and why not to choose time for reactivation after they are triggered ;)

    I suppose my request can be difficult to release for traps with items like beartraps because they are physically present in game once created, but for all the other traps who creates effects like fire, radiation, grenade, maybe could it be easier ?

    Thanks for reading me, have a nice week-end !
     
  18. k1lly0u updated BoobyTraps with a new update entry:

    0.2.11

     
  19. rad seems to not be working.
     
  20. Wulf

    Wulf Community Admin

    Wulf updated BoobyTraps with a new update entry:

    0.2.12