Add basic teleportation and portals (#269)
* Add basic teleportation and portals * Address PJB's feedback and minor cleanup
This commit is contained in:
committed by
Pieter-Jan Briers
parent
52a6d9ff43
commit
1f320eccd7
BIN
Resources/Audio/effects/teleport_arrival.ogg
Normal file
BIN
Resources/Audio/effects/teleport_arrival.ogg
Normal file
Binary file not shown.
BIN
Resources/Audio/effects/teleport_departure.ogg
Normal file
BIN
Resources/Audio/effects/teleport_departure.ogg
Normal file
Binary file not shown.
@@ -65,6 +65,7 @@
|
||||
- type: SpeciesVisualizer2D
|
||||
|
||||
- type: CombatMode
|
||||
- type: Teleportable
|
||||
|
||||
- type: entity
|
||||
id: MobObserver
|
||||
|
||||
62
Resources/Prototypes/Entities/Teleporters.yml
Normal file
62
Resources/Prototypes/Entities/Teleporters.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
- type: entity
|
||||
name: "BaseHandTele"
|
||||
parent: BaseItem
|
||||
id: BaseHandTele
|
||||
components:
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: Objects/hand_tele.rsi
|
||||
state: ready
|
||||
- type: Icon
|
||||
sprite: Objects/hand_tele.rsi
|
||||
state: ready
|
||||
- type: ItemTeleporter
|
||||
teleporter_type: Random
|
||||
- type: Item
|
||||
Size: 12
|
||||
sprite: Objects/hand_tele.rsi
|
||||
- type: Sound
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: HandTeleporterVisualizer2D
|
||||
|
||||
- type: entity
|
||||
name: "Hand Teleporter - Random"
|
||||
parent: BaseHandTele
|
||||
id: RandHandTele
|
||||
description: "Travel to a random spot in range"
|
||||
components:
|
||||
- type: ItemTeleporter
|
||||
teleporter_type: Random
|
||||
range: 15
|
||||
cooldown: 5
|
||||
charge_time: 1
|
||||
|
||||
- type: entity
|
||||
name: "Hand Teleporter - Direct"
|
||||
parent: BaseHandTele
|
||||
id: DirHandTele
|
||||
description: "Travel to a specific spot in a short range"
|
||||
components:
|
||||
- type: ItemTeleporter
|
||||
teleporter_type: Directed
|
||||
range: 5
|
||||
cooldown: 2
|
||||
charge_time: 0.2
|
||||
|
||||
- type: entity
|
||||
name: Portal
|
||||
id: Portal
|
||||
description: "Portal to another location"
|
||||
components:
|
||||
- type: Collidable
|
||||
- type: Portal
|
||||
- type: BoundingBox
|
||||
aabb: "-0.25,-0.25,0.25,0.25"
|
||||
- type: Sprite
|
||||
netsync: false
|
||||
sprite: "Effects/portal.rsi"
|
||||
state: portal-pending
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: PortalVisualizer2D
|
||||
51
Resources/Textures/Effects/portal.rsi/meta.json
Normal file
51
Resources/Textures/Effects/portal.rsi/meta.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"version": 1,
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "https://github.com/discordia-space/CEV-Eris/raw/237d8f7894617007d75c71d5d9feb4354c78debd/icons/obj/stationobjs.dmi",
|
||||
"states": [
|
||||
{
|
||||
"name": "portal-pending",
|
||||
"directions": 1,
|
||||
"delays": [[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]]
|
||||
},
|
||||
{
|
||||
"name": "portal-unconnected",
|
||||
"directions": 1,
|
||||
"delays": [[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Effects/portal.rsi/portal-pending.png
Normal file
BIN
Resources/Textures/Effects/portal.rsi/portal-pending.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
BIN
Resources/Textures/Effects/portal.rsi/portal-unconnected.png
Normal file
BIN
Resources/Textures/Effects/portal.rsi/portal-unconnected.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
Resources/Textures/Objects/hand_tele.png
Normal file
BIN
Resources/Textures/Objects/hand_tele.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 242 B |
BIN
Resources/Textures/Objects/hand_tele.rsi/charging.png
Normal file
BIN
Resources/Textures/Objects/hand_tele.rsi/charging.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
33
Resources/Textures/Objects/hand_tele.rsi/meta.json
Normal file
33
Resources/Textures/Objects/hand_tele.rsi/meta.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"version": 1,
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "https://github.com/discordia-space/CEV-Eris/raw/237d8f7894617007d75c71d5d9feb4354c78debd/icons/obj/device.dmi",
|
||||
"states": [
|
||||
{
|
||||
"name": "charging",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0,
|
||||
1.0,
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ready",
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
5.0,
|
||||
5.0
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Objects/hand_tele.rsi/ready.png
Normal file
BIN
Resources/Textures/Objects/hand_tele.rsi/ready.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.8 KiB |
Reference in New Issue
Block a user