Allow NPCs to target dronesSuggestion

dude I love this pluge in, this is the best and must fun i have had for some time. 
but is there a way to make it so we can change some options. 
like 
Health
if the attack other dones
and if npc's will attack the drones. 

Health probably doesn't need to be adjusted, but rather damage scaling does. Right now it takes over 100 M2 shots to kill a drone, regardless of whether it has a turret. I'm planning to make a Drone Options plugin that will allow changing the damage scale properties and other settings, which will be useful in conjunction with Drone Turrets.

I'm also planning to make a plugin that will allow turrets and sam sites to target drones. I was experimenting with sam sites briefly yesterday and had an issue with the built in prediction not working well for drones for some reason.

I'm not that familiar with NPCs but I can look into ways to make them target drones.

thats awesome man. this is one of the best plugins I have seen in a bit, and could be a a lot of fun on some servers. 

the NPC one is huge tho. One of my admins and myself on one ofmy servers tested it last night. and took put all the NPC targets on large and small oil rig in less then 5 min and then went and got all the loot. So i could see this being a huge expoit. but it was fun. but would be really kill if there was risk in losing the drone to NPC gun fire

please let me know if you need anthing. love your work and will help where i can. even if you just need a a really good free test server I can set you up. 

Hi WhiteThunder, and good news on this front? at least getting the NPC's to shoot at the drones so they cant be used to just destroy something like oil rig. I had to stop using it for now as all the players were doing just that. LOL

I have made progress on making drones targetable by Auto Turrets and Sam Sites. It won't be ready until the next Rust update due to an Oxide patch I need. You can try it now for testing but don't run it on a production server.
https://github.com/WheteThunger/TargetableDrones

I am currently working on a Drone Options plugin that allows altering drone speed and toughness properties.

I briefly researched AI targeting but did not make any progress. This is likely to be difficult, so not sure if I will prioritize it. Another idea that can address the exploit you mentioned, would be to add options to Drone Turrets to prevent them from targeting certain kinds of NPCs. Thoughts?

thats super kool man. and yes that could be a option. have to so you could say target NPC "Ture" or False? that way if someone does for may an event or something they still can.. 

good thinking, I'm glad I thought of that  ..   ;)     let me know if I can do anything to help

ps when you say "targetable by Auto Turrets" does that mean other drones as well?

Here is the preview of the Drone Options plugin. You can use it to alter speed and toughness of drones, optionally based on permission. I included some a preset that I think is fairly balanced damage-wise.
https://github.com/WheteThunger/DroneOptions

Jasonro

yes that could be a option. have to so you could say target NPC "Ture" or False? that way if someone does for may an event or something they still can..

Yes, I will probably add a config option to Drone Turrets like "TargetNPCs": true, and possibly "TargetAnimals": true.

Jasonro

ps when you say "targetable by Auto Turrets" does that mean other drones as well?

Yes, not only will normal turrets be able to target drones, drone turrets will also be able to target other drones. Currently in the Targetable Drones plugin, if a drone that has a turret on it is damaged by another turret, the drone turret will retaliate against that turret (or against the drone if the attacker turret was on a drone). This is in contrast to vanilla logic which prevents turrets from targeting each other at all.

Next I plan to look into overhauling drone collision since it's too sensitive. I might implement a separate plugin for that, or it might be in Drone Options, not sure yet. I will probably also add separate damage scaling into Drone Turrets so that having a turret on a drone will make it slightly tougher (configurable).

you rock man. this is one of the best plugins and options for the plugins i have seen a long time. good job. 

As you may have seen, Drone Settings and Targetable Drones have been released.

I haven't gotten to adding the feature to restrict whether drone turrets will target NPCs and animals. I think I might do some more research on the NPC targeting first. In the meantime, since you mentioned oil rig, I realized that Limited Drone Range (upcoming, GitHub repo here) can help since if you limit the max range enough, nobody will be able to fly drones that far.

Sounds good. I still want players to fly far. as we use them for Uber eats and Uber drive LOL now with the new rides one LOL. love this set of plugins man. any way to get them to all add to there own folder for easer managment of all your plugins. Kinda like what magicpanel does.

Jasonro

love this set of plugins man. any way to get them to all add to there own folder for easer managment of all your plugins. Kinda like what magicpanel does.

Do you mean you want to place the plugin files in subfolders? Not sure Oxide supports that. Which Magic Panel plugins do this?

I just glanced at those plugins. Seems like they simply move the configs to sub directories. Might have all of them in the same config, not sure. Right now each drone plugin has its own config in the root, so it might present some issues to try to move them.
oOvzjY0zXQnTc7d.jpg WhiteThunder
I will probably add a config option to Drone Turrets like "TargetNPCs": true, and possibly "TargetAnimals": true.

I've released v1.1.0 of Drone Turrets which incorporates the above config options, which determine whether drone-mounted turrets target NPCs and animals. I will look more into allowing NPCs to target drones when I have time.