BlackSpigot
BotReSpawn for Rust
Spawns set numbers of customised npcs at monuments,
various events, supply drops, biomes, custom locations, and 'toplayer'.

Plugin Description.
Highly customisable and intuitive npc plugin, setup exclusively via UI.
See images for an overview of the available options globally, and per npc profile.
Every option in the UI is clickable, showing a detailed description of its use.

Optional dependencies -
  • Kits (free at uMod.org)
  • CustomLoot
Permissions.
  • botrespawn.allowed - Required for non-admin use
Chat commands.
  • /botrespawn - Opens UI.
  • /botrespawn add *profilename* - Adds a custom profile then opens UI. (please don't use spaces or hyphens)
  • /botrespawn remove *profilename* - Removes a custom profile.
  • /botrespawn info - Tells you about the npc you're looking at.
Console commands.
  • bot.count - Gives total number of spawned npcs.
  • bots.count - Gives a breakdown of spawned npcs per profile.
  • botrespawn toplayer NameOrId ProfileName amount(optional)
  • botrespawn enable/disable "Profile name here"
  • botrespawn tempspawn "Profile name here" - Spawns npcs from a profile at random points around that profile's location
  • addspawn - Enabled via UI, in Edit Spawnpoints menu - for keybinding.
  • botrespawn showspawns - Added for binding convenience.
  • botrespawn checknav - Added for binding convenience.
* Note = addspawn and showspawns commands require the user to select "Edit with console commands" first, from a profile's spawnpoints menu.

Default locations.
All major monuments are automatically included, plus profiles for the four biomes.
The following events also have default profiles
  • Airdrop (supply grenade optional)
  • Locked Crate Spawn
  • Locked Crate Hack Start
  • APC Kill
  • PatrolHeli Kill
  • CH47 Kill

Configurable via json, per profile.
  • BotNames
  • BotNamePrefix
  • Announcement_Text
  • Instant_Death_From_Headshot_Allowed_Weapons (accepts item shortnames)

Kits.
Only kits with weapons in the belt are shown in UI.
Spawnpoints.









API :
string[] AddGroupSpawn(Vector3 location, string profileName, string group, int quantity)
string[] RemoveGroupSpawn(string group)
string NPCProfile(NPCPlayer npc) (returns "No Name" for non BotReSpawn npcs)

object OnBotReSpawnNPCTarget(ScientistNPC npc, BasePlayer player)

void OnBotReSpawnNPCSpawned(ScientistNPC npc, string profilename, string group)
void OnBotReSpawnNPCKilled(ScientistNPC npc, string profilename, string group, HitInfo info)

bool IsBotReSpawn(NPCPlayer npc)
bool IsBotReSpawn(ulong id)

object OnBotReSpawnCrateDropped(HackableLockedCrate crate)
object OnBotReSpawnCrateHackBegin(HackableLockedCrate crate)
object OnBotReSpawnAPCKill(BradleyAPC apc)
object OnBotReSpawnPatrolHeliKill(PatrolHelicopterAI heli)
object OnBotReSpawnCH47Kill(CH47HelicopterAIController ch)
object OnBotReSpawnAirdrop(SupplyDrop drop)

[PluginReference]
private Plugin BotReSpawn;

Vector3 location = new Vector3(0,0,0);
string[] Spawn = BotReSpawn?.Call("AddGroupSpawn", location, "The Dome 0", "MadeUpNameHere", 5) as string[];

Puts($"{Spawn[0]}");
Puts($"{Spawn[1]}");


void OnBotReSpawnNPCSpawned(ScientistNPC npc, string profile, string group)
{
if (String.IsNullOrEmpty(group))
Puts($"BotReSpawn spawned an npc from profile {profile}");
else
Puts($"BotReSpawn spawned an npc from profile {profile} - API group name {group}");
}
Author
Wifi
Downloads
0
Views
1
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Wifi

Top