- Allows SAM Sites to target RC drones
- Allows player Auto Turrets to target RC drones
- Allows NPCs to target RC drones
- Allows sharing turret/SAM authorization with team, clan and friends to avoid targeting their drones
Highly recommended: Drone Settings -- Allows configuring toughness of drones. Without this, Auto Turrets, SAM Sites and NPCs may not be able to destroy drones.
targetabledrones.untargetable-- Drones controlled by players with this permission cannot be targeted by any Auto Turrets, SAM Sites or NPCs.
Default configuration:
{
"EnableTurretTargeting": true,
"EnablePlayerSAMTargeting": true,
"EnableStaticSAMTargeting": true,
"NPCTargeting": {
"MaxRange": 45.0,
"DamageMultiplier": 5.0,
"EnabledByNpcPrefab": {
"assets/prefabs/npc/gingerbread/gingerbread_dungeon.prefab": false,
"assets/prefabs/npc/gingerbread/gingerbread_meleedungeon.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_cargo.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_cargo_turret_any.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_cargo_turret_lr300.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_ch47_gunner.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_excavator.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_any.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_mp5.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_pistol.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_shotgun.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_heavy.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_junkpile_pistol.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_oilrig.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_patrol.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_roam.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_roamtethered.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/tunneldweller/npc_tunneldweller.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/tunneldweller/npc_tunneldwellerspawned.prefab": false,
"assets/rust.ai/agents/npcplayer/humannpc/underwaterdweller/npc_underwaterdweller.prefab": false
}
},
"DefaultSharingSettings": {
"Team": false,
"Friends": false,
"Clan": false,
"Allies": false
}
}EnableTurretTargeting(trueorfalse) -- Whiletrue, drones can be targeted by Auto Turrets.EnablePlayerSAMTargeting(trueorfalse) -- Whiletrue, drones can be targeted by player SAM Sites.EnableStaticSAMTargeting(trueorfalse) -- Whiletrue, drones can be targeted by static SAM Sites (e.g., by monument Sam Sites).NPCTargetingMaxRange(Default:45.0) -- Determines the max range that NPCs can target drones. Note: NPCs cannot target drones farther than their weapon range, no matter how high you set this value.DamageMultiplier(Default:5.0) -- Determines how much to multiply NPC damage by. This is useful for balance because NPCs deal less damage than players by default.EnabledByNpcPrefab-- Determines whether each type of NPC can target drones. This list will automatically add new NPC prefabs when they are detected after Rust updates.
DefaultSharingSettings(eachtrueorfalse) -- These settings determine whether a player's Auto Turrets or SAM Sites will target drones deployed by their teammates, friends, clanmates, or ally clanmates.
Drone balance:
- Drone Settings -- Allows changing speed, toughness and other properties of RC drones.
- Targetable Drones (This plugin) -- Allows RC drones to be targeted by Auto Turrets and SAM Sites.
- Limited Drone Range -- Limits how far RC drones can be controlled from computer stations.
Drone fixes and improvements:
- Better Drone Collision -- Overhauls RC drone collision damage so it's more intuitive.
- Auto Flip Drones -- Auto flips upside-down RC drones when a player takes control.
- Drone Hover -- Allows RC drones to hover in place while not being controlled.
Drone attachments:
- Drone Lights -- Adds controllable search lights to RC drones.
- Drone Turrets -- Allows players to deploy auto turrets to RC drones.
- Drone Storage -- Allows players to deploy a small stash to RC drones.
- Ridable Drones -- Allows players to ride RC drones by standing on them or mounting a chair.
You can use standard hooks to prevent Auto Turrets and SAM Sites from targeting drones under specific circumstances. Return false to block targeting.
object OnTurretTarget(AutoTurret turret, Drone drone)object OnSamSiteTarget(SamSite samSite, Drone drone)