@@ -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 }
0 commit comments