HeliControl

Moved

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

5/5, 74 likes
  1. It should, yes.
     
  2. Ok that works :) Thankyou! Ill put the timer back to 3600 so it spawns every hour..... no idea how i broke the config file, but thankyou!
     
  3. So it seems like before I had the ability to disable rockets and napalm in the config script. Now, I don't see an option to disable rockets. It also seems like the heli is not only shooting rockets, but shooting napalm. Any suggestion on what it should look like to make it so the hire fires bullets only, no napalm or rockets? Any advice would be greatly appreciated!
     
  4. DisableNapalm should be set to true in the config, and MaxHeliRockets to 0 in the config.
     
  5. Honestly, they already are set that way but it is still happening.
     
  6. Could you copy and paste your config here? I'll test it myself, kinda strange that it'd still be happening.
     
  7. Here you go and thank you for your help!

    {
    "AutoCallHeliIfAlreadyExists": false,
    "BaseHealth": 5000.0,
    "BulletSpeed": 250,
    "CallHeliEverySeconds": 0.0,
    "CooldownPlayersCanCallMultiple": false,
    "CooldownPlayersCanCallToTarget": false,
    "Cooldowns": {
    "Cooldown.0": 86400.0,
    "Cooldown.1": 86400.0,
    "Cooldown.2": 86400.0,
    "Cooldown.3": 86400.0,
    "Cooldown.4": 86400.0,
    "Cooldown.5": 86400.0,
    "Cooldown.6": 86400.0,
    "Cooldown.7": 86400.0,
    "Cooldown.8": 86400.0,
    "Cooldown.9": 86400.0
    },
    "DisableDefaultHeliSpawns": true,
    "DisableGibs": false,
    "DisableHeli": false,
    "DisableNapalm": true,
    "GibsHealth": 500.0,
    "GibsTooHotLength": 60.0,
    "GlobalDamageMultiplier": 1.0,
    "HeliAccuracy": 2.0,
    "HeliBulletDamageAmount": 20.0,
    "HelicopterCanShootWhileDying": true,
    "HeliSpeed": 25.0,
    "HeliStartLength": 0.0,
    "HeliStartSpeed": 25.0,
    "LifeTimeMinutes": 15,
    "Limits": {
    "Limit.0": 5,
    "Limit.1": 5,
    "Limit.2": 5,
    "Limit.3": 5,
    "Limit.4": 5,
    "Limit.5": 5,
    "Limit.6": 5,
    "Limit.7": 5,
    "Limit.8": 5,
    "Limit.9": 5
    },
    "LockedCrates": false,
    "MainRotorHealth": 750.0,
    "MaxHeliRockets": 0,
    "MaxLootCratesToDrop": 8,
    "ModifyDamageToHeli": false,
    "RocketDamageBlunt": 175.0,
    "RocketDamageExplosion": 100.0,
    "RocketExplosionRadius": 6.0,
    "TailRotorHealth": 375.0,
    "TimeBeforeUnlockingCrates": 0.0,
    "TimeBetweenRockets": 0.2,
    "TurretBurstLength": 3.0,
    "TurretFireRate": 0.125,
    "TurretMaxTargetRange": 300.0,
    "TurretTimeBetweenBursts": 3.0,
    "UseCustomHeliSpawns": false,
    "UseCustomLoot": false,
    "UseGlobalDamageModifier": false,
    "WaterRequiredToExtinguishNapalm": 0
    }
     
  8. Don't know what to say. That works fine for me, the heli shoots no rockets. Did you try unloading the plugin, setting it in the config, loading the plugin, and then using /updatehelis or calling a new one?
     
  9. I tried uninstalling it, reinstalling and redoing the config. I then reloaded the plugin. I did not use the /updatehelis thing though. Maybe that is part of the problem??? I would try this now, but can't seem to login to Rust atm due to stuck on loading screen. (A whole separate issue that is happening to several people I know.)
     
  10. OK so this is the first mod I have installed on my rust server and im new to this. So I have it all put in the right spot and it shows up in my server saying its working. I did nothing to the config file. I try and use the command helicontrol.callheliself or any other command and it says I don't have permission to do this. can someone help me.
     
  11. Bug, happens when players call helis.

    Code:
    (21:54:31) | [Oxide] 19:54 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'HeliControl v1.0.42' (NullReferenceException: Object reference not set to an instance of an object)
    (21:54:31) | [Oxide] 19:54 [Debug]   at Oxide.Plugins.HeliControl.OnEntitySpawned (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HeliControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  12. Thanks for the report. Could you perhaps give some extra insight? Does it happen just when using /callheli, or does it happen only a target? Does the player who's using it have the admin permission where they can call as many as they want, or do they have the limit permission? Any extra info is welcome, because it's hard to fix the issue when you can't reproduce it. ;)
     
  13. From my understanding, it's when they /callheli to their own name, with limited permissions, I had tried to add onto the permissions by adding "helicontrol.limit.donator" but had realized the permissions were hard coded, and not dynamic.

    Haven't had any issues since completely removing those permissions so I'll let you know if it further continues.
     
  14. EDIT: Fixed, had an NRE when heli exploded upon death, custom loot file had a space in one of the names of the items.
    [DOUBLEPOST=1480082332][/DOUBLEPOST]
    @Shady757 ignore the NRE above as that is the exact same NRE I fixed.
    [DOUBLEPOST=1480082608][/DOUBLEPOST]
    EDIT: Another NRE:


    Code:
    [11/26/2016 01:00:47] Kyle (76561198112611585) ran chat command: /callheli(03:00:27) | [Oxide] 01:00 [Error] Failed to call hook 'cmdCallToPlayer' on plugin 'HeliControl v1.0.42' (NullReferenceException: Object reference not set to an instance of an object)
    (03:00:27) | [Oxide] 01:00 [Debug]   at Oxide.Plugins.HeliControl.cmdCallToPlayer (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HeliControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  15. Try granting yourself the permission helicontrol.admin like so:
    Code:
    grant user UserName helicontrol.admin
    in your console. It should give you full access to everything.

    I'll look into it, going to be a bit hard to reproduce but I have some ideas as to what may be causing it.
     
  16. [Oxide] 19:23 [Info] [Notifier] Patrol Helicopter incoming!
    [Oxide] 19:23 [Error] Failed to call hook 'cmdCallToPlayer' on plugin 'HeliControl v1.0.42' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 19:23 [Debug] at Oxide.Plugins.HeliControl.cmdCallToPlayer (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.HeliControl.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (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 name, System.Object[] args) [0x00000] in <filename unknown>:0

    whenever person calls heli with /callheli
    how does person only call on himself then?
     
  17. Shady757 updated HeliControl with a new update entry:

    1.1.0

     
  18. How to set the appearance time on the new config


    {
    "Cooldowns": {
    "Cooldown.0": 86400.0,
    "Cooldown.1": 86400.0,
    "Cooldown.2": 86400.0,
    "Cooldown.3": 86400.0,
    "Cooldown.4": 86400.0,
    "Cooldown.5": 86400.0,
    "Cooldown.6": 86400.0,
    "Cooldown.7": 86400.0,
    "Cooldown.8": 86400.0,
    "Cooldown.9": 86400.0
    },
    "Damage - Global damage multiplier": 1.0,
    "Gibs - Health of gibs": 500.0,
    "Gibs - Time until gibs can be harvested in seconds": 480.0,
    "Health - Base Helicopter health": 10000.0,
    "Health - Main rotor health": 750.0,
    "Health - Tail rotor health": 375.0,
    "Limits": {
    "Limit.0": 5,
    "Limit.1": 5,
    "Limit.2": 5,
    "Limit.3": 5,
    "Limit.4": 5,
    "Limit.5": 5,
    "Limit.6": 5,
    "Limit.7": 5,
    "Limit.8": 5,
    "Limit.9": 5
    },
    "Loot - Max Crates to drop": 4,
    "Loot - Time before unlocking crates": -1.0,
    "Loot - Use Custom loot spawns": false,
    "Misc - Helicopter can shoot while dying": true,
    "Misc - Helicopter speed": 25.0,
    "Misc - Helicopter startup length in seconds": 0.0,
    "Misc - Helicopter startup speed": 25.0,
    "Misc - Maximum helicopter life time in minutes": 15,
    "Misc - Water required to extinguish napalm flames": 10000,
    "Rockets - Blunt damage to deal": 175.0,
    "Rockets - Explosion damage to deal": 100.0,
    "Rockets - Explosion radius": 6.0,
    "Rockets - Max helicopter rockets": 12,
    "Rockets - Time between each rocket in seconds": 0.2,
    "Spawning - Automatically call helicopter after this many seconds": 0.0,
    "Spawning - Automatically call helicopter if one is already flying": false,
    "Spawning - Disable Helicopter": false,
    "Spawning - Disable helicopter gibs": false,
    "Spawning - Disable helicopter napalm": false,
    "Spawning - Disable Rust's default spawns": false,
    "Spawning - Max active helicopters": -1,
    "Spawning - Use custom helicopter spawns": false,
    "Turrets - Helicopter bullet accuracy": 2.0,
    "Turrets - Helicopter bullet damage": 20.0,
    "Turrets - Helicopter bullet speed": 250,
    "Turrets - Max range": 300.0,
    "Turrets - Time between turret bursts in seconds": 3.0,
    "Turrets - Turret burst length in seconds": 3.0,
    "Turrets - Turret fire rate in seconds": 0.125
    }
     
  19. Do you mean how long it can live or how often to call it?
    Code:
    "Spawning - Automatically call helicopter after this many seconds": 0.0,
    
    Change this number if you want the helicopter to spawn after a certain amount of seconds.
    Code:
    "Misc - Maximum helicopter life time in minutes": 15,
    
    Change this if you want the helicopter to stay around longer or shorter.
     
  20. BUG: When two or more helis are active, you cannot do such commands such as /tpheli /strafe and what not, it returns the lang: "There is an active helicopter"