using Content.Shared.Shuttles.BUIStates;
using Content.Shared.Shuttles.Components;
using Content.Shared.Shuttles.Systems;
+using Content.Shared.PowerCell;
+using Content.Shared.Movement.Components;
using Robust.Server.GameObjects;
using Robust.Shared.Map;
EntityCoordinates? coordinates = onGrid ? xform.Coordinates : null;
Angle? angle = onGrid ? xform.LocalRotation : null;
- // Use ourself I guess.
- if (TryComp<IntrinsicUIComponent>(uid, out var intrinsic))
+ if (component.FollowEntity)
{
- foreach (var uiKey in intrinsic.UIs)
- {
- if (uiKey.Key?.Equals(RadarConsoleUiKey.Key) == true)
- {
- coordinates = new EntityCoordinates(uid, Vector2.Zero);
- angle = Angle.Zero;
- break;
- }
- }
+ coordinates = new EntityCoordinates(uid, Vector2.Zero);
+ angle = Angle.Zero;
}
if (_uiSystem.TryGetUi(uid, RadarConsoleUiKey.Key, out var bui))
[DataField, AutoNetworkedField]
public float MaxRange = 256f;
+
+ /// <summary>
+ /// If true, the radar will be centered on the entity. If not - on the grid on which it is located.
+ /// </summary>
+ [DataField]
+ public bool FollowEntity = false;
}
research-technology-super-powercells = Super Powercells
research-technology-bluespace-storage = Bluespace Storage
research-technology-portable-fission = Portable Fission
+research-technology-space-scanning = Space Scanning
research-technology-salvage-weapons = Salvage Weapons
research-technology-draconic-munitions = Draconic Munitions
- id: OxygenTankFilled
- id: FireExtinguisher
- id: ClothingShoesBootsMag
+ - id: HandHeldMassScanner
- id: Pickaxe
- id: Welder
- id: Wrench
title: comms-console-announcement-title-centcom
color: "#228b22"
- type: RadarConsole
+ followEntity: true
- type: CargoOrderConsole
- type: CrewMonitoringConsole
snap: false
- type: ItemBorgModule
items:
- HandheldGPSBasic
+ - HandHeldMassScannerBorg
- HandheldStationMapUnpowered
- type: entity
--- /dev/null
+- type: entity
+ name: handheld mass scanner
+ parent: [ BaseItem, PowerCellSlotSmallItem]
+ id: HandHeldMassScanner
+ description: A hand-held mass scanner.
+ components:
+ - type: Item
+ - type: Sprite
+ sprite: Objects/Tools/handheld_mass_scanner.rsi
+ state: icon
+ layers:
+ - state: icon
+ - state: scanner
+ shader: unshaded
+ visible: true
+ map: [ "enum.PowerDeviceVisualLayers.Powered" ]
+ - type: RadarConsole
+ maxRange: 64
+ followEntity: true
+ - type: Appearance
+ - type: GenericVisualizer
+ visuals:
+ enum.PowerCellSlotVisuals.Enabled:
+ enum.PowerDeviceVisualLayers.Powered:
+ True: { visible: true }
+ False: { visible: false }
+ - type: PowerCellDraw
+ drawRate: 3
+ useRate: 100
+ - type: ActivatableUIRequiresPowerCell
+ - type: ActivatableUI
+ key: enum.RadarConsoleUiKey.Key
+ inHandsOnly: true
+ singleUser: true
+ - type: UserInterface
+ interfaces:
+ - key: enum.RadarConsoleUiKey.Key
+ type: RadarConsoleBoundUserInterface
+ - type: StaticPrice
+ price: 150
+
+- type: entity
+ id: HandHeldMassScannerEmpty
+ parent: HandHeldMassScanner
+ suffix: Empty
+ components:
+ - type: ItemSlots
+ slots:
+ cell_slot:
+ name: power-cell-slot-component-slot-name-default
+ - type: Sprite
+ sprite: Objects/Tools/handheld_mass_scanner.rsi
+ state: icon
+ layers:
+ - state: icon
+ - state: scanner
+ shader: unshaded
+ visible: false
+ map: [ "enum.PowerDeviceVisualLayers.Powered" ]
+
+- type: entity
+ id: HandHeldMassScannerBorg
+ parent: HandHeldMassScanner
+ suffix: Borg
+ components:
+ - type: ItemSlots
+ slots:
+ cell_slot:
+ name: power-cell-slot-component-slot-name-default
+ startingItem: PowerCellMicroreactor
+ disableEject: true
+ swap: false
\ No newline at end of file
- SignalTrigger
- VoiceTrigger
- Igniter
+ - HandHeldMassScanner
- PowerCellMicroreactor
- PowerCellHigh
- WeaponPistolCHIMP
- SciFlash
- BorgModuleCable
- BorgModuleFireExtinguisher
- - BorgModuleGPS
- BorgModuleRadiationDetection
- BorgModuleTool
- BorgModuleAppraisal
- BorgModuleMining
- BorgModuleGrapplingGun
- BorgModuleAdvancedTool
+ - BorgModuleGPS
- BorgModuleRCD
- BorgModuleArtifact
- BorgModuleAnomaly
Steel: 500
Plastic: 250
+- type: latheRecipe
+ id: HandHeldMassScanner
+ result: HandHeldMassScannerEmpty
+ category: Tools
+ completetime: 2
+ materials:
+ Steel: 800
+ Glass: 300
+
- type: latheRecipe
id: HandheldGPSBasic
result: HandheldGPSBasic
- WeaponGrapplingGun
- BorgModuleGrapplingGun
+- type: technology
+ id: SpaceScanning
+ name: research-technology-space-scanning
+ icon:
+ sprite: Objects/Tools/handheld_mass_scanner.rsi
+ state: icon
+ discipline: Industrial
+ tier: 2
+ cost: 7500
+ recipeUnlocks:
+ - RadarConsoleCircuitboard
+ - HandHeldMassScanner
+ - BorgModuleGPS
+
- type: technology
id: Shuttlecraft
name: research-technology-shuttlecraft
cost: 10000
recipeUnlocks:
- ShuttleConsoleCircuitboard
- - RadarConsoleCircuitboard
- ThrusterMachineCircuitboard
- GyroscopeMachineCircuitboard
- MiniGravityGeneratorCircuitboard
--- /dev/null
+{
+ "version": 1,
+ "size": {
+ "x": 32,
+ "y": 32
+ },
+ "license": "CC-BY-SA-3.0",
+ "copyright": "Taken from Frontier Station, created by Tem Armoff https://github.com/new-frontiers-14/frontier-station-14/pull/484/files",
+ "states": [
+ {
+ "name": "scanner",
+ "directions": 1,
+ "delays": [
+ [
+ 0.4,
+ 0.4
+ ]
+ ]
+ },
+ {
+ "name": "icon",
+ "directions": 1
+ }
+ ]
+}