]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
desk bell from SS13 (tgstation) (#14870)
authorDocNight <69177241+DocNITE@users.noreply.github.com>
Mon, 27 Mar 2023 14:29:09 +0000 (17:29 +0300)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2023 14:29:09 +0000 (10:29 -0400)
Resources/Audio/Items/attributions.yml
Resources/Audio/Items/desk_bell_ring.ogg [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Misc/desk_bell.yml [new file with mode: 0644]
Resources/Textures/Objects/Misc/desk_bell.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Misc/desk_bell.rsi/normal.png [new file with mode: 0644]

index b297c994288cf643ed15ab37b345d2fc112ce53d..08ba18afb02e33189b850981cedf9fab3a083442 100644 (file)
@@ -27,3 +27,8 @@
   license: "CC-BY-SA-3.0"
   copyright: "Taken from tgstation, modified by brainfood1183 (github) for ss14"
   source: "https://github.com/tgstation/tgstation/blob/529d97cb1c105bcd548e95a9c9070bbf5253dd81/sound/items/AirHorn.ogg"
+
+- files: ["desk_bell_ring.ogg"]
+  license: "CC0-1.0"
+  copyright: "Created by NicholasJudy567, converted to OGG and mono"
+  source: "https://freesound.org/people/NicholasJudy567/sounds/672185/"
diff --git a/Resources/Audio/Items/desk_bell_ring.ogg b/Resources/Audio/Items/desk_bell_ring.ogg
new file mode 100644 (file)
index 0000000..098aa9c
Binary files /dev/null and b/Resources/Audio/Items/desk_bell_ring.ogg differ
diff --git a/Resources/Prototypes/Entities/Objects/Misc/desk_bell.yml b/Resources/Prototypes/Entities/Objects/Misc/desk_bell.yml
new file mode 100644 (file)
index 0000000..cd9d37f
--- /dev/null
@@ -0,0 +1,41 @@
+- type: entity
+  parent: BaseItem
+  id: DeskBell
+  name: desk bell
+  description: The cornerstone of any customer service job. You feel an unending urge to ring it.
+  components:
+  - type: Sprite
+    sprite: Objects/Misc/desk_bell.rsi
+    state: "normal"
+    netsync: false
+  - type: EmitSoundOnUse
+    sound:
+      path: /Audio/Items/desk_bell_ring.ogg
+      params:
+          variation: 0.05
+          maxdistance: 60
+          volume: 2
+  - type: EmitSoundOnActivate
+    sound:
+      path: /Audio/Items/desk_bell_ring.ogg
+      params:
+          variation: 0.05
+          maxdistance: 60
+          volume: 2
+  - type: EmitSoundOnLand
+    sound:
+      path: /Audio/Items/desk_bell_ring.ogg
+      params:
+          variation: 0.05
+          maxdistance: 60
+          volume: 2
+  - type: ItemCooldown
+  - type: UseDelay
+    delay: 0.5
+  - type: MeleeWeapon
+    soundHit:
+      path: /Audio/Items/desk_bell_ring.ogg
+    damage:
+      types:
+        Blunt: 0.1
+  - type: Anchorable
diff --git a/Resources/Textures/Objects/Misc/desk_bell.rsi/meta.json b/Resources/Textures/Objects/Misc/desk_bell.rsi/meta.json
new file mode 100644 (file)
index 0000000..2202fd0
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/blob/22e6ce8a6bed9356e312fabe5e7552f81b9bf19f/icons/obj/bureaucracy.dmi",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "normal"
+    }
+  ]
+}
diff --git a/Resources/Textures/Objects/Misc/desk_bell.rsi/normal.png b/Resources/Textures/Objects/Misc/desk_bell.rsi/normal.png
new file mode 100644 (file)
index 0000000..9080ac2
Binary files /dev/null and b/Resources/Textures/Objects/Misc/desk_bell.rsi/normal.png differ