Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computers Update #195

Merged
merged 1 commit into from
Aug 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -941,3 +941,5 @@
radius: 1.5
energy: 1.6
color: "#b89f25"
- type: MarketModifier # In the case someone got a computer board from QM locker, they can use it to sell on a ship if they have the grids, just to make sure its useless.
mod: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
- type: entity
name: shipyard console
parent: BaseStructureComputer
id: ComputerShipyard
description: Used to purchase and sell shuttles
placement:
mode: SnapgridCenter
components:
- type: MeleeSound
soundGroups:
Brute:
path:
"/Audio/Effects/glass_hit.ogg"
- type: Computer
- type: ApcPowerReceiver
powerLoad: 200
- type: ExtensionCableReceiver
- type: ActivatableUIRequiresPower
- type: Sprite
netsync: false
noRot: true
sprite: _NF/Structures/Machines/computers.rsi
layers:
- map: ["computerLayerBody"]
state: computer
- map: ["computerLayerKeyboard"]
state: generic_keyboard
- map: ["computerLayerScreen"]
state: shipyard
- map: ["computerLayerKeys"]
state: telesci_key
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ComputerVisuals.Powered:
computerLayerScreen:
True: { visible: true, shader: unshaded }
False: { visible: false }
computerLayerKeys:
True: { visible: true, shader: unshaded }
False: { visible: true, shader: shaded }
- type: LitOnPowered
- type: PointLight
radius: 1.5
energy: 1.6
color: "#b89f25"
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
autoRot: true
offset: "0, 0.4" # shine from the top, not bottom of the computer
castShadows: false
- type: EmitSoundOnUIOpen
sound:
collection: Keyboard
- type: ShipyardConsole
targetIdSlot:
name: id-card-console-target-id
ejectSound: /Audio/Machines/id_swipe.ogg
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
ejectOnBreak: true
swap: true
whitelist:
components:
- IdCard
- type: ActivatableUI
key: enum.ShipyardConsoleUiKey.Shipyard
- type: UserInterface
interfaces:
- key: enum.ShipyardConsoleUiKey.Shipyard
type: ShipyardConsoleBoundUserInterface
- type: ItemSlots
- type: ContainerContainer
containers:
ShipyardConsole-targetId: !type:ContainerSlot {}
- type: Anchorable
delay: 999999

- type: entity
id: ComputerShipyardSecurity
parent: ComputerShipyard
name: security shipyard console
description: Used to enlist into Nanotrasen Security Forces
components:
- type: ActivatableUI
key: enum.ShipyardConsoleUiKey.Security
- type: UserInterface
interfaces:
- key: enum.ShipyardConsoleUiKey.Security
type: ShipyardConsoleBoundUserInterface
- type: Sprite
sprite: _NF/Structures/Machines/computers.rsi
layers:
- map: ["computerLayerBody"]
state: computer
- map: ["computerLayerKeyboard"]
state: generic_keyboard
- map: ["computerLayerScreen"]
state: shipyard_security
- map: ["computerLayerKeys"]
state: telesci_key

- type: entity
name: cargo sale computer
suffix: Normal
parent: BaseStructureComputer
id: ComputerPalletConsoleNFNormalMarket
description: Used to sell goods loaded onto cargo pallets
placement:
mode: SnapgridCenter
components:
- type: MeleeSound
soundGroups:
Brute:
path:
"/Audio/Effects/glass_hit.ogg"
- type: Computer
- type: ApcPowerReceiver
powerLoad: 200
- type: ExtensionCableReceiver
- type: ActivatableUIRequiresPower
- type: Sprite
netsync: false
noRot: true
sprite: Structures/Machines/computers.rsi
layers:
- map: ["computerLayerBody"]
state: computer
- map: ["computerLayerKeyboard"]
state: generic_keyboard
- map: ["computerLayerScreen"]
state: request
- map: ["computerLayerKeys"]
state: tech_key
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ComputerVisuals.Powered:
computerLayerScreen:
True: { visible: true, shader: unshaded }
False: { visible: false }
computerLayerKeys:
True: { visible: true, shader: unshaded }
False: { visible: true, shader: shaded }
- type: LitOnPowered
- type: PointLight
radius: 1.5
energy: 1.6
color: "#b89f25"
enabled: false
mask: /Textures/Effects/LightMasks/cone.png
autoRot: true
offset: "0, 0.4" # shine from the top, not bottom of the computer
castShadows: false
- type: EmitSoundOnUIOpen
sound:
collection: Keyboard
- type: CargoPalletConsole
- type: ActivatableUI
key: enum.CargoPalletConsoleUiKey.Sale
- type: UserInterface
interfaces:
- key: enum.CargoPalletConsoleUiKey.Sale
type: CargoPalletConsoleBoundUserInterface
- type: Anchorable
delay: 999999
- type: MarketModifier
mod: 1.00

- type: entity
parent: ComputerPalletConsoleNFNormalMarket
id: ComputerPalletConsoleNFHighMarket
suffix: High
description: Used to sell goods loaded onto cargo pallets
components:
- type: MarketModifier
mod: 1.59

