Skip to content

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features

  • 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.

Permissions

  • targetabledrones.untargetable -- Drones controlled by players with this permission cannot be targeted by any Auto Turrets, SAM Sites or NPCs.

Configuration

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 (true or false) -- While true, drones can be targeted by Auto Turrets.
  • EnablePlayerSAMTargeting (true or false) -- While true, drones can be targeted by player SAM Sites.
  • EnableStaticSAMTargeting (true or false) -- While true, drones can be targeted by static SAM Sites (e.g., by monument Sam Sites).
  • NPCTargeting
    • MaxRange (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 (each true or false) -- These settings determine whether a player's Auto Turrets or SAM Sites will target drones deployed by their teammates, friends, clanmates, or ally clanmates.

Recommended compatible plugins

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.

Developer Hooks

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)

About

Allows RC drones to be targeted by Auto Turrets and SAM Sites

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages