Skip to content

Commit

Permalink
Added vulps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidenkrz committed Apr 24, 2024
1 parent fd9a979 commit 8270907
Show file tree
Hide file tree
Showing 190 changed files with 3,659 additions and 2 deletions.
44 changes: 44 additions & 0 deletions Content.Client/DeltaV/Overlay/DogVisionOverlay.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using Robust.Client.Graphics;
using Robust.Client.Player;
using Robust.Shared.Enums;
using Robust.Shared.Prototypes;
using Content.Shared.Abilities;

namespace Content.Client.Nyanotrasen.Overlays;

public sealed partial class DogVisionOverlay : Overlay
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly IPlayerManager _playerManager = default!;
[Dependency] IEntityManager _entityManager = default!;


public override bool RequestScreenTexture => true;
public override OverlaySpace Space => OverlaySpace.WorldSpace;
private readonly ShaderInstance _dogVisionShader;

public DogVisionOverlay()
{
IoCManager.InjectDependencies(this);
_dogVisionShader = _prototypeManager.Index<ShaderPrototype>("DogVision").Instance().Duplicate();
}

protected override void Draw(in OverlayDrawArgs args)
{
if (ScreenTexture == null)
return;
if (_playerManager.LocalPlayer?.ControlledEntity is not {Valid: true} player)
return;
if (!_entityManager.HasComponent<DogVisionComponent>(player))
return;

_dogVisionShader?.SetParameter("SCREEN_TEXTURE", ScreenTexture);


var worldHandle = args.WorldHandle;
var viewport = args.WorldBounds;
worldHandle.SetTransform(Matrix3.Identity);
worldHandle.UseShader(_dogVisionShader);
worldHandle.DrawRect(viewport, Color.White);
}
}
45 changes: 45 additions & 0 deletions Content.Client/DeltaV/Overlay/DogVisionSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using Content.Shared.Abilities;
using Content.Shared.DeltaV.CCVars;
using Robust.Client.Graphics;
using Robust.Shared.Configuration;

namespace Content.Client.Nyanotrasen.Overlays;

public sealed partial class DogVisionSystem : EntitySystem
{
[Dependency] private readonly IOverlayManager _overlayMan = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;

private DogVisionOverlay _overlay = default!;

public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<DogVisionComponent, ComponentInit>(OnDogVisionInit);
SubscribeLocalEvent<DogVisionComponent, ComponentShutdown>(OnDogVisionShutdown);

Subs.CVar(_cfg, DCCVars.NoVisionFilters, OnNoVisionFiltersChanged);

_overlay = new();
}

private void OnDogVisionInit(EntityUid uid, DogVisionComponent component, ComponentInit args)
{
if (!_cfg.GetCVar(DCCVars.NoVisionFilters))
_overlayMan.AddOverlay(_overlay);
}

private void OnDogVisionShutdown(EntityUid uid, DogVisionComponent component, ComponentShutdown args)
{
_overlayMan.RemoveOverlay(_overlay);
}

private void OnNoVisionFiltersChanged(bool enabled)
{
if (enabled)
_overlayMan.RemoveOverlay(_overlay);
else
_overlayMan.AddOverlay(_overlay);
}
}
17 changes: 17 additions & 0 deletions Content.Shared/DeltaV/Abilities/CCVars/DCCVars.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using Robust.Shared.Configuration;

namespace Content.Shared.DeltaV.CCVars;

/// <summary>
/// DeltaV specific cvars.
/// </summary>
[CVarDefs]
// ReSharper disable once InconsistentNaming - Shush you
public sealed class DCCVars
{
/// <summary>
/// Disables all vision filters for species like Vulpkanin or Harpies. There are good reasons someone might want to disable these.
/// </summary>
public static readonly CVarDef<bool> NoVisionFilters =
CVarDef.Create("accessibility.no_vision_filters", false, CVar.CLIENTONLY | CVar.ARCHIVE);
}
8 changes: 8 additions & 0 deletions Content.Shared/DeltaV/Abilities/DogVisionComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
using Robust.Shared.GameStates;
namespace Content.Shared.Abilities;

[RegisterComponent]
[NetworkedComponent]

public sealed partial class DogVisionComponent : Component
{}
6 changes: 6 additions & 0 deletions Resources/Audio/DeltaV/Voice/Talk/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pug.ogg (Renamed to vulp.ogg)
pug_ask.ogg (Renamed to vulp_ask.ogg)
pug_exclaim.ogg (Renamed to vulp_exclaim.ogg)
all taken from
https://github.com/goonstation/goonstation/commit/da7c8965c4552ca53af367e6c83a83da2affe790
licensed under CC BY-NC-SA 3.0
Binary file added Resources/Audio/DeltaV/Voice/Talk/vulp.ogg
Binary file not shown.
Binary file added Resources/Audio/DeltaV/Voice/Talk/vulp_ask.ogg
Binary file not shown.
Binary file not shown.
49 changes: 49 additions & 0 deletions Resources/Audio/DeltaV/Voice/Vulpkanin/attributions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
- files: ["dog_bark1.ogg", "dog_bark2.ogg", "dog_bark3.ogg"]
license: "CC0-1.0"
copyright: "Original sound by abhisheky948 at https://freesound.org/people/abhisheky948/sounds/625497/"
source: "https://freesound.org/people/abhisheky948/sounds/625497/"

- files: ["dog_bark2.ogg"]
license: "CC0-1.0"
copyright: "Original sound by michael_grinnell at https://freesound.org/people/michael_grinnell/sounds/464400/"
source: "https://freesound.org/people/michael_grinnell/sounds/464400/"

