Skip to content

Commit

Permalink
Added Delta-V's cosmetic option to AI Overlay, thanks Delta-V! Listen…
Browse files Browse the repository at this point in the history
…ing post has been given x1 Cross Grid Cam console. Updated ReadMe to include Starlight.
  • Loading branch information
AirFryerBuyOneGetOneFree2 committed Feb 7, 2025
1 parent da45fc7 commit 6fd89e2
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<BoxContainer Orientation="Horizontal" HorizontalExpand="True" Margin="0 0 0 10">
<Button Name="StationsButton" Access="Public" Text="&lt; Stations"
HorizontalExpand="True" StyleClasses="OpenBoth" />
<Button Name="BeaconsButton" Access="Public" Text="{Loc 'abductors-ui-beacons'}"
<Button Name="BeaconsButton" Access="Public" Text="{Loc 'Station Beacons'}"
HorizontalExpand="True" StyleClasses="OpenBoth" />
</BoxContainer>
<cc:HSeparator Color="#A04B81" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void OnAbductorBeaconChosenBuiMsg(Entity<AbductorHumanObservationConsole
_eye.SetDrawFov(args.Actor, false);

if (!HasComp<StationAiOverlayComponent>(args.Actor))
AddComp(args.Actor, new StationAiOverlayComponent { AllowCrossGrid = true });
AddComp(args.Actor, new StationAiOverlayComponent { AllowCrossGrid = true , Cosmetic = true });
if (!TryComp(eye, out RemoteEyeSourceContainerComponent? remoteEyeSourceContainerComponent))
{
remoteEyeSourceContainerComponent = new RemoteEyeSourceContainerComponent { Actor = args.Actor };
Expand Down
12 changes: 12 additions & 0 deletions Content.Shared/Silicons/StationAi/SharedStationAiSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ private void OnCoreVerbs(Entity<StationAiCoreComponent> ent, ref GetVerbsEvent<V

private void OnAiAccessible(Entity<StationAiOverlayComponent> ent, ref AccessibleOverrideEvent args)
{
// Begin DeltaV Additions
if (ent.Comp.Cosmetic)
return;
// End DeltaV Additions
args.Handled = true;

// Hopefully AI never needs storage
Expand All @@ -150,6 +154,10 @@ private void OnAiAccessible(Entity<StationAiOverlayComponent> ent, ref Accessibl

private void OnAiMenu(Entity<StationAiOverlayComponent> ent, ref MenuVisibilityEvent args)
{
// Begin DeltaV Additions
if (ent.Comp.Cosmetic)
return;
// End DeltaV Additions
args.Visibility &= ~MenuVisibility.NoFov;
}

Expand Down Expand Up @@ -187,6 +195,10 @@ private void OnAiBuiCheck(Entity<StationAiWhitelistComponent> ent, ref BoundUser

private void OnAiInRange(Entity<StationAiOverlayComponent> ent, ref InRangeOverrideEvent args)
{
// Begin DeltaV Additions
if (ent.Comp.Cosmetic)
return;
// End DeltaV Additions
args.Handled = true;
var target = args.Target;
if (ent.Comp.AllowCrossGrid && TryComp(ent, out RelayInputMoverComponent? relay))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ public sealed partial class StationAiOverlayComponent : Component
{
[DataField, AutoNetworkedField]
public bool AllowCrossGrid;

/// <summary>
/// DeltaV: Makes this purely an overlay and not functional.
/// Exists because this component also controls interaction ranges for some reason.
/// </summary>
[DataField, AutoNetworkedField]
public bool Cosmetic;
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ Content under these subdirectories either originate from their respective fork,
| `_Goobstation` | Goob Station | https://github.com/Goob-Station/Goob-Station/ | AGPL 3.0 |
| `_Harmony` | Harmony | https://github.com/ss14-harmony/ss14-harmony | AGPL 3.0 |
| `_NF` | Frontier Station | https://github.com/new-frontiers-14/frontier-station-14 | AGPL 3.0 |
| `_Starlight` | Starlight | https://github.com/ss14Starlight/space-station-14 | Starlight |
| `_White` | White Dream | https://github.com/WWhiteDreamProject/wwdpublic/ | AGPL 3.0 |
39 changes: 14 additions & 25 deletions Resources/Maps/_Impstation/Shuttles/listening_post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ entities:
name: Unknown
- type: Transform
pos: 22.326925,-7.8882475
parent: 966
parent: invalid
- type: MapGrid
chunks:
0,0:
Expand Down Expand Up @@ -530,19 +530,6 @@ entities:
- type: RadiationGridResistance
- type: Shuttle
- type: NavMap
- uid: 966
components:
- type: MetaData
name: Map Entity
- type: Transform
- type: Map
mapPaused: True
- type: PhysicsMap
- type: GridTree
- type: MovedGrids
- type: Broadphase
- type: OccluderTree
- type: LoadedMap
- proto: AcousticGuitarInstrument
entities:
- uid: 17
Expand Down Expand Up @@ -781,7 +768,7 @@ entities:
pos: 6.5,-1.5
parent: 1
- type: Door
secondsUntilStateChange: -4560.7007
secondsUntilStateChange: -4636.898
state: Opening
- type: DeviceLinkSource
lastSignals:
Expand All @@ -799,7 +786,7 @@ entities:
pos: 7.5,-0.5
parent: 1
- type: Door
secondsUntilStateChange: -5040.1
secondsUntilStateChange: -5116.2974
state: Opening
- type: DeviceLinkSource
lastSignals:
Expand All @@ -812,7 +799,7 @@ entities:
pos: -1.5,-1.5
parent: 1
- type: Door
secondsUntilStateChange: -5396.2666
secondsUntilStateChange: -5472.464
state: Opening
- type: DeviceLinkSource
lastSignals:
Expand Down Expand Up @@ -4178,7 +4165,7 @@ entities:
- uid: 838
components:
- type: Transform
pos: 8.377745,0.81428385
pos: 8.2848,2.032989
parent: 1
- proto: PowerCellRecharger
entities:
Expand Down Expand Up @@ -4326,7 +4313,7 @@ entities:
- uid: 839
components:
- type: Transform
pos: 8.54962,1.1267838
pos: 8.675425,1.9704452
parent: 1
- proto: RandomPosterContraband
entities:
Expand Down Expand Up @@ -4805,6 +4792,14 @@ entities:
available: False
- type: Pullable
prevFixedRotation: True
- proto: SyndicateObservationConsole
entities:
- uid: 948
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: 8.5,0.5
parent: 1
- proto: SyndicatePersonalAI
entities:
- uid: 819
Expand Down Expand Up @@ -4917,12 +4912,6 @@ entities:
rot: 3.141592653589793 rad
pos: 8.5,2.5
parent: 1
- uid: 948
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: 8.5,0.5
parent: 1
- uid: 952
components:
- type: Transform
Expand Down

0 comments on commit 6fd89e2

Please sign in to comment.