Fixes cream pies not splashing on colliding when thrown.
This commit is contained in:
@@ -9,7 +9,7 @@ using Robust.Shared.Player;
|
|||||||
namespace Content.Server.GameObjects.Components.Nutrition
|
namespace Content.Server.GameObjects.Components.Nutrition
|
||||||
{
|
{
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
public class CreamPieComponent : Component, ILand
|
public class CreamPieComponent : Component, ILand, IThrowCollide
|
||||||
{
|
{
|
||||||
public override string Name => "CreamPie";
|
public override string Name => "CreamPie";
|
||||||
|
|
||||||
@@ -19,7 +19,17 @@ namespace Content.Server.GameObjects.Components.Nutrition
|
|||||||
AudioHelpers.WithVariation(0.125f));
|
AudioHelpers.WithVariation(0.125f));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IThrowCollide.DoHit(ThrowCollideEventArgs eventArgs)
|
||||||
|
{
|
||||||
|
Splat();
|
||||||
|
}
|
||||||
|
|
||||||
void ILand.Land(LandEventArgs eventArgs)
|
void ILand.Land(LandEventArgs eventArgs)
|
||||||
|
{
|
||||||
|
Splat();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Splat()
|
||||||
{
|
{
|
||||||
PlaySound();
|
PlaySound();
|
||||||
|
|
||||||
|
|||||||
4
Resources/Changelog/Parts/creampie.yml
Normal file
4
Resources/Changelog/Parts/creampie.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
author: Your_Name_Here
|
||||||
|
changes:
|
||||||
|
- type: Fix
|
||||||
|
message: Fixed cream pies not splashing when hitting people or things.
|
||||||
Reference in New Issue
Block a user