- files: ["dog_bark3.ogg"]
license: "CC0-1.0"
copyright: "Original sound by Geoff-Bremner-Audio at https://freesound.org/people/Geoff-Bremner-Audio/sounds/688201/"
source: "https://freesound.org/people/Geoff-Bremner-Audio/sounds/688201/"

- files: ["dog_growl1.ogg", "dog_growl2.ogg", "dog_growl3.ogg"]
license: "CC0-1.0"
copyright: "Original sound by GlitchedTones at https://freesound.org/people/Glitchedtones/sounds/372533/ - cut out three clips of dog growling, cleaned up, converted to ogg"
source: "https://freesound.org/people/Glitchedtones/sounds/372533/"

- files: ["dog_growl4.ogg"]
license: "CC-BY-NC-SA-3.0"
copyright: "Original sound taken from Paradise Station. Renamed to dog_growl4.ogg"
source: "https://github.com/ParadiseSS13/Paradise/blob/master/sound/goonstation/voice/growl1.ogg"

- files: ["dog_growl5.ogg"]
license: "CC-BY-NC-SA-3.0"
copyright: "Original sound taken from Paradise Station. Renamed to dog_growl5.ogg"
source: "https://github.com/ParadiseSS13/Paradise/blob/master/sound/goonstation/voice/growl2.ogg"

- files: ["dog_growl6.ogg"]
license: "CC-BY-NC-SA-3.0"
copyright: "Original sound taken from Paradise Station. Renamed to dog_growl6.ogg"
source: "https://github.com/ParadiseSS13/Paradise/blob/master/sound/goonstation/voice/growl3.ogg"

- files: ["dog_snarl1.ogg", "dog_snarl2.ogg", "dog_snarl3.ogg"]
license: "CC0-1.0"
copyright: "Original sound by strongbot at https://freesound.org/people/strongbot/sounds/341090/ - cut out three clips of dog snarling, cleaned up, converted to ogg"
source: "https://freesound.org/people/strongbot/sounds/341090/"

- files: ["dog_whine.ogg"]
license: "CC0-1.0"
copyright: "Original sound by Sruddi1 at https://freesound.org/people/Sruddi1/sounds/34878/ - cleaned up, converted to ogg"
source: "https://freesound.org/people/Sruddi1/sounds/34878/"

- files: ["howl.ogg"]
license: "CC-BY-NC-SA-3.0"
copyright: "Original sound taken from Goonstation. Renamed to howl.ogg"
source: "https://github.com/goonstation/goonstation/blob/master/sound/voice/animal/werewolf_howl.ogg"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Resources/Audio/DeltaV/Voice/Vulpkanin/howl.ogg
Binary file not shown.
14 changes: 14 additions & 0 deletions Resources/Audio/DeltaV/Voice/Vulpkanin/license.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dog_bark1.ogg licensed under CC0 1.0 taken from abhisheky948 at https://freesound.org/people/abhisheky948/sounds/625497/
dog_bark2.ogg licensed under CC0 1.0 taken from michael_grinnell at https://freesound.org/people/michael_grinnell/sounds/464400/
dog_bark3.ogg licensed under CC0 1.0 taken from Geoff-Bremner-Audio at https://freesound.org/people/Geoff-Bremner-Audio/sounds/688201/
dog_growl1.ogg licensed under CC0 1.0 taken from GlitchedTones at https://freesound.org/people/Glitchedtones/sounds/372533/
dog_growl2.ogg licensed under CC0 1.0 taken from GlitchedTones at https://freesound.org/people/Glitchedtones/sounds/372533/
dog_growl3.ogg licensed under CC0 1.0 taken from GlitchedTones at https://freesound.org/people/Glitchedtones/sounds/372533/
dog_growl4.ogg licensed under CC-BY-NC-SA 3.0 taken from Paradise Station at https://github.com/ParadiseSS13/Paradise/blob/master/sound/goonstation/voice/growl1.ogg
dog_growl5.ogg licensed under CC-BY-NC-SA 3.0 taken from Paradise Station at https://github.com/ParadiseSS13/Paradise/blob/master/sound/goonstation/voice/growl2.ogg
dog_growl6.ogg licensed under CC-BY-NC-SA 3.0 taken from Paradise Station at https://github.com/ParadiseSS13/Paradise/blob/master/sound/goonstation/voice/growl3.ogg
dog_snarl1.ogg licensed under CC0 1.0 taken from strongbot at https://freesound.org/people/strongbot/sounds/341090/
dog_snarl2.ogg licensed under CC0 1.0 taken from strongbot at https://freesound.org/people/strongbot/sounds/341090/
dog_snarl3.ogg licensed under CC0 1.0 taken from strongbot at https://freesound.org/people/strongbot/sounds/341090/
dog_whine.ogg licensed under CC SAMPLING+ 1.0 DEED taken from Sruddil at https://freesound.org/people/Sruddi1/sounds/34878/
howl.ogg taken from goonstation at https://github.com/goonstation/goonstation/blob/master/sound/voice/animal/werewolf_howl.ogg which is licensed under the CC BY-NC-SA 3.0.
5 changes: 5 additions & 0 deletions Resources/Locale/en-US/deltav/chat/managers/chat_manager.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chat-speech-verb-name-vulpkanin = Vulpkanin
chat-speech-verb-vulpkanin-1 = rawrs
chat-speech-verb-vulpkanin-2 = barks
chat-speech-verb-vulpkanin-3 = rurs
chat-speech-verb-vulpkanin-4 = yaps
Loading

0 comments on commit 8270907

Please sign in to comment.