Fixes (#73)
* - fix: Genitals sprite shit and meow for tajaran * - add: fart sound if kicked from server * - tweak: vulpies and tajaran now for donaters!!! * - fix: Fart on exit * - add: roleplay think * - fix: database shit and loc * - add: ears for slime * - fix: LOC interaction fix * - add: height setting * - fix: height for felinids * - fix: nigga fix * - fix: no bitches on captain * - fix: interaction panel animation shit
This commit is contained in:
25
Content.Client/_Amour/CustomHeight/CustomHeightSystem.cs
Normal file
25
Content.Client/_Amour/CustomHeight/CustomHeightSystem.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Numerics;
|
||||
using Content.Shared._Amour.CustomHeight;
|
||||
using Robust.Client.GameObjects;
|
||||
|
||||
namespace Content.Client._Amour.CustomHeight;
|
||||
|
||||
public sealed class CustomHeightSystem : SharedCustomHeightSystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<CustomHeightComponent,AppearanceChangeEvent>(OnHeightChange);
|
||||
}
|
||||
|
||||
private void OnHeightChange(EntityUid uid, CustomHeightComponent component, AppearanceChangeEvent args)
|
||||
{
|
||||
if(args.Sprite is null || !AppearanceSystem.TryGetData<float>(uid, HeightVisuals.State, out var height))
|
||||
return;
|
||||
|
||||
height = Math.Clamp(height, component.Min, component.Max);
|
||||
|
||||
args.Sprite.Scale = new Vector2(height);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user