Newton cradle (#22914)

* comit

* comit2

* little more range

* review

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
lzk
2024-02-01 12:41:19 +01:00
committed by GitHub
parent 1f1809d6ed
commit 628e22ba02
6 changed files with 63 additions and 4 deletions

View File

@@ -88,6 +88,11 @@
copyright: "User Hanbaal on freesound.org. Converted to ogg by TheShuEd"
source: "https://freesound.org/people/Hanbaal/sounds/178669/"
- files: ["newton_cradle.ogg"]
license: "CC-BY-4.0"
copyright: "User LoafDV on freesound.org. Converted to ogg end edited by lzk228"
source: "https://freesound.org/people/LoafDV/sounds/131596/"
- files: ["shovel_dig.ogg"]
license: "CC-BY-SA-3.0"
copyright: "Taken from tgstation, modified by themias (github) for ss14"

Binary file not shown.

View File

@@ -1211,3 +1211,32 @@
- type: MeleeWeapon
soundHit:
path: /Audio/Voice/Human/malescream_4.ogg
- type: entity
parent: BaseItem
id: NewtonCradle
name: newton cradle
description: A device bored paper pushers use to remind themselves that time did not stop yet. Contains gravity.
components:
- type: Sprite
sprite: Objects/Fun/newton_cradle.rsi
state: icon-off
- type: Item
sprite: Objects/Fun/newton_cradle.rsi
storedRotation: -90
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleVisuals.Toggled:
enum.ToggleVisuals.Layer:
True: { state: icon }
False: { state: icon-off }
- type: ItemToggle
- type: ItemToggleActiveSound
activeSound:
path: /Audio/Items/newton_cradle.ogg
params:
volume: -7
range: 5
sound:
path: /Audio/Items/newton_cradle.ogg

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

View File

@@ -0,0 +1,25 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/ParadiseSS13/Paradise/commit/aa7a7b3cee09b313705343a6859658b928a3da03",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon-off"
},
{
"name": "icon",
"delays": [
[
0.3,
0.1,
0.3,
0.1
]
]
}
]
}