mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 00:57:26 +00:00
Visual nubody (humanoid appearance refactor) (#42476)
* initial visual nubody * oops overlay * im so pheeming rn * conversion... * tests * comeback of the underwear * oops eyes * blabbl * zeds * yaml linted * search and visible count constraints * reordering * preserve previously selected markings colors * fix test * some ui niceties * ordering * make DB changes backwards-compatible/downgrade-friendly * fix things again * fix migration * vulpkanin markings limit increase * wrapping * code cleanup and more code cleanup and more code cleanup and more code cleanup and * fix slop ports * better sampling API * make filter work + use the method i made for its intended purpose * fix test fails real quick * magic mirror cleanup, remove TODO * don't 0-init the organ profile data * remove deltastates --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> # Conflicts: # Content.Server/Humanoid/Components/RandomHumanoidAppearanceComponent.cs # Content.Server/Humanoid/Systems/RandomHumanoidAppearanceSystem.cs # Conflicts: # Resources/Prototypes/Species/diona.yml # Conflicts: # Content.Server/Zombies/ZombieSystem.Transform.cs
This commit is contained in:
committed by
Coryler
parent
4f85f1b483
commit
c57721eca5
@@ -0,0 +1,19 @@
|
||||
using Content.Shared.Humanoid;
|
||||
|
||||
namespace Content.Shared.Body;
|
||||
|
||||
public abstract partial class SharedVisualBodySystem
|
||||
{
|
||||
private void InitializeInitial()
|
||||
{
|
||||
SubscribeLocalEvent<VisualBodyComponent, MapInitEvent>(OnVisualMapInit, after: [typeof(InitialBodySystem)]);
|
||||
}
|
||||
|
||||
private void OnVisualMapInit(Entity<VisualBodyComponent> ent, ref MapInitEvent args)
|
||||
{
|
||||
if (!TryComp<HumanoidProfileComponent>(ent, out var humanoidProfile))
|
||||
return;
|
||||
|
||||
ApplyAppearanceTo(ent.AsNullable(), HumanoidCharacterAppearance.DefaultWithSpecies(humanoidProfile.Species, humanoidProfile.Sex), humanoidProfile.Sex);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user