HeliControl

Moved

Total Downloads: 35,361 - First Release: Sep 18, 2015 - Last Update: Apr 19, 2018

5/5, 74 likes
  1. Ah yeah that makes a lot of sense, pretty sure I've asked way back but totally forgot, thanks :)
     
  2. does this overwrite the default heli settings , spawn timers?
     
  3. Without changing the configuration, it won't touch anything.
     

  4. ok so to clarify if i change the config there is a setting which will affect regular behaviour of the heli event?
     
  5. Well, the settings do what they say. If you set the setting "Disable Rust's default helicopter spawning" to true, it will disable Rust's helicopter spawning, lol.
     
  6. I want for a permissions group to have it give them 3 /callstrike on targets every 24 hours so i set "Limit.2": 3, and "Cooldown.0": 86400.0, and gave them perms for helicontrol.cooldown.0 and helicontrol.limit.2 and helicontrol.callhelitarget. currently its only letting a player call a heli once then its doing the cooldown for 24 hours. Can anyone help me figure out what I am doing wrong so a player can do /callstrike (player) 3 times then have a 24 hour cooldown before they can do it again. Thanks.
     
  7. Limits work in a similar fashion you already want, if you set a player to have a limit permission that grants them 3, it will reset when the server time switches over to the next day. This means you can grant a cooldown of 10 seconds or however long and they can use those 3, but won't be able to after those 3 until the next day (server time).

    This may be expanded on/improved in the future, but this is how it works for now.
     
  8. So to do this would I leave the Limit 3 permission but remove the cooldown permission?
     
  9. Yes, however I think this version has a little bit of an issue where if you don't have a limit and cooldown permission it won't work. This means you could grant a cooldown permission that has only 0.01 seconds, if you wanted.
     
  10. That worked thanks.
     
  11. Is there any way to randomize the loot in the boxes? It overwrites Betterloot, so I moved everything into the HeliControlData as the example, but it only gives the first 5 items every time.
    Code:
    {
      "HeliInventoryLists": [
        {
          "lootBoxContents": [
            {
              "name": "rifle.ak",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "ammo.pistol",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.pistol.fire",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.pistol.hv",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.rifle",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.rifle.explosive",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.rifle.incendiary",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.rifle.hv",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.rocket.basic",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 10,
              "skinID": 0
            },
            {
              "name": "ammo.rocket.fire",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 3,
              "skinID": 0
            },
            {
              "name": "ammo.rocket.hv",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 3,
              "skinID": 0
            },
            {
              "name": "ammo.shotgun",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "ammo.shotgun.slug",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 128,
              "skinID": 0
            },
            {
              "name": "rifle.bolt",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "cctv.camera",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "flamethrower",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "weapon.mod.flashlight",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "weapon.mod.holosight",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "weapon.mod.lasersight",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "rifle.lr300",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "lmg.m249",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "pistol.m92",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "smg.mp5",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "weapon.mod.muzzleboost",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "weapon.mod.muzzlebrake",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "pistol.eoka",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "pistol.revolver",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "pistol.semiauto",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "pistol.python",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "rocket.launcher",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "weapon.mod.small.scope",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "rifle.semiauto",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "shotdun.double",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "shotgun.pump",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "weapon.mod.silencer",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "smg.2",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "targeting.computer",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "smg.thompson",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "gears",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 100,
              "skinID": 0
            },
            {
              "name": "metal.refined",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 250,
              "skinID": 0
            },
            {
              "name": "stones",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 50000,
              "skinID": 0
            },
            {
              "name": "metalpipe",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 50,
              "skinID": 0
            },
            {
              "name": "blade",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 50,
              "skinID": 0
            },
            {
              "name": "explosive.timed",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 5,
              "skinID": 0
            },
            {
              "name": "sulfur",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 25000,
              "skinID": 0
            },
            {
              "name": "metal.fragments",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 25000,
              "skinID": 0
            },
            {
              "name": "charcoal",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 25000,
              "skinID": 0
            },
            {
              "name": "mining.pumpjack",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "wood",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 50000,
              "skinID": 0
            },
            {
              "name": "lowgradefuel",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 2000,
              "skinID": 0
            },
            {
              "name": "rope",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 100,
              "skinID": 0
            },
            {
              "name": "trap.bear",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 1,
              "skinID": 0
            },
            {
              "name": "trap.landmine",
              "amountMin": 0,
              "amountMax": 0,
              "amount": 3,
              "skinID": 0
            }
      ]
    }
    ]
    }
     
  12. If BetterLoot has an option to control Helicopter loot and you want to use it, you can. Just disable the config option to use the custom loot in HeliControl.

    Otherwise, it shouldn't be the same few items over and over. Could you try loading up the example which can be downloaded from the overview to see if that works and is properly randomized?
     
  13. When i write grant user PEPE helicontrol.callheli the console said me permissions helicontrol.callheli doesnt exist, no one permissions are sucesfull
     
  14. Wulf

    Wulf Community Admin

    Check your oxide/logs to make sure the plugin is loaded.
     
  15. you're right, the plugin doesnt load
     
  16. Wulf

    Wulf Community Admin

    Are you getting any errors?
     
  17. nop, just not working
     
  18. Wulf

    Wulf Community Admin

    Could you upload (not paste) your compiler and oxide logs from oxide/logs please?
     
  19. Which is the compilation? these?
     

    Attached Files:

  20. Wulf

    Wulf Community Admin

    Your config file is corrupt:
    When editing it, make sure that it's valid JSON. You can verify using a site like www.jsonlint.com.