-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* It begins * Delete error.txt * Patch by Debug * HIDING WINGS NOW WORKS * Runs smoother from Shared * Delete HarpyVisualsSystem.cs * The entire clientside script is no longer needed, and the visuals now work correctly. Helmetbug is gone. * Update HarpyVisualsSystem.cs * First completed Harpy Hardsuit * Captain and Atmos tech birdsuits * Update hardsuit-helmets.yml * And more content * Adding new finch tail <3 * whoops * guh * I swear the tail works now, I just need the adhd meds to kick in * birb juggsuit * More stuff * Nukie hardsuits * fixing clipping issues on birb juggsuit * Update meta.json * aaaaaaaaa * two more * Ton of extra harpy sprites * Create equipped-INNERCLOTHING-harpy.png * Harpy Ultravision trait TODO: Optional trait that disables it * Trait that removes Ultravision * Code optimizations * Adding hueshift maps to all harpy markings * No more jumpsuits * 1984 the harpy jumpsuits, they are no longer needed * last 2 * final QA pass * shennanigans related to an earlier merge conflict --------- Signed-off-by: VMSolidus <[email protected]>
- Loading branch information
Showing
137 changed files
with
1,572 additions
and
510 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,5 @@ | ||
namespace Content.Client.DeltaV.Harpy; | ||
|
||
[RegisterComponent] | ||
public sealed partial class HarpyVisualsComponent : 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,44 @@ | ||
using Robust.Client.Graphics; | ||
using Robust.Client.Player; | ||
using Robust.Shared.Enums; | ||
using Robust.Shared.Prototypes; | ||
using Content.Shared.Abilities; | ||
|
||
namespace Content.Client.DeltaV.Overlays; | ||
|
||
public sealed partial class UltraVisionOverlay : 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 _ultraVisionShader; | ||
|
||
public UltraVisionOverlay() | ||
{ | ||
IoCManager.InjectDependencies(this); | ||
_ultraVisionShader = _prototypeManager.Index<ShaderPrototype>("UltraVision").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<UltraVisionComponent>(player)) | ||
return; | ||
|
||
_ultraVisionShader?.SetParameter("SCREEN_TEXTURE", ScreenTexture); | ||
|
||
|
||
var worldHandle = args.WorldHandle; | ||
var viewport = args.WorldBounds; | ||
worldHandle.SetTransform(Matrix3.Identity); | ||
worldHandle.UseShader(_ultraVisionShader); | ||
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,31 @@ | ||
using Content.Shared.Abilities; | ||
using Robust.Client.Graphics; | ||
|
||
namespace Content.Client.DeltaV.Overlays; | ||
|
||
public sealed partial class UltraVisionSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly IOverlayManager _overlayMan = default!; | ||
|
||
private UltraVisionOverlay _overlay = default!; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<UltraVisionComponent, ComponentInit>(OnUltraVisionInit); | ||
SubscribeLocalEvent<UltraVisionComponent, ComponentShutdown>(OnUltraVisionShutdown); | ||
|
||
_overlay = new(); | ||
} | ||
|
||
private void OnUltraVisionInit(EntityUid uid, UltraVisionComponent component, ComponentInit args) | ||
{ | ||
_overlayMan.AddOverlay(_overlay); | ||
} | ||
|
||
private void OnUltraVisionShutdown(EntityUid uid, UltraVisionComponent component, ComponentShutdown args) | ||
{ | ||
_overlayMan.RemoveOverlay(_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,8 @@ | ||
using Robust.Shared.GameStates; | ||
namespace Content.Shared.DeltaV.Abilities; | ||
|
||
[RegisterComponent] | ||
[NetworkedComponent] | ||
|
||
public sealed partial class DefaultVisionComponent : 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,19 @@ | ||
using Content.Shared.Abilities; | ||
using Content.Shared.DeltaV.Abilities; | ||
|
||
namespace Content.Client.DeltaV.Overlays; | ||
|
||
public sealed partial class DefaultVisionSystem : EntitySystem | ||
{ | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<DefaultVisionComponent, ComponentInit>(OnDefaultVisionInit); | ||
} | ||
|
||
private void OnDefaultVisionInit(EntityUid uid, DefaultVisionComponent component, ComponentInit args) | ||
{ | ||
RemComp<UltraVisionComponent>(uid); | ||
} | ||
} |
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 UltraVisionComponent : 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
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,40 @@ | ||
using Content.Shared.Inventory.Events; | ||
using Content.Shared.Tag; | ||
using Content.Shared.Humanoid; | ||
|
||
namespace Content.Shared.DeltaV.Harpy; | ||
|
||
public sealed class HarpyVisualsSystem : EntitySystem | ||
{ | ||
[Dependency] private readonly TagSystem _tagSystem = default!; | ||
[Dependency] private readonly SharedHumanoidAppearanceSystem _humanoidSystem = default!; | ||
|
||
[ValidatePrototypeId<TagPrototype>] | ||
private const string HarpyWingsTag = "HidesHarpyWings"; | ||
|
||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<HarpySingerComponent, DidEquipEvent>(OnDidEquipEvent); | ||
SubscribeLocalEvent<HarpySingerComponent, DidUnequipEvent>(OnDidUnequipEvent); | ||
} | ||
|
||
private void OnDidEquipEvent(EntityUid uid, HarpySingerComponent component, DidEquipEvent args) | ||
{ | ||
if (args.Slot == "outerClothing" && _tagSystem.HasTag(args.Equipment, HarpyWingsTag)) | ||
{ | ||
_humanoidSystem.SetLayerVisibility(uid, HumanoidVisualLayers.RArm, false); | ||
_humanoidSystem.SetLayerVisibility(uid, HumanoidVisualLayers.Tail, false); | ||
} | ||
} | ||
|
||
private void OnDidUnequipEvent(EntityUid uid, HarpySingerComponent component, DidUnequipEvent args) | ||
{ | ||
if (args.Slot == "outerClothing" && _tagSystem.HasTag(args.Equipment, HarpyWingsTag)) | ||
{ | ||
_humanoidSystem.SetLayerVisibility(uid, HumanoidVisualLayers.RArm, true); | ||
_humanoidSystem.SetLayerVisibility(uid, HumanoidVisualLayers.Tail, true); | ||
} | ||
} | ||
} |
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,9 @@ | ||
using Robust.Shared.Serialization; | ||
|
||
namespace Content.Shared.DeltaV.Harpy; | ||
|
||
[Serializable, NetSerializable] | ||
public enum HardsuitWings : byte | ||
{ | ||
Worn | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
trait-scottish-accent-name = Scottish Accent | ||
trait-scottish-accent-desc = Fer tha folk who come frae Hielan clan. | ||
trait-ultravision-desc = Whether through custom bionic eyes, random mutation, | ||
or being a Harpy, you perceive the world with ultraviolet light. | ||
trait-defaultvision-desc = You lack any vision variation from the norm for a non-human species. | ||
trait-uncloneable-name = Uncloneable | ||
trait-uncloneable-desc = Cannot be cloned |
Oops, something went wrong.