-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
190 changed files
with
3,659 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.