Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Figured out the config thing + actually fixed guard/scientist combo
Browse files Browse the repository at this point in the history
  • Loading branch information
PintTheDragon committed Jun 21, 2020
1 parent e561d17 commit a53ee77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions BuddyPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ public override void Register()
this.AddConfig(new ConfigSetting("buddy_disallow_guard_scientist_combo", disallowGuardScientistCombo, true, "If true, buddies will never spawn in as a guard and scientist. Only both a guard or both a scientist."));
this.enabled = this.GetConfigBool("buddy_enabled");
this.forceExactRole = this.GetConfigBool("buddy_force_exact_role");
this.disallowGuardScientistCombo = this.GetConfigBool("buddy_disallow_guard_scientist_combo");
if (!this.enabled)
{
this.OnDisable();
this.Info("Disregard any further messages about the plugin being enabled. It has been disabled.");
return;
}
this.AddEventHandler(typeof(IEventHandlerRoundStart), new RoundStartHandler(this), Priority.Highest);
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ Buddy lets you pair up with another player before the round begins, and spawn in
To install Buddy, just download the latest release at https://github.com/PintTheDragon/Buddy/releases , then stick Buddy.dll in your sm_plugins directory. After you launch your server, you can configure it.

## Configuration
For the most part, Buddy works out of the box, but you may want to configure it. To change the commands and things it says, go to sm_translations and open buddyplugin.txt. From there, you can modify the commands/responses. Actual config doesn't work yet.
For the most part, Buddy works out of the box, but you may want to configure it. To change the commands and things it says, go to sm_translations and open buddyplugin.txt. From there, you can modify the commands/responses.
To configure Buddy, you'll need to add the config options to config_gameplay.txt (or wherever your config goes if you're using MultiAdmin, etc):
| Config | Description | Default Value |
| ------ | ------------- | ------ |
| buddy_enabled | Enables/disables the plugin. | true |
| buddy_force_exact_role | Makes a player the exact role as their buddy. | false |
| buddy_disallow_guard_scientist_combo | If true, buddies will never spawn in as a guard and scientist. Only both a guard or both a scientist. | true |

## Usage
To use buddy plugin, run ".buddy <friend's name>" before the round starts (friend's name does not need to be exact). Then, your friend needs to run ".baccept". That's it! You will both spawn in on the same team.

0 comments on commit a53ee77

Please sign in to comment.