Pneumatic cannons (#4560)

* basics & visuals

* pneumatic cannon works perf

* loc + popups

* gas tank does stuff + queue changes

* updates

* b

* forcefeeding

* inhand

* crafting!

* pie cannon now is a pneumatic cannon

* oopy

* fix for entman + verbs

* pie

* change for tools

* actual

* combat mode + better sounds

* reviews
This commit is contained in:
mirrorcult
2021-11-03 14:33:36 -07:00
committed by GitHub
parent 6bb1e58e77
commit 3f51ffbd3c
33 changed files with 791 additions and 89 deletions

View File

@@ -287,9 +287,9 @@ namespace Content.Client.Entry
"Uplink",
"PDA",
"SpawnItemsOnUse",
"AmbientOnPowered",
"Wieldable",
"IncreaseDamageOnWield",
"AmbientOnPowered",
"TabletopGame",
"LitOnPowered",
"TriggerOnSignalReceived",
@@ -304,7 +304,8 @@ namespace Content.Client.Entry
"HandLabeler",
"Label",
"GhostRadio",
"Armor"
"Armor",
"PneumaticCannon"
};
}
}

View File

@@ -0,0 +1,21 @@
using Content.Shared.PneumaticCannon;
using Robust.Client.GameObjects;
namespace Content.Client.PneumaticCannon
{
public class PneumaticCannonVisualizer : AppearanceVisualizer
{
public override void OnChangeData(AppearanceComponent component)
{
base.OnChangeData(component);
if (!component.Owner.TryGetComponent<SpriteComponent>(out var sprite))
return;
if (component.TryGetData(PneumaticCannonVisuals.Tank, out bool tank))
{
sprite.LayerSetVisible(PneumaticCannonVisualLayers.Tank, tank);
}
}
}
}