Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
ffc9d0e
Spleef stuff
Redforce04 Oct 21, 2023
c48ae40
Merge pull request #3 from Redforce04/local_dev
Redforce04 Oct 22, 2023
25bdea7
Commit
Redforce04 Oct 22, 2023
6797f6a
Merge pull request #4 from Redforce04/local_dev
Redforce04 Oct 22, 2023
6a6b332
Merge pull request #5 from Redforce04/local_dev
Redforce04 Oct 22, 2023
e629156
Fix IHidden
Redforce04 Oct 22, 2023
7a71f93
New Build System
Redforce04 Oct 23, 2023
82e8564
Halloween Update yay
Redforce04 Oct 24, 2023
5905297
Merge remote-tracking branch 'origin/BuildSystemRevamp' into local_dev
Redforce04 Oct 25, 2023
ed6b341
Add FeatureList
Redforce04 Oct 25, 2023
9e31ad9
Build Revamp P2. Add Command for Build Info
Redforce04 Oct 26, 2023
11d1254
Merge branch 'local_dev' into Feature_New_Games
Redforce04 Oct 26, 2023
2c794c7
Update ActiveFeatures.cs
Redforce04 Oct 26, 2023
38bdca8
Merge branch 'local_dev' into Feature_New_Games
Redforce04 Oct 26, 2023
26994af
Fix this
Redforce04 Oct 26, 2023
d6cab87
Update Fix
Redforce04 Oct 26, 2023
7910bdf
Add gitignore VersionInfo
Redforce04 Oct 26, 2023
ab90dce
Ignore
Redforce04 Oct 26, 2023
101e8cd
Merge branch 'local_dev' into Feature_New_Games
Redforce04 Oct 26, 2023
e00cb3e
Fix Unsafe Code
Redforce04 Oct 26, 2023
c98753f
Merge branch 'local_dev' into Feature_New_Games
Redforce04 Oct 26, 2023
de8f8cf
Unsafe Code V2
Redforce04 Oct 26, 2023
fc3fe75
Unsafe code just keeps reverting to false? IDK why
Redforce04 Oct 26, 2023
672144f
Merge branch 'local_dev' into Feature_New_Games
Redforce04 Oct 26, 2023
181cdd6
Work on Destructible Primitives
Redforce04 Oct 27, 2023
0af6dae
Merge branch 'local_dev' into HalloweenBeta
Redforce04 Oct 27, 2023
4a61f1e
stupid NW Update
Redforce04 Oct 27, 2023
baf935b
Update Deps
Redforce04 Oct 27, 2023
b09c00c
Update Build Info Version Location
Redforce04 Oct 27, 2023
970d631
Merge branch 'local_dev' into HalloweenBeta
Redforce04 Oct 27, 2023
008295b
fix buildinfo command
Redforce04 Oct 27, 2023
b8072e1
Merge branch 'local_dev' into HalloweenBeta
Redforce04 Oct 27, 2023
c8673b1
Merge branch 'local_dev' into Feature_New_Games
Redforce04 Oct 27, 2023
6949068
spleef mostly works?
Redforce04 Oct 27, 2023
ec005ee
Commit
Redforce04 Oct 27, 2023
6484d97
Initial Inventory Menu System Implementation
Redforce04 Oct 28, 2023
b4df7db
Menu Changes
Redforce04 Oct 28, 2023
30b5bc5
current ghostbusters
Redforce04 Oct 28, 2023
7b09a1e
Add end conditions
Redforce04 Oct 28, 2023
56cd82f
more
Redforce04 Oct 28, 2023
124de4e
Auto Restart
Redforce04 Oct 28, 2023
d33cf84
NoRestart
Redforce04 Oct 28, 2023
5aefb2f
Merge branch 'local_dev' into Feature_New_Games
Redforce04 Oct 28, 2023
364091d
Merge branch 'local_dev' into Feature_Inventory_Menu_System
Redforce04 Oct 28, 2023
a6c74c2
Merge branch 'local_dev' into HalloweenBeta
Redforce04 Oct 28, 2023
c9c68ec
Merge remote-tracking branch 'origin/Feature_Inventory_Menu_System' i…
Redforce04 Oct 28, 2023
6884490
updates
Redforce04 Oct 28, 2023
b4f1ddb
Merge remote-tracking branch 'origin/Feature_New_Games' into local_dev
Redforce04 Oct 28, 2023
0a724aa
Merge remote-tracking branch 'origin/HalloweenBeta' into local_dev
Redforce04 Oct 28, 2023
5b47d34
Merge remote-tracking branch 'origin/Feature_Ghostbusters' into local…
Redforce04 Oct 28, 2023
a0e9cbe
fix
Redforce04 Oct 28, 2023
86d803f
Merge remote-tracking branch 'upstream/dev' into dev
Redforce04 Oct 28, 2023
f4b530a
Merge branch 'dev' into local_dev
Redforce04 Oct 28, 2023
c6ed503
Huge Merge
Redforce04 Oct 28, 2023
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
429 changes: 426 additions & 3 deletions .gitignore

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions AutoEvent/API/Components/DestructiblePrimitiveComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// <copyright file="Log.cs" company="Redforce04#4091">
// Copyright (c) Redforce04. All rights reserved.
// </copyright>
// -----------------------------------------
// Solution: AutoEvent
// Project: AutoEvent
// FileName: DestructiblePrimitiveComponent.cs
// Author: Redforce04#4091
// Revision Date: 10/17/2023 6:46 PM
// Created Date: 10/17/2023 6:46 PM
// -----------------------------------------

