diff --git a/Content.Client/_White/FootPrint/FootPrintsVisualizerSystem.cs b/Content.Client/_White/FootPrint/FootPrintsVisualizerSystem.cs new file mode 100644 index 0000000000..676ecc117e --- /dev/null +++ b/Content.Client/_White/FootPrint/FootPrintsVisualizerSystem.cs @@ -0,0 +1,84 @@ +using Content.Shared._White.FootPrint; +using Robust.Client.GameObjects; +using Robust.Client.Graphics; +using Robust.Shared.Random; + +namespace Content.Client._White.FootPrint; + +public sealed class FootPrintsVisualizerSystem : VisualizerSystem +{ + [Dependency] private readonly SharedAppearanceSystem _appearance = default!; + [Dependency] private readonly IRobustRandom _random = default!; + + public override void Initialize() + { + base.Initialize(); + + SubscribeLocalEvent(OnInitialized); + SubscribeLocalEvent(OnShutdown); + } + + private void OnInitialized(EntityUid uid, FootPrintComponent comp, ComponentInit args) + { + if (!TryComp(uid, out var sprite)) + return; + + sprite.LayerMapReserveBlank(FootPrintVisualLayers.Print); + UpdateAppearance(uid, comp, sprite); + } + + private void OnShutdown(EntityUid uid, FootPrintComponent comp, ComponentShutdown args) + { + if (TryComp(uid, out var sprite) && + sprite.LayerMapTryGet(FootPrintVisualLayers.Print, out var layer)) + { + sprite.RemoveLayer(layer); + } + } + + private void UpdateAppearance(EntityUid uid, FootPrintComponent component, SpriteComponent sprite) + { + if (!sprite.LayerMapTryGet(FootPrintVisualLayers.Print, out var layer) + || !TryComp(component.PrintOwner, out var printsComponent) + || !TryComp(uid, out var appearance)) + return; + + if (_appearance.TryGetData(uid, FootPrintVisualState.State, out var printVisuals, appearance)) + { + switch (printVisuals) + { + case FootPrintVisuals.BareFootPrint: + sprite.LayerSetState(layer, + printsComponent.RightStep + ? new RSI.StateId(printsComponent.RightBarePrint) + : new RSI.StateId(printsComponent.LeftBarePrint), + printsComponent.RsiPath); + break; + case FootPrintVisuals.ShoesPrint: + sprite.LayerSetState(layer, new RSI.StateId(printsComponent.ShoesPrint), printsComponent.RsiPath); + break; + case FootPrintVisuals.SuitPrint: + sprite.LayerSetState(layer, new RSI.StateId(printsComponent.SuitPrint), printsComponent.RsiPath); + break; + case FootPrintVisuals.Dragging: + sprite.LayerSetState(layer, new RSI.StateId(_random.Pick(printsComponent.DraggingPrint)), printsComponent.RsiPath); + break; + default: + throw new ArgumentOutOfRangeException($"Unknown {printVisuals} parameter."); + } + } + + if (!_appearance.TryGetData(uid, FootPrintVisualState.Color, out var printColor, appearance)) + return; + + sprite.LayerSetColor(layer, printColor); + } + + protected override void OnAppearanceChange (EntityUid uid, FootPrintComponent component, ref AppearanceChangeEvent args) + { + if (args.Sprite is not { } sprite) + return; + + UpdateAppearance(uid, component, sprite); + } +} diff --git a/Content.Server/_White/FootPrint/FootPrintsSystem.cs b/Content.Server/_White/FootPrint/FootPrintsSystem.cs new file mode 100644 index 0000000000..fbe903b826 --- /dev/null +++ b/Content.Server/_White/FootPrint/FootPrintsSystem.cs @@ -0,0 +1,131 @@ +using Content.Server.Atmos.Components; +using Content.Shared.Inventory; +using Content.Shared.Mobs; +using Content.Shared.Mobs.Components; +using Content.Shared._White.FootPrint; +using Content.Shared.Standing; +using Content.Shared.Chemistry.Components.SolutionManager; +using Content.Shared.Chemistry.EntitySystems; +using Robust.Shared.Map; +using Robust.Shared.Random; + +namespace Content.Server._White.FootPrint; + +public sealed class FootPrintsSystem : EntitySystem +{ + [Dependency] private readonly IRobustRandom _random = default!; + [Dependency] private readonly InventorySystem _inventory = default!; + [Dependency] private readonly IMapManager _map = default!; + + [Dependency] private readonly SharedSolutionContainerSystem _solution = default!; + [Dependency] private readonly SharedAppearanceSystem _appearance = default!; + [Dependency] private readonly SharedTransformSystem _transform = default!; + + private EntityQuery _transformQuery; + private EntityQuery _mobThresholdQuery; + private EntityQuery _appearanceQuery; + private EntityQuery _layingQuery; + + public override void Initialize() + { + base.Initialize(); + + _transformQuery = GetEntityQuery(); + _mobThresholdQuery = GetEntityQuery(); + _appearanceQuery = GetEntityQuery(); + _layingQuery = GetEntityQuery(); + + SubscribeLocalEvent(OnStartupComponent); + SubscribeLocalEvent(OnMove); + } + + private void OnStartupComponent(EntityUid uid, FootPrintsComponent comp, ComponentStartup args) + { + comp.StepSize += _random.NextFloat(-0.05f, 0.05f); + } + + private void OnMove(EntityUid uid, FootPrintsComponent comp, ref MoveEvent args) + { + if (comp.PrintsColor.A <= 0f + || !_transformQuery.TryComp(uid, out var transform) + || !_mobThresholdQuery.TryComp(uid, out var mobThreshHolds) + || !_map.TryFindGridAt(_transform.GetMapCoordinates((uid, transform)), out var gridUid, out _)) + return; + + var dragging = mobThreshHolds.CurrentThresholdState is MobState.Critical or MobState.Dead || _layingQuery.TryComp(uid, out var laying) && laying.IsCrawlingUnder; + var distance = (transform.LocalPosition - comp.StepPos).Length(); + var stepSize = dragging ? comp.DragSize : comp.StepSize; + + if (!(distance > stepSize)) + return; + + comp.RightStep = !comp.RightStep; + + var entity = Spawn(comp.StepProtoId, CalcCoords(gridUid, comp, transform, dragging)); + var footPrintComponent = Comp(entity); // There's NO way there's no footprint commponent in a FOOTPRINT + + footPrintComponent.PrintOwner = uid; + Dirty(entity, footPrintComponent); + + if (_appearanceQuery.TryComp(entity, out var appearance)) + { + _appearance.SetData(entity, FootPrintVisualState.State, PickState(uid, dragging), appearance); + _appearance.SetData(entity, FootPrintVisualState.Color, comp.PrintsColor, appearance); + } + + if (!_transformQuery.TryComp(entity, out var stepTransform)) + return; + + stepTransform.LocalRotation = dragging + ? (transform.LocalPosition - comp.StepPos).ToAngle() + Angle.FromDegrees(-90f) + : transform.LocalRotation + Angle.FromDegrees(180f); + + comp.PrintsColor = comp.PrintsColor.WithAlpha(ReduceAlpha(comp.PrintsColor.A, comp.ColorReduceAlpha)); + comp.StepPos = transform.LocalPosition; + + if (!TryComp(entity, out var solutionContainer) + || !_solution.ResolveSolution((entity, solutionContainer), footPrintComponent.SolutionName, ref footPrintComponent.Solution, out var solution) + || string.IsNullOrWhiteSpace(comp.ReagentToTransfer) || solution.Volume >= 1) + return; + + _solution.TryAddReagent(footPrintComponent.Solution.Value, comp.ReagentToTransfer, 1, out _); + } + + private EntityCoordinates CalcCoords(EntityUid uid, FootPrintsComponent comp, TransformComponent transform, bool state) + { + if (state) + return new EntityCoordinates(uid, transform.LocalPosition); + + var offset = comp.RightStep + ? new Angle(Angle.FromDegrees(180f) + transform.LocalRotation).RotateVec(comp.OffsetPrint) + : new Angle(transform.LocalRotation).RotateVec(comp.OffsetPrint); + + return new EntityCoordinates(uid, transform.LocalPosition + offset); + } + + private FootPrintVisuals PickState(EntityUid uid, bool dragging) + { + var state = FootPrintVisuals.BareFootPrint; + + if (_inventory.TryGetSlotEntity(uid, "shoes", out _)) + state = FootPrintVisuals.ShoesPrint; + + if (_inventory.TryGetSlotEntity(uid, "outerClothing", out var suit) && TryComp(suit, out _)) + state = FootPrintVisuals.SuitPrint; + + if (dragging) + state = FootPrintVisuals.Dragging; + + return state; + } + + private float ReduceAlpha(float alpha, float reductionAmount) + { + if (alpha - reductionAmount > 0f) + alpha -= reductionAmount; + else + alpha = 0f; + + return alpha; + } +} diff --git a/Content.Server/_White/FootPrint/PuddleFootPrintsSystem.cs b/Content.Server/_White/FootPrint/PuddleFootPrintsSystem.cs new file mode 100644 index 0000000000..e3a8555dab --- /dev/null +++ b/Content.Server/_White/FootPrint/PuddleFootPrintsSystem.cs @@ -0,0 +1,53 @@ +using System.Linq; +using Content.Shared._White.FootPrint; +using Content.Shared.Chemistry.Components.SolutionManager; +using Content.Shared.Chemistry.EntitySystems; +using Content.Shared.Fluids; +using Content.Shared.Fluids.Components; +using Robust.Shared.Physics.Events; + +namespace Content.Server._White.FootPrint; + +public sealed class PuddleFootPrintsSystem : EntitySystem +{ + [Dependency] private readonly SharedAppearanceSystem _appearance = default!; + [Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!; + + public override void Initialize() + { + base.Initialize(); + SubscribeLocalEvent(OnStepTrigger); + } + + private void OnStepTrigger(EntityUid uid, PuddleFootPrintsComponent comp, ref EndCollideEvent args) + { + if (!TryComp(uid, out var appearance) + || !TryComp(uid, out var puddle) + || !TryComp(args.OtherEntity, out var tripper) + || !TryComp(uid, out var solutionManager) + ||!_solutionContainer.ResolveSolution((uid, solutionManager), puddle.SolutionName, ref puddle.Solution, out var solutions)) + return; + + // alles gut! + var totalSolutionQuantity = solutions.Contents.Sum(sol => (float)sol.Quantity); + var waterQuantity = (from sol in solutions.Contents where sol.Reagent.Prototype == "Water" select (float) sol.Quantity).FirstOrDefault(); + + if (waterQuantity / (totalSolutionQuantity / 100f) > comp.OffPercent || solutions.Contents.Count <= 0) + return; + + tripper.ReagentToTransfer = + solutions.Contents.Aggregate((l, r) => l.Quantity > r.Quantity ? l : r).Reagent.Prototype; + + if (_appearance.TryGetData(uid, PuddleVisuals.SolutionColor, out var color, appearance) + && _appearance.TryGetData(uid, PuddleVisuals.CurrentVolume, out var volume, appearance)) + AddColor((Color)color, (float)volume * comp.SizeRatio, tripper); + + _solutionContainer.RemoveEachReagent(puddle.Solution.Value, 1); + } + + private void AddColor(Color col, float quantity, FootPrintsComponent comp) + { + comp.PrintsColor = comp.ColorQuantity == 0f ? col : Color.InterpolateBetween(comp.PrintsColor, col, 0.2f); + comp.ColorQuantity += quantity; + } +} diff --git a/Content.Shared/_White/Footprint/FootPrintComponent.cs b/Content.Shared/_White/Footprint/FootPrintComponent.cs new file mode 100644 index 0000000000..85e9207086 --- /dev/null +++ b/Content.Shared/_White/Footprint/FootPrintComponent.cs @@ -0,0 +1,23 @@ +using Content.Shared.Chemistry.Components; +using Robust.Shared.GameStates; + +namespace Content.Shared._White.FootPrint; + +/// +/// This is used for marking footsteps, handling footprint drawing. +/// +[RegisterComponent, NetworkedComponent, AutoGenerateComponentState] +public sealed partial class FootPrintComponent : Component +{ + /// + /// Owner (with ) of a print (this component). + /// + [AutoNetworkedField] + public EntityUid PrintOwner; + + [DataField] + public string SolutionName = "step"; + + [DataField] + public Entity? Solution; +} diff --git a/Content.Shared/_White/Footprint/FootPrintVisuals.cs b/Content.Shared/_White/Footprint/FootPrintVisuals.cs new file mode 100644 index 0000000000..f35e93ce96 --- /dev/null +++ b/Content.Shared/_White/Footprint/FootPrintVisuals.cs @@ -0,0 +1,25 @@ +using Robust.Shared.Serialization; + +namespace Content.Shared._White.FootPrint; + +[Serializable, NetSerializable] +public enum FootPrintVisuals : byte +{ + BareFootPrint, + ShoesPrint, + SuitPrint, + Dragging +} + +[Serializable, NetSerializable] +public enum FootPrintVisualState : byte +{ + State, + Color +} + +[Serializable, NetSerializable] +public enum FootPrintVisualLayers : byte +{ + Print +} diff --git a/Content.Shared/_White/Footprint/FootPrintsComponent.cs b/Content.Shared/_White/Footprint/FootPrintsComponent.cs new file mode 100644 index 0000000000..05fd07e371 --- /dev/null +++ b/Content.Shared/_White/Footprint/FootPrintsComponent.cs @@ -0,0 +1,64 @@ +using System.Numerics; +using Robust.Shared.Prototypes; +using Robust.Shared.Utility; + +namespace Content.Shared._White.FootPrint; + +[RegisterComponent] +public sealed partial class FootPrintsComponent : Component +{ + [ViewVariables(VVAccess.ReadOnly), DataField] + public ResPath RsiPath = new("/Textures/_White/Effects/footprints.rsi"); + + // all of those are set as a layer + [ViewVariables(VVAccess.ReadOnly), DataField] + public string LeftBarePrint = "footprint-left-bare-human"; + + [ViewVariables(VVAccess.ReadOnly), DataField] + public string RightBarePrint = "footprint-right-bare-human"; + + [ViewVariables(VVAccess.ReadOnly), DataField] + public string ShoesPrint = "footprint-shoes"; + + [ViewVariables(VVAccess.ReadOnly), DataField] + public string SuitPrint = "footprint-suit"; + + [ViewVariables(VVAccess.ReadOnly), DataField] + public string[] DraggingPrint = + [ + "dragging-1", + "dragging-2", + "dragging-3", + "dragging-4", + "dragging-5", + ]; + // yea, those + + [ViewVariables(VVAccess.ReadOnly), DataField] + public EntProtoId StepProtoId = "Footstep"; + + [ViewVariables(VVAccess.ReadOnly), DataField] + public Color PrintsColor = Color.FromHex("#00000000"); + + [DataField] + public float StepSize = 0.7f; + + [DataField] + public float DragSize = 0.5f; + + [DataField] + public float ColorQuantity; + + [DataField] + public float ColorReduceAlpha = 0.1f; + + [DataField] + public string? ReagentToTransfer; + + [DataField] + public Vector2 OffsetPrint = new(0.1f, 0f); + + public bool RightStep = true; + + public Vector2 StepPos = Vector2.Zero; +} diff --git a/Content.Shared/_White/Footprint/PuddleFootPrintsComponent.cs b/Content.Shared/_White/Footprint/PuddleFootPrintsComponent.cs new file mode 100644 index 0000000000..27e8606904 --- /dev/null +++ b/Content.Shared/_White/Footprint/PuddleFootPrintsComponent.cs @@ -0,0 +1,11 @@ +namespace Content.Shared._White.FootPrint; + +[RegisterComponent] +public sealed partial class PuddleFootPrintsComponent : Component +{ + [ViewVariables(VVAccess.ReadWrite)] + public float SizeRatio = 0.2f; + + [ViewVariables(VVAccess.ReadWrite)] + public float OffPercent = 80f; +} diff --git a/Resources/Prototypes/Entities/Effects/puddle.yml b/Resources/Prototypes/Entities/Effects/puddle.yml index 6a29a8af45..0d2c49d5c9 100644 --- a/Resources/Prototypes/Entities/Effects/puddle.yml +++ b/Resources/Prototypes/Entities/Effects/puddle.yml @@ -166,3 +166,4 @@ solution: puddle - type: BadDrink - type: IgnoresFingerprints + - type: PuddleFootPrints # WD EDIT diff --git a/Resources/Prototypes/Entities/Mobs/Player/arachnid.yml b/Resources/Prototypes/Entities/Mobs/Player/arachnid.yml index d9dea3c18d..2cb3a3da3e 100644 --- a/Resources/Prototypes/Entities/Mobs/Player/arachnid.yml +++ b/Resources/Prototypes/Entities/Mobs/Player/arachnid.yml @@ -10,4 +10,4 @@ Asphyxiation: 1.5 # This makes space and crit more lethal to arachnids. damageRecovery: types: - Asphyxiation: -0.5 + Asphyxiation: -0.5 \ No newline at end of file diff --git a/Resources/Prototypes/Entities/Mobs/Player/human.yml b/Resources/Prototypes/Entities/Mobs/Player/human.yml index aa87f81a83..6438d9f649 100644 --- a/Resources/Prototypes/Entities/Mobs/Player/human.yml +++ b/Resources/Prototypes/Entities/Mobs/Player/human.yml @@ -3,7 +3,7 @@ name: Urist McHands parent: BaseMobHuman id: MobHuman - + #Syndie - type: entity parent: MobHuman diff --git a/Resources/Prototypes/Entities/Mobs/Species/arachne.yml b/Resources/Prototypes/Entities/Mobs/Species/arachne.yml index 24ebafd91d..8cdd16aeef 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/arachne.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/arachne.yml @@ -135,6 +135,11 @@ fireStackAlternateState: 3 - type: Spider - type: IgnoreSpiderWeb + # WD EDIT START + - type: FootPrints + leftBarePrint: "footprint-left-bare-spider" + rightBarePrint: "footprint-right-bare-spider" + # WD EDIT END - type: entity save: false diff --git a/Resources/Prototypes/Entities/Mobs/Species/arachnid.yml b/Resources/Prototypes/Entities/Mobs/Species/arachnid.yml index b5c450ba1d..3e10932dba 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/arachnid.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/arachnid.yml @@ -130,6 +130,9 @@ # White Dream Start - transfer features from Arachne - type: Spider - type: IgnoreSpiderWeb + - type: FootPrints + leftBarePrint: "footprint-left-bare-spider" + rightBarePrint: "footprint-right-bare-spider" # White Dream End - type: entity diff --git a/Resources/Prototypes/Entities/Mobs/Species/diona.yml b/Resources/Prototypes/Entities/Mobs/Species/diona.yml index 113151ad08..da4634833a 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/diona.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/diona.yml @@ -120,6 +120,11 @@ whitelist: types: - Shard + # WD EDIT START + - type: FootPrints + leftBarePrint: "footprint-left-bare-diona" + rightBarePrint: "footprint-right-bare-diona" + # WD EDIT END - type: entity parent: BaseSpeciesDummy diff --git a/Resources/Prototypes/Entities/Mobs/Species/dwarf.yml b/Resources/Prototypes/Entities/Mobs/Species/dwarf.yml index aff836bec4..21d2900a11 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/dwarf.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/dwarf.yml @@ -66,6 +66,11 @@ boozeStrengthMultiplier: 0.5 - type: Stamina # White Dream: Make dwarfs a bit more durable. critThreshold: 115 + # WD EDIT START + - type: FootPrints + leftBarePrint: "footprint-left-bare-dwarf" + rightBarePrint: "footprint-right-bare-dwarf" + # WD EDIT END - type: entity parent: BaseSpeciesDummy diff --git a/Resources/Prototypes/Entities/Mobs/Species/harpy.yml b/Resources/Prototypes/Entities/Mobs/Species/harpy.yml index ce87e10549..a0ba9b77c3 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/harpy.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/harpy.yml @@ -127,6 +127,11 @@ - Shard - Landmine - Mousetrap + # WD EDIT START + - type: FootPrints + leftBarePrint: "footprint-left-bare-lizard" + rightBarePrint: "footprint-right-bare-lizard" + # WD EDIT END - type: entity save: false diff --git a/Resources/Prototypes/Entities/Mobs/Species/human.yml b/Resources/Prototypes/Entities/Mobs/Species/human.yml index 013789cd2b..15d71016c7 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/human.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/human.yml @@ -28,6 +28,7 @@ understands: - TauCetiBasic - SolCommon + - type: FootPrints # WD EDIT - type: entity parent: BaseSpeciesDummy diff --git a/Resources/Prototypes/Entities/Mobs/Species/moth.yml b/Resources/Prototypes/Entities/Mobs/Species/moth.yml index fef380d1d5..30067d38bb 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/moth.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/moth.yml @@ -122,6 +122,7 @@ sprite: "Effects/creampie.rsi" state: "creampie_moth" visible: false + - type: FootPrints # WD EDIT - type: entity parent: BaseSpeciesDummy diff --git a/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml b/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml index b27b4c6029..8c55272403 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/reptilian.yml @@ -66,6 +66,11 @@ understands: - TauCetiBasic - Draconic + # WD EDIT START + - type: FootPrints + leftBarePrint: "footprint-left-bare-lizard" + rightBarePrint: "footprint-right-bare-lizard" + # WD EDIT END - type: entity parent: BaseSpeciesDummy diff --git a/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml b/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml index 28ea5b030f..ca11d94d87 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/skeleton.yml @@ -102,6 +102,7 @@ probability: 0.5 - type: FireVisuals alternateState: Standing + - type: FootPrints # WD EDIT - type: entity parent: BaseSpeciesDummy diff --git a/Resources/Prototypes/Entities/Mobs/Species/slime.yml b/Resources/Prototypes/Entities/Mobs/Species/slime.yml index 1e2924ca82..0972d6c782 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/slime.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/slime.yml @@ -119,6 +119,11 @@ understands: - TauCetiBasic - Bubblish + # WD EDIT START + - type: FootPrints + leftBarePrint: "footprint-left-bare-slime" + rightBarePrint: "footprint-right-bare-slime" + # WD EDIT END - type: entity parent: MobHumanDummy diff --git a/Resources/Prototypes/Entities/Mobs/Species/vox.yml b/Resources/Prototypes/Entities/Mobs/Species/vox.yml index ec8035563b..58e2b3b646 100644 --- a/Resources/Prototypes/Entities/Mobs/Species/vox.yml +++ b/Resources/Prototypes/Entities/Mobs/Species/vox.yml @@ -102,6 +102,9 @@ sprite: "Effects/creampie.rsi" state: "creampie_vox" # Not default visible: false + - type: FootPrints + leftBarePrint: "footprint-left-bare-lizard" + rightBarePrint: "footprint-right-bare-lizard" - type: entity parent: BaseSpeciesDummy diff --git a/Resources/Prototypes/_White/Entities/Effects/puddle.yml b/Resources/Prototypes/_White/Entities/Effects/puddle.yml new file mode 100644 index 0000000000..3a726e10fb --- /dev/null +++ b/Resources/Prototypes/_White/Entities/Effects/puddle.yml @@ -0,0 +1,37 @@ +- type: entity + name: Footstep + id: Footstep + save: false + description: Trace of liquid + components: + - type: Clickable + - type: FootstepModifier + footstepSoundCollection: + collection: FootstepWater + params: + volume: 3 + - type: Transform + noRot: false + - type: Sprite + drawdepth: FloorObjects + color: "#FFFFFF80" + - type: Physics + bodyType: Static + - type: Fixtures + fixtures: + slipFixture: + shape: + !type:PhysShapeAabb + bounds: "-0.4,-0.4,0.4,0.4" + mask: + - ItemMask + layer: + - SlipLayer + hard: false + - type: SolutionContainerManager + solutions: + step: { maxVol: 2 } + - type: FootPrint + - type: Puddle + solution: step + - type: Appearance \ No newline at end of file diff --git a/Resources/Textures/_White/Effects/footprints.rsi/dragging-1.png b/Resources/Textures/_White/Effects/footprints.rsi/dragging-1.png new file mode 100644 index 0000000000..74d2aeb074 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/dragging-1.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/dragging-2.png b/Resources/Textures/_White/Effects/footprints.rsi/dragging-2.png new file mode 100644 index 0000000000..cc45f4f8ae Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/dragging-2.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/dragging-3.png b/Resources/Textures/_White/Effects/footprints.rsi/dragging-3.png new file mode 100644 index 0000000000..d0f7274dd3 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/dragging-3.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/dragging-4.png b/Resources/Textures/_White/Effects/footprints.rsi/dragging-4.png new file mode 100644 index 0000000000..5eb34b5d57 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/dragging-4.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/dragging-5.png b/Resources/Textures/_White/Effects/footprints.rsi/dragging-5.png new file mode 100644 index 0000000000..6b1b34d145 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/dragging-5.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/dragging-test.png b/Resources/Textures/_White/Effects/footprints.rsi/dragging-test.png new file mode 100644 index 0000000000..b8c9ba50a7 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/dragging-test.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-diona.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-diona.png new file mode 100644 index 0000000000..fa40e0f297 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-diona.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-dwarf.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-dwarf.png new file mode 100644 index 0000000000..43b88aa164 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-dwarf.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-human.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-human.png new file mode 100644 index 0000000000..f7ab3257c5 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-human.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-lizard.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-lizard.png new file mode 100644 index 0000000000..e53ba99227 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-lizard.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-slime.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-slime.png new file mode 100644 index 0000000000..87561cb161 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-slime.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-spider.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-spider.png new file mode 100644 index 0000000000..4939e72c4b Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-left-bare-spider.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-diona.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-diona.png new file mode 100644 index 0000000000..21f3a11774 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-diona.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-dwarf.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-dwarf.png new file mode 100644 index 0000000000..e493ddbdf6 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-dwarf.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-human.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-human.png new file mode 100644 index 0000000000..4de70b5c1e Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-human.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-lizard.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-lizard.png new file mode 100644 index 0000000000..e53ba99227 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-lizard.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-slime.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-slime.png new file mode 100644 index 0000000000..c10fe24f0b Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-slime.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-spider.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-spider.png new file mode 100644 index 0000000000..e9f3a88776 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-right-bare-spider.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-shoes.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-shoes.png new file mode 100644 index 0000000000..6cf329a9b6 Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-shoes.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/footprint-suit.png b/Resources/Textures/_White/Effects/footprints.rsi/footprint-suit.png new file mode 100644 index 0000000000..6bc32d343c Binary files /dev/null and b/Resources/Textures/_White/Effects/footprints.rsi/footprint-suit.png differ diff --git a/Resources/Textures/_White/Effects/footprints.rsi/meta.json b/Resources/Textures/_White/Effects/footprints.rsi/meta.json new file mode 100644 index 0000000000..0ce2e096ac --- /dev/null +++ b/Resources/Textures/_White/Effects/footprints.rsi/meta.json @@ -0,0 +1,71 @@ +{ + "version": 1, + "size": { + "x": 32, + "y": 32 + }, + "license": "CC-BY-SA-3.0", + "copyright": "IMPERIAL SPACE", + "states": [ + { + "name": "footprint-left-bare-diona" + }, + { + "name": "footprint-left-bare-dwarf" + }, + { + "name": "footprint-left-bare-human" + }, + { + "name": "footprint-left-bare-lizard" + }, + { + "name": "footprint-left-bare-slime" + }, + { + "name": "footprint-left-bare-spider" + }, + { + "name": "footprint-right-bare-diona" + }, + { + "name": "footprint-right-bare-dwarf" + }, + { + "name": "footprint-right-bare-human" + }, + { + "name": "footprint-right-bare-lizard" + }, + { + "name": "footprint-right-bare-slime" + }, + { + "name": "footprint-right-bare-spider" + }, + { + "name": "footprint-shoes" + }, + { + "name": "footprint-suit" + }, + { + "name": "dragging-1" + }, + { + "name": "dragging-2" + }, + { + "name": "dragging-3" + }, + { + "name": "dragging-4" + }, + { + "name": "dragging-5" + }, + { + "name": "dragging-test" + } + ] +}