Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ refs/
*.user
.sln
.vs/
ExtendedItems.csproj

13 changes: 0 additions & 13 deletions ChangeLog.md

This file was deleted.

119 changes: 69 additions & 50 deletions Config.cs
Original file line number Diff line number Diff line change
@@ -1,64 +1,83 @@
using System.ComponentModel;
using Exiled.API.Enums;
using Exiled.API.Interfaces;
using ExtendedItems.Items;
using InventorySystem.Items.Firearms.Attachments;

namespace ExtendedItems
namespace ExtendedItems;

public class Config : IConfig
{
public class Config : IConfig
{
public bool IsEnabled { get; set; } = true;
public bool Debug { get; set; } = true;
public bool IsEnabled { get; set; } = true;
public bool Debug { get; set; } = true;
public bool EasterEggs { get; set; } = false;

#region Config Settings

// [Description("How Common Easter Eggs are")]
// public float EasterEggsChance { get; set; } = 0.01f;

[Description("Weather the Tranq is effective on Tutorials")]
public bool EffectiveOnTutorials { get; set; } = false;

[Description("Weather the Tranq is still useable when Nuke is on")]
public AttachmentName[] ForcedSniperAttch { get; set; } =
[AttachmentName.MuzzleBrake, AttachmentName.RecoilReducingStock, AttachmentName.RifleBody];

[Description("The Places and Chance a C4 can Spawn")]
public Dictionary<LockerType, int> C4Spawns { get; set; } = new() { {LockerType.Scp500Pedestal, 70}, {LockerType.AntiScp207Pedestal, 1}, {LockerType.LargeGun, 39}};

[Description("The Distance from Larry a player can be before they can no longer use SCP-1499")]
public float LarryDistance { get; set; } = 10f;

[Description("The color that glows from where SCP-1289 is")]
public string SCP1289Color { get; set; } = "White";

#region Config Settings
[Description("How long it takes for the glow effect to start around SCP-1289 (in seconds)")]
public float SCP1289Timer { get; set; } = 10f;

[Description("Weather the Tranq is effective on Tutorials")]
public bool EffectiveOnTutorials { get; set; } = false;

[Description("Weather the Tranq is still useable when Nuke is on")]
public bool NukeTranq { get; set; } = true;

[Description("The Distance from Larry a player can be before they can no longer use SCP-1499")]
public float LarryDistance { get; set; } = 10f;

[Description("Ammount of ammo to remove when Grenade Launcher is fired (Can not be negitive)")]
public ushort GrenadeLauncherAmmoUsage { get; set; } = 10;
[Description("How far should the Hint light for SCP-1289 should reach")]
public float SCP1289LightRange { get; set; } = 10f;

[Description("The possable hints shown when you Win")]
public string[] WinHints { get; set; } =
[
"Long Live the King",
"Use Force",
"Utilize Might",
"Life to the Ruler",
"Be Brave",
"The Savior is here",
"The end is never near",
];
[Description("How long it take for the glow effect to reach full intensity (in seconds)")]
public float TimeToFullGlow { get; set; } = 60f;

[Description("The possable hints shown when you Win")]
public string[] WinHints { get; set; } =
[
"Long Live the King",
"Use Force",
"Utilize Might",
"Life to the Ruler",
"Be Brave",
"The Savior is here",
"The end is never near"
];

[Description("List of possible causes of death when the coin lands on tails")]
public string[] LoseCauses { get; set; } =
[
"Silence",
"Quiet",
"Don't Look",
"Look Away",
"Death to the King",
"Death to the Ruler",
"The End",
];
[Description("List of possible causes of death when the coin lands on tails")]
public string[] LoseCauses { get; set; } =
[
"Silence",
"Quiet",
"Don't Look",
"Look Away",
"Death to the King",
"Death to the Ruler",
"The End"
];

#endregion
#endregion

#region Custom Items setup
#region Custom Items setup

public Coin Coin { get; set; } = new();
public Scp1499 Scp1499 { get; set; } = new();
public GrenadeLauncher GrenadeLauncher { get; set; } = new();
public Sniper Sniper { get; set; } = new();
public Tranquilizer Tranquilizer { get; set; } = new();
public Plastic Plastic { get; set; } = new();
public AdminAbuse AdminAbuse { get; set; } = new();
public Coin Coin { get; set; } = new();
public Scp1499 Scp1499 { get; set; } = new();
// public GLShot GLShot { get; set; } = new();
// public GrenadeLauncher GrenadeLauncher { get; set; } = new();
public Sniper Sniper { get; set; } = new();
public Tranquilizer Tranquilizer { get; set; } = new();
public Plastic Plastic { get; set; } = new();


#endregion
}
#endregion
}
28 changes: 28 additions & 0 deletions EventHandler.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using Exiled.Events.EventArgs.Map;
using MapGeneration.Distributors;

namespace ExtendedItems;

public class EventHandler()
{
// private Random random = new();
// private bool HasProperFolder = Directory.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory,".."));
public static void OnGrenadeExploding(ExplodingGrenadeEventArgs ev)
{
foreach (var player in ev.TargetsToAffect.ToArray()) Utils.Grenade_Damage(ev.Projectile, player);
}

// public void OnLockerOpen(PlayerInteractedLockerEventArgs ev)
// {
// if (!Plugin.Instance.Config.EasterEggs)
// {
// return;
// }
// ev.Locker.Base._deniedBeep =
// }

public void OnStructureSpawn(ItemDistributor ev)
{
ev.PlaceSpawnables();
}
}
Loading
Loading