using System;
using AdminToys;
using Mirror;
using PlayerStatsSystem;
using UnityEngine;

namespace AutoEvent.API.Components;

public class DestructiblePrimitiveComponent : UnityEngine.MonoBehaviour, IDestructible
{
public bool Damage(float damage, DamageHandlerBase handler, Vector3 exactHitPos)
{
var ev = new DamagingPrimitiveArgs(damage, handler, exactHitPos);
DamagingPrimitive?.Invoke(ev);
if (!ev.IsAllowed)
{
return false;
}

Health -= ev.Damage;
if (Health <= 0)
{

var prim = gameObject.GetComponent<PrimitiveObjectToy>();
NetworkServer.UnSpawn(base.gameObject);
Destroy(gameObject);
}

return true;
}

public uint NetworkId { get; }
public Vector3 CenterOfMass { get; }
public float Health { get; private set; }
public event Action<DamagingPrimitiveArgs> DamagingPrimitive;

}

public class DamagingPrimitiveArgs
{
public DamagingPrimitiveArgs(float damage, DamageHandlerBase handler, Vector3 exactHitPos, bool isAllowed = true)
{
Damage = damage;
Handler = handler;
ExactHitPosition = exactHitPos;
IsAllowed = isAllowed;
}
public float Damage { get; set; }
public DamageHandlerBase Handler { get; init; }
public Vector3 ExactHitPosition { get; set; }
public bool IsAllowed { get; set; }

}
19 changes: 19 additions & 0 deletions AutoEvent/API/Enums/Effects.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,23 @@ public enum StatusEffect
/// Teleports the player to the pocket dimension and drains health until the player escapes or is killed.
/// </summary>
PocketCorroding,

/// <summary>
/// The effect permit player to go trough door like Scp-106.
/// </summary>
Ghostly,

/// <summary>
/// Effect given to player when being strangled by SCP-3114.
/// </summary>
Strangled,
OrangeCandy,
Spicy,
SugarCrave,
SugarHigh,
SugarRush,
TraumatizedByEvil,
Metal,
Prismatic,
SlowMetabolism,
}
56 changes: 28 additions & 28 deletions AutoEvent/API/Enums/LoadoutFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,80 +25,80 @@ public enum LoadoutFlags
/// No flags are specified. Loadouts will be applied normally.
/// </summary>
None = 0,

/// <summary>
/// Players will not have a role set.
/// </summary>
IgnoreRole = 1,
IgnoreRole = 1 << 0, // 1

/// <summary>
/// Players will not have items added.
/// </summary>
IgnoreItems = 2,
IgnoreItems = 1 << 1, // 2

