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:
31
Content.Client/_Amour/Fart/FartSystem.cs
Normal file
31
Content.Client/_Amour/Fart/FartSystem.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Content.Client.Gameplay;
|
||||
using Content.Client.Launcher;
|
||||
using Robust.Client.Audio;
|
||||
using Robust.Client.ResourceManagement;
|
||||
using Robust.Client.State;
|
||||
|
||||
namespace Content.Client._Amour.Fart;
|
||||
|
||||
public sealed class FartSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IStateManager _stateManager = default!;
|
||||
[Dependency] private readonly IAudioManager _audioManager = default!;
|
||||
[Dependency] private readonly IResourceCache _resourceCache = default!;
|
||||
|
||||
public const string FartPath = "/Audio/_Amour/fart-with-reverb.ogg";
|
||||
private AudioResource _audioResource = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
_audioResource = _resourceCache.GetResource<AudioResource>(FartPath);
|
||||
_stateManager.OnStateChanged += StateManagerOnOnStateChanged;
|
||||
}
|
||||
|
||||
private void StateManagerOnOnStateChanged(StateChangedEventArgs obj)
|
||||
{
|
||||
if(obj.OldState is not GameplayState || obj.NewState is not LauncherConnecting)
|
||||
return;
|
||||
|
||||
_audioManager.CreateAudioSource(_audioResource.AudioStream)?.StartPlaying();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user