From: RobbyTheFish <83671165+RobbyTheFish@users.noreply.github.com> Date: Wed, 19 Apr 2023 07:40:25 +0000 (+0300) Subject: [Entity] Add Ian's Backpack (#15519) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=426bb95e1ba7ff48eb0d515a96dfac754dfc36a3;p=space-station-14.git [Entity] Add Ian's Backpack (#15519) * Initial commit Add Ian's backpack * Fixed inhand sprites * Add fill to HoP Locker Added Ian's 50% probability chance to spawn Ian's backpack in HoP locker --- diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml index ee8f4b440c..bc0d020ecb 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml @@ -89,6 +89,8 @@ - id: RubberStampHop - id: BoxEncryptionKeyPassenger - id: BoxEncryptionKeyService + - id: ClothingBackpackIan + prob: 0.5 - type: entity id: LockerChiefEngineerFilled diff --git a/Resources/Prototypes/Entities/Clothing/Back/backpacks.yml b/Resources/Prototypes/Entities/Clothing/Back/backpacks.yml index afa4d46cf8..e898f59212 100644 --- a/Resources/Prototypes/Entities/Clothing/Back/backpacks.yml +++ b/Resources/Prototypes/Entities/Clothing/Back/backpacks.yml @@ -39,6 +39,18 @@ storageOpenSound: collection: BikeHorn +- type: entity + parent: ClothingBackpack + id: ClothingBackpackIan + name: Ian's backpack + description: Sometimes he wears it. + components: + - type: Sprite + sprite: Clothing/Back/Backpacks/ian.rsi + - type: Storage + storageOpenSound: + collection: IanBark + - type: entity parent: ClothingBackpack id: ClothingBackpackSecurity diff --git a/Resources/Prototypes/SoundCollections/ian_bark.yml b/Resources/Prototypes/SoundCollections/ian_bark.yml new file mode 100644 index 0000000000..e0db3a482c --- /dev/null +++ b/Resources/Prototypes/SoundCollections/ian_bark.yml @@ -0,0 +1,4 @@ +- type: soundCollection + id: IanBark + files: + - /Audio/Animals/small_dog_bark_happy.ogg diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/equipped-BACKPACK.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/equipped-BACKPACK.png new file mode 100644 index 0000000000..45bb7f1105 Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/equipped-BACKPACK.png differ diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/icon.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/icon.png new file mode 100644 index 0000000000..d91aa5d3d5 Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/icon.png differ diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-left.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-left.png new file mode 100644 index 0000000000..9189e09cae Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-left.png differ diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-right.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-right.png new file mode 100644 index 0000000000..ebd294f4a8 Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-right.png differ diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/meta.json b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/meta.json new file mode 100644 index 0000000000..fe67588ce3 --- /dev/null +++ b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/meta.json @@ -0,0 +1,26 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Made by RobbyTheFish(github) for ss14.", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "icon" + }, + { + "name": "equipped-BACKPACK", + "directions": 4 + }, + { + "name": "inhand-left", + "directions": 4 + }, + { + "name": "inhand-right", + "directions": 4 + } + ] +}