/// <summary>
/// Players will not have their default role items cleared before adding items.
/// </summary>
DontClearDefaultItems = 4,
DontClearDefaultItems = 1 << 2, // 4

/// <summary>
/// Players won't have effects applied to them.
/// </summary>
IgnoreEffects = 8,
IgnoreEffects = 1 << 3, // 8

/// <summary>
/// Players won't have their health set.
/// </summary>
IgnoreHealth = 16,
IgnoreHealth = 1 << 4, // 16

/// <summary>
/// Player's won't have their Artificial Health set.
/// </summary>
IgnoreAHP = 32,
IgnoreAHP = 1 << 5, // 32

/// <summary>
/// Player's won't have their sizes changed.
/// </summary>
IgnoreSize = 64,
IgnoreSize = 1 << 6, // 64

/// <summary>
/// Player's won't have infinite ammo applied from loadouts.
/// </summary>
IgnoreInfiniteAmmo = 128,
IgnoreInfiniteAmmo = 1 << 7, // 128

/// <summary>
/// Players will have infinite ammo applied. Overrides IgnoreInfiniteAmmo.
/// </summary>
ForceInfiniteAmmo = 256,
ForceInfiniteAmmo = 1 << 8, // 256

/// <summary>
/// Players will note have Godmode set.
/// </summary>
IgnoreGodMode = 512,
IgnoreGodMode = 1 << 9, // 512

/// <summary>
/// Players will not recieve weapons.
/// </summary>
IgnoreWeapons = 1024,
IgnoreWeapons = 1 << 10, // 1024

/// <summary>
/// Stamina will not be added.
/// </summary>
IgnoreStamina = 2048,
IgnoreStamina = 1 << 11, // 2048,

/// <summary>
/// The player will have an endless amount of ammo.
/// </summary>
ForceEndlessClip = 4096,
ForceEndlessClip = 1 << 12, // 4096,

/// <summary>
/// The player will stay in the default spawn point.
/// </summary>
UseDefaultSpawnPoint = 8192,
UseDefaultSpawnPoint = 1 << 13, //8192,

/// <summary>
/// Only give players items.
/// </summary>
ItemsOnly = 16382,
ItemsOnly = (IgnoreStamina | IgnoreGodMode | IgnoreInfiniteAmmo | IgnoreSize | IgnoreAHP | IgnoreHealth | IgnoreStamina | IgnoreEffects | IgnoreRole), // None + ForceX
// 16384
}
31 changes: 31 additions & 0 deletions AutoEvent/ActiveFeatures.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// <copyright file="Log.cs" company="Redforce04#4091">
// Copyright (c) Redforce04. All rights reserved.
// </copyright>
// -----------------------------------------
// Solution: AutoEvent
// Project: AutoEvent
// FileName: ActiveFeatures.cs
// Author: Redforce04#4091
// Revision Date: 10/24/2023 10:20 PM
// Created Date: 10/24/2023 10:20 PM
// -----------------------------------------

using System;

namespace AutoEvent;

