Skip to content

Commit e3bb82f

Browse files
I FUCKING HATE YOU NW
1 parent 0d698b7 commit e3bb82f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Code/MethodSystem/Methods/PickupMethods/CreateGrenadeMethod.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,19 @@ public class CreateGrenadeMethod : ReferenceReturningMethod<Projectile>, IAdditi
1616
{
1717
public override string Description => "Creates a new grenade projectile to later spawn.";
1818

19-
public string AdditionalDescription => "To spawn SCP-018, SCP-2176 or the grenades' unactivated versions, use the Pickup method.";
19+
public string AdditionalDescription =>
20+
"To spawn SCP-018, SCP-2176 or the grenades' unactivated versions, use the Pickup method. " +
21+
"IMPORTANT: Northwood had a very bright idea of making the grenades not damage people when " +
22+
"not provided with an attacker. In order to have the granades kill anyone, you HAVE to provide an attacker. " +
23+
"We know this is stupid, but for now we can't do anything about it.";
2024

2125
public override Argument[] ExpectedArguments { get; } =
2226
[
2327
new OptionsArgument("grenade type",
2428
nameof(ItemType.GrenadeHE),
2529
nameof(ItemType.GrenadeFlash)
2630
),
31+
new PlayerArgument("attacker")
2732
];
2833

2934
public override void Execute()
@@ -35,7 +40,7 @@ public override void Execute()
3540
var item = Object.Instantiate(throwable.Projectile)
3641
?? throw new TosoksFuckedUpException("Somehow the prefab failed to copy??? I don't even know who to blame tbh");
3742
item.Info = new(itemType, throwable.Weight);
38-
item.PreviousOwner = new(Server.Host?.ReferenceHub);
43+
item.PreviousOwner = new(Args.GetPlayer("attacker").ReferenceHub);
3944

4045
ReturnValue = Projectile.Get(item);
4146
}

Code/MethodSystem/Methods/PickupMethods/PickupExistsMethod.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using SER.Code.ArgumentSystem.Arguments;
44
using SER.Code.ArgumentSystem.BaseArguments;
55
using SER.Code.MethodSystem.BaseMethods;
6-
using SER.Code.MethodSystem.MethodDescriptors;
76
using SER.Code.ValueSystem;
87

98
namespace SER.Code.MethodSystem.Methods.PickupMethods;

0 commit comments

Comments
 (0)