Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Игра теперь со звуком #1061

Merged
merged 5 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,10 @@ protected virtual bool ArcRaySuccessful(EntityUid targetUid,

public static string? GetHighestDamageSound(DamageSpecifier modifiedDamage, IPrototypeManager protoManager)
{
var groups = modifiedDamage.GetDamagePerGroup(protoManager);
// Sunrise edit start
// Сука, какие группы
var groups = modifiedDamage.DamageDict;
// Sunrise edit end

// Use group if it's exclusive, otherwise fall back to type.
if (groups.Count == 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public sealed partial class NightVisionDeviceComponent : Component
[AutoNetworkedField]
public string DisplayShader;

public SoundSpecifier TurnOnSound = new SoundPathSpecifier("/Audio/_Sunrise/Items/night_vision_on.ogg");
public SoundSpecifier TurnOnSound = new SoundPathSpecifier("/Audio/_Sunrise/Items/Goggles/activate.ogg");

public SoundSpecifier TurnOffSound = new SoundPathSpecifier("/Audio/_Sunrise/Items/night_vision_off.ogg");
public SoundSpecifier TurnOffSound = new SoundPathSpecifier("/Audio/_Sunrise/Items/Goggles/deactivate.ogg");
}

[Serializable, NetSerializable]
Expand Down
Binary file added Resources/Audio/_Sunrise/Items/Cup/drop.ogg
Binary file not shown.
Binary file added Resources/Audio/_Sunrise/Items/Cup/pickup.ogg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Resources/Audio/_Sunrise/Items/Hit/chainhit.ogg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Boxes/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@
- type: Tag
tags:
- BoxCardboard
# Sunrise edit start
- type: EmitSoundOnPickup
sound:
path: /Audio/_Sunrise/Items/Handling/cardboardbox_pickup.ogg
- type: EmitSoundOnDrop
sound:
path: /Audio/_Sunrise/Items/Handling/cardboardbox_drop.ogg
- type: EmitSoundOnLand
sound:
path: /Audio/_Sunrise/Items/Handling/cardboardbox_drop.ogg
- type: EmitSoundOnCollide
sound:
path: /Audio/_Sunrise/Items/Handling/cardboardbox_drop.ogg
# Sunrise edit end

- type: entity
name: mousetrap box
Expand Down
45 changes: 42 additions & 3 deletions Resources/Prototypes/Entities/Clothing/Belt/belts.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# Belts that need/have visualizers

# Sunrise edit start
- type: entity
parent: ClothingBeltStorageBase
id: BaseClothingBeltSounds
components:
- type: EmitSoundOnPickup
sound:
path: /Audio/_Sunrise/Items/Handling/toolbelt_pickup.ogg
- type: EmitSoundOnDrop
sound:
path: /Audio/_Sunrise/Items/Handling/toolbelt_drop.ogg
- type: EmitSoundOnLand
sound:
path: /Audio/_Sunrise/Items/Handling/toolbelt_drop.ogg
# Sunrise edit end

- type: entity
parent: [ClothingBeltStorageBase, BaseClothingBeltSounds] # Sunrise
id: ClothingBeltUtility
name: utility belt
description: Can hold various things.
Expand All @@ -12,6 +27,8 @@
sprite: Clothing/Belt/utility.rsi
- type: Storage
maxItemSize: Normal
storageInsertSound: # Sunrise
path: /Audio/Items/belt_equip.ogg
# TODO: Fill this out more.
whitelist:
tags:
Expand Down Expand Up @@ -81,7 +98,7 @@
- type: Appearance

- type: entity
parent: ClothingBeltStorageBase
parent: [ClothingBeltStorageBase, BaseClothingBeltSounds] # Sunrise
id: ClothingBeltChiefEngineer
name: chief engineer's toolbelt
description: Holds tools, looks snazzy.
Expand All @@ -91,6 +108,8 @@
- type: Clothing
sprite: Clothing/Belt/ce.rsi
- type: Storage
storageInsertSound: # Sunrise
path: /Audio/Items/belt_equip.ogg
grid:
- 0,0,9,1
# TODO: Fill this out more.
Expand Down Expand Up @@ -161,7 +180,7 @@
- type: Appearance

- type: entity
parent: ClothingBeltStorageBase
parent: [ClothingBeltStorageBase, BaseClothingBeltSounds] # Sunrise
id: ClothingBeltAssault
name: assault belt
description: A tactical assault belt.
Expand All @@ -171,6 +190,8 @@
- type: Clothing
sprite: Clothing/Belt/assault.rsi
- type: Storage
storageInsertSound: # Sunrise
path: /Audio/Items/belt_equip.ogg
whitelist:
tags:
- CigPack
Expand Down Expand Up @@ -199,6 +220,17 @@
- SmokeOnTrigger
sprite: Clothing/Belt/belt_overlay.rsi
- type: Appearance
# Sunrise edit start
- type: EmitSoundOnPickup
sound:
path: /Audio/_Sunrise/Items/Handling/toolbelt_pickup.ogg
- type: EmitSoundOnDrop
sound:
path: /Audio/_Sunrise/Items/Handling/toolbelt_drop.ogg
- type: EmitSoundOnLand
sound:
path: /Audio/_Sunrise/Items/Handling/toolbelt_drop.ogg
# Sunrise edit end

- type: entity
parent: ClothingBeltStorageBase
Expand Down Expand Up @@ -538,6 +570,9 @@
tags:
- CaptainSabre
- type: Appearance
- type: Storage # Sunrise
storageInsertSound: /Audio/_Sunrise/Items/Equip/sabre_equip.ogg
storageRemoveSound: /Audio/_Sunrise/Items/Equip/sabre_hide.ogg

# Belts without visualizers

Expand Down Expand Up @@ -585,6 +620,8 @@
- type: Clothing
sprite: Clothing/Belt/holster.rsi
- type: Storage
storageInsertSound: # Sunrise
collection: RevolversPutIn
grid:
- 0,0,3,1

Expand All @@ -602,6 +639,8 @@
size: Ginormous
- type: Storage
maxItemSize: Huge
storageInsertSound: # Sunrise
collection: RevolversPutIn
grid:
- 0,0,3,3
whitelist:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Sunrise edit start
- type: entity
abstract: true
id: BaseClothingOuterSounds
components:
- type: EmitSoundOnPickup
sound:
path: /Audio/_Sunrise/Items/Handling/cloth_pickup.ogg
- type: EmitSoundOnDrop
sound:
path: /Audio/_Sunrise/Items/Handling/cloth_drop.ogg
- type: EmitSoundOnLand
sound:
path: /Audio/_Sunrise/Items/Handling/cloth_drop.ogg
# Sunrise edit end

- type: entity
abstract: true
parent: Clothing
Expand All @@ -11,7 +27,7 @@

- type: entity
abstract: true
parent: ClothingOuterBase
parent: [ClothingOuterBase, BaseClothingOuterSounds] # Sunrise
id: ClothingOuterBaseLarge
components:
- type: Item
Expand All @@ -26,7 +42,7 @@

- type: entity
abstract: true
parent: ClothingOuterBase
parent: [ClothingOuterBase, BaseClothingOuterSounds] # Sunrise
id: ClothingOuterStorageBase
components:
- type: Storage
Expand Down
Loading
Loading