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

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

View File

@@ -0,0 +1,162 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/59f2a4e10e5ba36033c9734ddebfbbdc6157472d",
"states": [
{
"name": "pinonalert",
"directions": 8,
"delays": [
[
0.2,
0.2
],
[
0.2,
0.2
],
[
0.2,
0.2
],
[
0.2,
0.2
],
[
0.2,
0.2
],
[
0.2,
0.2
],
[
0.2,
0.2
],
[
0.2,
0.2
]
]
},
{
"name": "pinonalertdirect",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinonalertnull",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinonclose",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinondirect",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinondirectlarge",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinondirectsmall",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinondirectxtrlarge",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinonfar",
"delays": [
[
0.6,
0.2
]
]
},
{
"name": "pinonmedium",
"delays": [
[
0.4,
0.2
]
]
},
{
"name": "pinonnull",
"delays": [
[
0.2,
0.2
]
]
},
{
"name": "pinpointer"
},
{
"name": "pinpointer_crew"
},
{
"name": "pinpointer_crewprox"
},
{
"name": "pinpointer_syndicate"
},
{
"name": "pinpointer_way"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B