- type: entity
parent: ComputerPalletConsoleNFNormalMarket
id: ComputerPalletConsoleNFLowMarket
suffix: Low
description: Used to sell goods loaded onto cargo pallets
components:
- type: MarketModifier
mod: 0.698

- type: entity
parent: ComputerPalletConsoleNFNormalMarket
id: ComputerPalletConsoleNFVeryLowMarket
suffix: VeryLow
description: Used to sell goods loaded onto cargo pallets
components:
- type: MarketModifier
mod: 0.40
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
- type: entity
id: MachineCryoSleepPod
parent: BaseMachine
name: cryo sleep chamber
description: cold pillow guaranteed
components:
- type: Sprite
netsync: false
sprite: _NF/Structures/cryopod.rsi
layers:
- state: closed
- type: Anchorable
delay: 999999
- type: Physics
bodyType: Static
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:ChangeConstructionNodeBehavior
node: machineFrame
- !type:DoActsBehavior
acts: ["Destruction"]
- type: MaterialStorage
- type: Appearance
- type: Climbable
- type: CryoSleep
- type: ContainerContainer
containers:
body_container: !type:ContainerSlot
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- type: entity
parent: FaxMachineBase
id: FaxMachineShip
suffix: Ship
components:
- type: FaxMachine
useStationName: true
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,140 @@
energy: 1.6
color: "#4b93ad"
- type: MarketModifier
mod: 10
mod: 10

- type: entity
parent: VendingMachine
id: VendingMachineAstroVend
name: AstroVend
description: Essential gear for the space-men on the go
components:
- type: Anchorable
delay: 999999
- type: VendingMachine
pack: AstroVendInventory
offState: off
brokenState: broken
normalState: normal-unshaded
# ejectState: eject-unshaded No sprite, see chefvend/dinnerware/BODA/etc for expamples
- type: Advertise
pack: AstroVendAds
- type: Sprite
sprite: _NF/Structures/astrovend.rsi
layers:
- state: "off"
map: ["enum.VendingMachineVisualLayers.Base"]
- state: "off"
map: ["enum.VendingMachineVisualLayers.BaseUnshaded"]
shader: unshaded
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: PointLight
radius: 1.5
energy: 1.6
color: "#4b93ad"

- type: entity
parent: VendingMachine
id: VendingMachineCircuitVend
name: CircuitVend
description: Essential tech for the space-men on the go
components:
- type: Anchorable
delay: 999999
- type: VendingMachine
pack: CircuitVendInventory
offState: off
brokenState: broken
normalState: normal-unshaded
ejectState: eject-unshaded
denyState: deny-unshaded
- type: Advertise
pack: AstroVendAds
- type: Sprite
sprite: Structures/Machines/VendingMachines/robotics.rsi
layers:
- state: "off"
map: ["enum.VendingMachineVisualLayers.Base"]
- state: "off"
map: ["enum.VendingMachineVisualLayers.BaseUnshaded"]
shader: unshaded
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: PointLight
radius: 1.5
energy: 1.6
color: "#4b93ad"

- type: entity
parent: VendingMachine
id: VendingMachineSyndieContraband
name: ContraVend
description: Wanted across multiple sectors!
components:
- type: VendingMachine
pack: ContraVendInventory
dispenseOnHitChance: 0.25
dispenseOnHitThreshold: 2
offState: off
brokenState: broken
normalState: normal-unshaded
ejectState: eject-unshaded
denyState: deny-unshaded
screenState: screen
ejectDelay: 3
- type: Advertise
pack: SyndieDrobeAds
- type: Speech
- type: Anchorable
delay: 999999
- type: Sprite
sprite: Structures/Machines/VendingMachines/syndicateArmor.rsi
layers:
- state: "off"
map: ["enum.VendingMachineVisualLayers.Base"]
- state: "off"
map: ["enum.VendingMachineVisualLayers.BaseUnshaded"]
shader: unshaded
- state: "screen"
map: ["enum.VendingMachineVisualLayers.Screen"]
shader: unshaded
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: PointLight
radius: 1.5
energy: 1.3
color: "#ad2c2b"
- type: MarketModifier
mod: 50

- type: entity
parent: VendingMachine
id: VendingMachineBountyVend
name: BountyVend
description: Essential gear for the space-men on the go
components:
- type: Anchorable
delay: 999999
- type: VendingMachine
pack: BountyVendInventory
offState: off
brokenState: broken
normalState: normal-unshaded
# ejectState: eject-unshaded No sprite, see chefvend/dinnerware/BODA/etc for expamples
- type: Advertise
pack: AstroVendAds
- type: Sprite
sprite: _NF/Structures/bountyvend.rsi
layers:
- state: "off"
map: ["enum.VendingMachineVisualLayers.Base"]
- state: "off"
map: ["enum.VendingMachineVisualLayers.BaseUnshaded"]
shader: unshaded
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: PointLight
radius: 1.5
energy: 1.6
color: "#4b93ad"
Loading
Loading