From: lzk <124214523+lzk228@users.noreply.github.com> Date: Thu, 1 Feb 2024 11:41:19 +0000 (+0100) Subject: Newton cradle (#22914) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=628e22ba026724b444d8cfc900e0a6ef3cbd9c6f;p=space-station-14.git Newton cradle (#22914) * comit * comit2 * little more range * review --------- Co-authored-by: metalgearsloth --- diff --git a/Resources/Audio/Items/attributions.yml b/Resources/Audio/Items/attributions.yml index 13eff6e702..51d8d9cf95 100644 --- a/Resources/Audio/Items/attributions.yml +++ b/Resources/Audio/Items/attributions.yml @@ -67,7 +67,7 @@ license: "CC-BY-3.0" copyright: "User jzdnvdoosj on freesound.org. Converted to ogg by mirrorcult" source: "https://freesound.org/people/jzdnvdoosj/sounds/626262/" - + - files: ["candle_blowing.ogg"] license: "CC-BY-NC-3.0" copyright: "Created by Bee09, converted to OGG, cropped and converted to mono by TheShuEd" @@ -82,13 +82,18 @@ license: "CC-BY-SA-3.0" copyright: "Taken from /tg/station" source: "https://github.com/tgstation/tgstation/commit/c61c452d78425d89920b41ed5f95fd190e733a3c" - + - files: ["scissors.ogg"] license: "CC0-1.0" 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" - source: "https://github.com/tgstation/tgstation/tree/85a0925051bb00e7a950ee66cb7f87982cd22439/sound/effects/shovel_dig.ogg" \ No newline at end of file + source: "https://github.com/tgstation/tgstation/tree/85a0925051bb00e7a950ee66cb7f87982cd22439/sound/effects/shovel_dig.ogg" diff --git a/Resources/Audio/Items/newton_cradle.ogg b/Resources/Audio/Items/newton_cradle.ogg new file mode 100644 index 0000000000..6dfe528feb Binary files /dev/null and b/Resources/Audio/Items/newton_cradle.ogg differ diff --git a/Resources/Prototypes/Entities/Objects/Fun/toys.yml b/Resources/Prototypes/Entities/Objects/Fun/toys.yml index 6dee106e9f..981685bb92 100644 --- a/Resources/Prototypes/Entities/Objects/Fun/toys.yml +++ b/Resources/Prototypes/Entities/Objects/Fun/toys.yml @@ -1210,4 +1210,33 @@ path: /Audio/Voice/Human/malescream_3.ogg - type: MeleeWeapon soundHit: - path: /Audio/Voice/Human/malescream_4.ogg \ No newline at end of file + 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 diff --git a/Resources/Textures/Objects/Fun/newton_cradle.rsi/icon-off.png b/Resources/Textures/Objects/Fun/newton_cradle.rsi/icon-off.png new file mode 100644 index 0000000000..6219636a1d Binary files /dev/null and b/Resources/Textures/Objects/Fun/newton_cradle.rsi/icon-off.png differ diff --git a/Resources/Textures/Objects/Fun/newton_cradle.rsi/icon.png b/Resources/Textures/Objects/Fun/newton_cradle.rsi/icon.png new file mode 100644 index 0000000000..effd80cccc Binary files /dev/null and b/Resources/Textures/Objects/Fun/newton_cradle.rsi/icon.png differ diff --git a/Resources/Textures/Objects/Fun/newton_cradle.rsi/meta.json b/Resources/Textures/Objects/Fun/newton_cradle.rsi/meta.json new file mode 100644 index 0000000000..0ff9e80425 --- /dev/null +++ b/Resources/Textures/Objects/Fun/newton_cradle.rsi/meta.json @@ -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 + ] + ] + } + ] +}