[Flags]
public enum ActiveFeatures
{
None = 0,
Minigames20 = 1,
Lobby = 2,
Vote = 4,
Powerups = 8,
SchematicApi = 16,
BuildInfo = 32,
MinigameSpleef = 64,
InventoryMenuApi,
MinigamesGhostBusters,
All = ~0,
}
44 changes: 34 additions & 10 deletions AutoEvent/AutoEvent.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
<Nullable>enable</Nullable>
<Configurations>Release</Configurations>
<Platforms>AnyCPU</Platforms>
<Version>9.2.0</Version>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release EXILED|AnyCPU' ">
<OutputPath>..\bin\Release\Exiled</OutputPath>
<DefineConstants>TRACE;EXILED</DefineConstants>
<Optimize>true</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>true</Optimize>
<z>true</z>
<PlatformTarget>x64</PlatformTarget>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
Expand Down Expand Up @@ -55,11 +56,14 @@
<PackageReference Include="YamlDotNet" Version="13.3.1" />
</ItemGroup>
<ItemGroup>
<Reference Include="CedModV3" HintPath="$(OTHER_REFERENCES)\CedModV3-NWApi.dll" />
<Reference Include="Assembly-CSharp-Publicized" HintPath="$(SL_REFERENCES)\Assembly-CSharp-Publicized.dll" />
<Reference Include="Mirror" HintPath="$(SL_REFERENCES)\Mirror.dll" />
<Reference Include="CedModV3" HintPath="$(OTHER_REFERENCES)\CedModV3-13-3.dll" />
<Reference Include="Assembly-CSharp-Publicized" HintPath="$(SL_REFERENCES)\Assembly-CSharp-Halloween-Publicized.dll" />
<Reference Include="Mirror" HintPath="$(SL_REFERENCES)\Mirror-Publicized-SL-13.3.dll" />
<Reference Include="PowerupApi" HintPath="PowerupApi\bin\Release\net48\PowerupApi.dll" />
<Reference Include="SchematicApi" HintPath="SchematicApi\bin\Release\net48\SchematicApi.dll" />
<Reference Include="InventoryMenu" HintPath="InventoryMenu\bin\Debug\net48\InventoryMenu.dll" />
<Reference Include="SCPSLAudioApi" HintPath="$(OTHER_REFERENCES)\SCPSLAudioApi.dll" />
<Reference Include="SCPSLAudioApi" HintPath="$(OTHER_REFERENCES)\NWAPIPermissionSystem.dll" />
<Reference Include="NWAPIPermissionSystem" HintPath="$(OTHER_REFERENCES)\NWAPIPermissionSystem-New.dll" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" HintPath="$(SL_REFERENCES)\System.ComponentModel.DataAnnotations.dll" />
<Reference Include="UnityEngine" HintPath="$(SL_REFERENCES)\UnityEngine.dll" />
Expand All @@ -76,6 +80,9 @@
<Reference Include="Pooling" HintPath="$(SL_REFERENCES)\Pooling.dll" />
</ItemGroup>
<ItemGroup>
<Content Include="..\.gitignore">
<Link>.gitignore</Link>
</Content>
<Content Include="..\Docs\*" Link="Docs\*" />
<Content Include="..\Docs\Translations\*" Link="Docs\Translations\*" />
<Content Include="..\README.md" Link="README.md" />
Expand All @@ -87,21 +94,38 @@
<EmbeddedResource Remove="SchematicApi\*" />
<EmbeddedResource Remove="PowerupApi\**" />
<EmbeddedResource Remove="PowerupApi\*" />
<EmbeddedResource Remove="ReplaceTextWithVariables\**" />
<EmbeddedResource Remove="ReplaceTextWithVariables\*" />
<EmbeddedResource Remove="InventoryMenu\**" />
<EmbeddedResource Remove="InventoryMenu\*" />
</ItemGroup>
<ItemGroup>
<None Remove="SchematicApi\**" />
<None Remove="SchematicApi\*" />
<None Remove="PowerupApi\**" />
<None Remove="PowerupApi\*" />
<None Remove="ReplaceTextWithVariables\**" />
<None Remove="ReplaceTextWithVariables\*" />
<None Remove="InventoryMenu\**" />
<None Remove="InventoryMenu\*" />
</ItemGroup>
<ItemGroup>
<Compile Remove="SchematicApi\**" />
<Compile Remove="SchematicApi\*" />
<Compile Remove="PowerupApi\**" />
<Compile Remove="PowerupApi\*" />
<Compile Remove="ReplaceTextWithVariables\**" />
<Compile Remove="ReplaceTextWithVariables\*" />
<Compile Remove="InventoryMenu\**" />
<Compile Remove="InventoryMenu\*" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="PowerupApi\PowerupApi.csproj" />
<ProjectReference Include="SchematicApi\SchematicApi.csproj" />
</ItemGroup>
<Target Name="RemoveFile" BeforeTargets="ReplaceFile">
<Exec Command="if exist $(SolutionDir)VersionInfo.cs del $(SolutionDir)VersionInfo.cs" />
</Target>
<Target Name="ReplaceFile" BeforeTargets="ReplaceVars">
<Exec Command="copy $(SolutionDir)BlankVersionInfo.txt $(SolutionDir)VersionInfo.cs" />
</Target>
<Target Name="ReplaceVars" BeforeTargets="PreBuildEvent">
<Exec Command="dotnet run --project &quot;ReplaceTextWithVariables&quot; -- $(SolutionDir)VersionInfo.cs -bd $(SolutionDir)../bin/Release/Exiled/net48/ {BUILD_DEPENDENCIES} -d {BUILD_DATE_TIME} -cmd &quot;git describe --tags --abbrev=0&quot; {CI_COMMIT_VERSION_TAG} -cmd &quot;git config --get user.name&quot; {BUILD_USER} -cmd &quot;git describe --long --always --exclude=* --abbrev=8&quot; {CI_COMMIT_SHORT_SHA} -cmd &quot;git branch --show-current&quot; {CI_COMMIT_BRANCH}" />
</Target>
</Project>
20 changes: 16 additions & 4 deletions AutoEvent/AutoEvent.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchematicApi", "SchematicAp
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerupApi", "PowerupApi\PowerupApi.csproj", "{1B07FE64-A112-499D-8A55-67EE912B1CB7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReplaceTextWithVariables", "ReplaceTextWithVariables\ReplaceTextWithVariables.csproj", "{2D16B95A-C579-4998-9E28-E26B077DC48B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InventoryMenu", "InventoryMenu\InventoryMenu.csproj", "{1F7DA672-31F6-45A7-B57E-3CC1A0D8DB2E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Release NWApi|Any CPU = Release NWApi|Any CPU
Expand All @@ -19,14 +23,22 @@ Global
{3C3FC008-22E1-4B28-BA50-A241B30CC216}.Release NWApi|Any CPU.Build.0 = Release NWApi|Any CPU
{3C3FC008-22E1-4B28-BA50-A241B30CC216}.Release Exiled|Any CPU.ActiveCfg = Release EXILED|Any CPU
{3C3FC008-22E1-4B28-BA50-A241B30CC216}.Release Exiled|Any CPU.Build.0 = Release EXILED|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release NWApi|Any CPU.ActiveCfg = Release|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release NWApi|Any CPU.Build.0 = Release|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release Exiled|Any CPU.ActiveCfg = Release|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release Exiled|Any CPU.Build.0 = Release|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release NWApi|Any CPU.ActiveCfg = Release|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release NWApi|Any CPU.Build.0 = Release|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release NWApi|Any CPU.ActiveCfg = Release|Any CPU
{580DFED2-B2D7-4B89-B245-D60246BCFB79}.Release NWApi|Any CPU.Build.0 = Release|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release Exiled|Any CPU.ActiveCfg = Release|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release Exiled|Any CPU.Build.0 = Release|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release NWApi|Any CPU.ActiveCfg = Release|Any CPU
{1B07FE64-A112-499D-8A55-67EE912B1CB7}.Release NWApi|Any CPU.Build.0 = Release|Any CPU
{2D16B95A-C579-4998-9E28-E26B077DC48B}.Release Exiled|Any CPU.ActiveCfg = Release|Any CPU
{2D16B95A-C579-4998-9E28-E26B077DC48B}.Release Exiled|Any CPU.Build.0 = Release|Any CPU
{2D16B95A-C579-4998-9E28-E26B077DC48B}.Release NWApi|Any CPU.ActiveCfg = Release|Any CPU
{2D16B95A-C579-4998-9E28-E26B077DC48B}.Release NWApi|Any CPU.Build.0 = Release|Any CPU
{1F7DA672-31F6-45A7-B57E-3CC1A0D8DB2E}.Release NWApi|Any CPU.ActiveCfg = Debug|Any CPU
{1F7DA672-31F6-45A7-B57E-3CC1A0D8DB2E}.Release NWApi|Any CPU.Build.0 = Debug|Any CPU
{1F7DA672-31F6-45A7-B57E-3CC1A0D8DB2E}.Release Exiled|Any CPU.ActiveCfg = Debug|Any CPU
{1F7DA672-31F6-45A7-B57E-3CC1A0D8DB2E}.Release Exiled|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading