Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ namespace Exiled.Events.Patches.Events.Item
using System.Reflection.Emit;

using Exiled.API.Features.Pools;
using Exiled.Events.Attributes;
using Exiled.Events.EventArgs.Item;

using HarmonyLib;

using InventorySystem.Items.Radio;

using static HarmonyLib.AccessTools;
Expand All @@ -21,6 +24,7 @@ namespace Exiled.Events.Patches.Events.Item
/// Patches <see cref="RadioPickup.LateUpdate"/>
/// to add <see cref="Handlers.Item.UsingRadioPickupBattery"/> event.
/// </summary>
[EventPatch(typeof(Handlers.Item), nameof(Handlers.Item.UsingRadioPickupBattery))]
[HarmonyPatch(typeof(RadioPickup), nameof(RadioPickup.LateUpdate))]
internal class UsingRadioPickupBattery
{
Expand Down
1 change: 1 addition & 0 deletions EXILED/Exiled.Events/Patches/Events/Player/Shot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
/// Patches <see cref="HitscanHitregModuleBase.ServerAppendPrescan" />.
/// Adds the <see cref="Handlers.Player.Shot" /> event.
/// </summary>
[EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.Shot))]
[HarmonyPatch(typeof(HitscanHitregModuleBase), nameof(HitscanHitregModuleBase.ServerAppendPrescan))]
internal static class ShotMiss
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace Exiled.Events.Patches.Events.Player
using API.Features;
using API.Features.Pools;

using Exiled.Events.Attributes;
using Exiled.Events.EventArgs.Player;

using HarmonyLib;
Expand All @@ -28,6 +29,7 @@ namespace Exiled.Events.Patches.Events.Player
/// Patches <see cref="UsableItemsController.Update" />
/// Adds the <see cref="Handlers.Player.UsedItem" /> event.
/// </summary>
[EventPatch(typeof(Handlers.Player), nameof(Handlers.Player.UsingItemCompleted))]
[HarmonyPatch(typeof(UsableItemsController), nameof(UsableItemsController.Update))]
internal static class UsingItemCompleted
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace Exiled.Events.Patches.Events.Scp049
/// Patches <see cref="Scp049SenseAbility.ServerProcessCmd" />.
/// Adds the <see cref="Handlers.Scp049.ActivatingSense" /> event.
/// </summary>
[EventPatch(typeof(Handlers.Scp049), nameof(Handlers.Scp049.ActivatingSense))]
[HarmonyPatch(typeof(Scp049SenseAbility), nameof(Scp049SenseAbility.ServerProcessCmd))]
public class ActivatingSense
{
Expand Down Expand Up @@ -70,7 +71,7 @@ private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructi
new(OpCodes.Dup),
new(OpCodes.Stloc_S, ev.LocalIndex),

// Handlers.Scp049.OnFinishingRecall(ev)
// Handlers.Scp049.OnActivatingSense(ev)
new(OpCodes.Call, Method(typeof(Handlers.Scp049), nameof(Handlers.Scp049.OnActivatingSense))),

// if (!ev.IsAllowed)
Expand Down
3 changes: 3 additions & 0 deletions EXILED/Exiled.Events/Patches/Events/Scp3114/Dancing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ namespace Exiled.Events.Patches.Events.Scp3114
using Exiled.API.Features;
using Exiled.API.Features.Pools;
using Exiled.API.Features.Roles;
using Exiled.Events.Attributes;
using Exiled.Events.EventArgs.Scp3114;

using HarmonyLib;
using Mirror;
using PlayerRoles.PlayableScps.Scp3114;
Expand All @@ -26,6 +28,7 @@ namespace Exiled.Events.Patches.Events.Scp3114
/// Patches <see cref="Scp3114Dance.ServerProcessCmd"/>
/// to add <see cref="Handlers.Scp3114.Dancing"/> event.
/// </summary>
[EventPatch(typeof(Handlers.Scp3114), nameof(Handlers.Scp3114.Dancing))]
[HarmonyPatch(typeof(Scp3114Dance), nameof(Scp3114Dance.ServerProcessCmd))]
internal class Dancing
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// <copyright file="WaitingForPlayers.cs" company="ExMod Team">
// Copyright (c) ExMod Team. All rights reserved.
// Licensed under the CC BY-SA 3.0 license.
Expand All @@ -11,12 +11,15 @@ namespace Exiled.Events.Patches.Events.Server

using API.Features;

using Exiled.Events.Attributes;

using HarmonyLib;

/// <summary>
/// Patches <see cref="CharacterClassManager.Start" />.
/// Adds the <see cref="Handlers.Server.WaitingForPlayers" /> event.
/// </summary>
[EventPatch(typeof(Handlers.Server), nameof(Handlers.Server.WaitingForPlayers))]
[HarmonyPatch(typeof(ReferenceHub), nameof(ReferenceHub.Start))]
internal static class WaitingForPlayers
{
Expand Down
Loading