Pinpointer (#5131)

* Add pinpointer sprites

* Start working on pinpointer

* Updated pinpointer

* Working on visuals

* Working on a pinpointer and eye rotation

* Add client/server pinpointers systems

* Minor cleanup

* Add distance support

* Add nuke tag

* Remove redundant flag and add pinpointer to caps locker

* Disable rotation of pinpointer

* Fixed distance

Co-authored-by: Alexander Evgrashin <evgrashin.adl@gmail.com>
This commit is contained in:
Alex Evgrashin
2021-11-04 00:35:34 +03:00
committed by GitHub
parent b29e826102
commit c1cf22d97e
29 changed files with 686 additions and 1 deletions

View File

@@ -35,6 +35,8 @@
contents:
- id: NukeDisk
prob: 1
- id: PinpointerNuclear
prob: 1
- id: CaptainIDCard
prob: 1
- id: ClothingHeadHatCaptain

View File

@@ -0,0 +1,33 @@
- type: entity
name: pinpointer
description: A handheld tracking device that locks onto certain signals.
parent: BaseItem
id: PinpointerBase
abstract: true
components:
- type: Transform
noRot: True
- type: Sprite
netsync: false
sprite: Objects/Devices/pinpointer.rsi
layers:
- state: pinpointer
map: ["enum.PinpointerLayers.Base"]
- state: pinonnull
map: ["enum.PinpointerLayers.Screen"]
- type: Item
sprite: Objects/Devices/pinpointer.rsi
- type: Pinpointer
- type: Appearance
visuals:
- type: PinpointerVisualizer
- type: entity
name: pinpointer
id: PinpointerNuclear
parent: PinpointerBase
components:
- type: Pinpointer
whitelist:
tags:
- NukeDisk

View File

@@ -4,6 +4,9 @@
id: NukeDisk
description: A nuclear auth disk, capable of arming a nuke if used along with a code. Note from nanotrasen reads "THIS IS YOUR MOST IMPORTANT POSESSION, SECURE DAT FUKKEN DISK!"
components:
- type: Tag
tags:
- NukeDisk
- type: Sprite
netsync: false
sprite: Objects/Misc/nukedisk.rsi
@@ -14,6 +17,17 @@
state: icon
- type: entity
parent: NukeDisk
name: nuclear authentication disk
parent: BaseItem
id: NukeDiskFake
suffix: Fake
description: A nuclear auth disk, capable of.. WAIT THIS IS JUST PAINTED PLASTIC, FUCK-
components:
- type: Sprite
netsync: false
sprite: Objects/Misc/nukedisk.rsi
state: icon
- type: Item
size: 12
sprite: Objects/Misc/nukedisk.rsi
state: icon

View File

@@ -223,3 +223,5 @@
- type: Tag
id: HideContextMenu
- type: Tag
id: NukeDisk