Куча говна (#539)

This commit is contained in:
ThereDrD0
2023-11-07 08:23:27 +03:00
committed by Aviu00
parent 0fcefc84f5
commit 7ede02488c
16 changed files with 141 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ using Content.Shared.Popups;
using Content.Shared.Sound.Components; using Content.Shared.Sound.Components;
using Content.Shared.Throwing; using Content.Shared.Throwing;
using Content.Shared.White.EndOfRoundStats.EmitSoundStatSystem; using Content.Shared.White.EndOfRoundStats.EmitSoundStatSystem;
using Content.Shared.White.Sounds;
using JetBrains.Annotations; using JetBrains.Annotations;
using Robust.Shared.Audio; using Robust.Shared.Audio;
using Robust.Shared.Audio.Systems; using Robust.Shared.Audio.Systems;
@@ -43,6 +44,9 @@ public abstract class SharedEmitSoundSystem : EntitySystem
SubscribeLocalEvent<EmitSoundOnPickupComponent, GotEquippedHandEvent>(OnEmitSoundOnPickup); SubscribeLocalEvent<EmitSoundOnPickupComponent, GotEquippedHandEvent>(OnEmitSoundOnPickup);
SubscribeLocalEvent<EmitSoundOnDropComponent, DroppedEvent>(OnEmitSoundOnDrop); SubscribeLocalEvent<EmitSoundOnDropComponent, DroppedEvent>(OnEmitSoundOnDrop);
// WD edit
SubscribeLocalEvent<EmitSoundOnPickupComponent, GotRemovedEvent>(EmitSoundOnGotRemoved);
SubscribeLocalEvent<EmitSoundOnCollideComponent, EntityUnpausedEvent>(OnEmitSoundUnpaused); SubscribeLocalEvent<EmitSoundOnCollideComponent, EntityUnpausedEvent>(OnEmitSoundUnpaused);
SubscribeLocalEvent<EmitSoundOnCollideComponent, StartCollideEvent>(OnEmitSoundOnCollide); SubscribeLocalEvent<EmitSoundOnCollideComponent, StartCollideEvent>(OnEmitSoundOnCollide);
} }
@@ -99,6 +103,12 @@ public abstract class SharedEmitSoundSystem : EntitySystem
TryEmitSound(uid, component, args.User); TryEmitSound(uid, component, args.User);
} }
// WD edit
private void EmitSoundOnGotRemoved(EntityUid uid, EmitSoundOnPickupComponent component, GotRemovedEvent args)
{
TryEmitSound(uid, component, args.User, false);
}
private void OnEmitSoundOnDrop(EntityUid uid, EmitSoundOnDropComponent component, DroppedEvent args) private void OnEmitSoundOnDrop(EntityUid uid, EmitSoundOnDropComponent component, DroppedEvent args)
{ {
TryEmitSound(uid, component, args.User); TryEmitSound(uid, component, args.User);
@@ -120,7 +130,7 @@ public abstract class SharedEmitSoundSystem : EntitySystem
} }
if (_netMan.IsServer) if (_netMan.IsServer)
RaiseLocalEvent(new EmitSoundStatEvent(component.Owner, component.Sound)); RaiseLocalEvent(new EmitSoundStatEvent(uid, component.Sound));
} }
private void OnEmitSoundUnpaused(EntityUid uid, EmitSoundOnCollideComponent component, ref EntityUnpausedEvent args) private void OnEmitSoundUnpaused(EntityUid uid, EmitSoundOnCollideComponent component, ref EntityUnpausedEvent args)

View File

@@ -17,6 +17,7 @@ using Content.Shared.Stacks;
using Content.Shared.Storage.Components; using Content.Shared.Storage.Components;
using Content.Shared.Timing; using Content.Shared.Timing;
using Content.Shared.Verbs; using Content.Shared.Verbs;
using Content.Shared.White.Sounds;
using Robust.Shared.Audio.Systems; using Robust.Shared.Audio.Systems;
using Robust.Shared.Containers; using Robust.Shared.Containers;
using Robust.Shared.Map; using Robust.Shared.Map;
@@ -389,6 +390,13 @@ public abstract class SharedStorageSystem : EntitySystem
&& storageComp.StorageRemoveSound != null) && storageComp.StorageRemoveSound != null)
Audio.PlayPredicted(storageComp.StorageRemoveSound, uid, player); Audio.PlayPredicted(storageComp.StorageRemoveSound, uid, player);
{ {
// WD edit
if (hands.ActiveHand != null)
{
var gotRemoved = new GotRemovedEvent(player, entity, hands.ActiveHand);
RaiseLocalEvent(entity, gotRemoved, false);
}
return; return;
} }
} }

View File

@@ -0,0 +1,10 @@
using Content.Shared.Hands;
using Content.Shared.Hands.Components;
namespace Content.Shared.White.Sounds;
public sealed class GotRemovedEvent : EquippedHandEvent
{
public GotRemovedEvent(EntityUid user, EntityUid unequipped, Hand hand) : base(user, unequipped, hand) { }
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -49,7 +49,7 @@
- type: Tag - type: Tag
tags: tags:
- Trash - Trash
- type: SpaceGarbage # - type: SpaceGarbage # WD edit
- type: Damageable - type: Damageable
damageContainer: Inorganic damageContainer: Inorganic
damageModifierSet: Glass damageModifierSet: Glass

View File

@@ -11,7 +11,12 @@
soundGroups: soundGroups:
Brute: Brute:
path: path:
"/Audio/Weapons/slash.ogg" "/Audio/White/Web/attack.ogg" # WD edit start
- type: FootstepModifier
footstepSoundCollection:
collection: FootstepWeb
params:
volume: 1 # WD edit end
- type: Sprite - type: Sprite
sprite: Objects/Misc/spiderweb.rsi sprite: Objects/Misc/spiderweb.rsi
layers: layers:
@@ -40,9 +45,15 @@
layer: layer:
- MidImpassable - MidImpassable
- type: Damageable - type: Damageable
damageModifierSet: Wood damageModifierSet: Web
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger:
!type:DamageTrigger
damage: 300 #excess damage (nuke?). avoid computational cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 10 damage: 10

View File

@@ -221,18 +221,26 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 300 #excess damage (nuke?). avoid computational cost of spawning entities. # WD edit start
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger # WD edit end
damage: 50 damage: 50
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/woodhit.ogg
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
MaterialWebSilk: MaterialWebSilk:
min: 3 min: 3
max: 5 max: 5
- type: MeleeSound # WD edit start
soundGroups:
Brute:
path:
"/Audio/Weapons/slash.ogg" # WD edit end
- type: Damageable - type: Damageable
damageModifierSet: Web damageModifierSet: Web
- type: Door - type: Door

View File

@@ -31,7 +31,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 25 damage: 300 # WD edit
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -88,7 +88,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 100 damage: 300 # WD edit
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -172,7 +172,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 125 damage: 300 # WD edit
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -210,7 +210,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 150 damage: 300 # WD edit
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -263,7 +263,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 25 damage: 300 # WD edit
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -309,7 +309,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 100 damage: 300 # WD edit
behaviors: #excess damage (nuke?). avoid computational cost of spawning entities. behaviors: #excess damage (nuke?). avoid computational cost of spawning entities.
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -358,7 +358,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 250 damage: 300 # WD edit
behaviors: #excess damage (nuke?). avoid computational cost of spawning entities. behaviors: #excess damage (nuke?). avoid computational cost of spawning entities.
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -401,7 +401,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 100 damage: 300 # WD edit
behaviors: #excess damage (nuke?). avoid computational cost of spawning entities. behaviors: #excess damage (nuke?). avoid computational cost of spawning entities.
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -500,12 +500,23 @@
sprite: Structures/Furniture/Tables/web.rsi sprite: Structures/Furniture/Tables/web.rsi
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger:
!type:DamageTrigger
damage: 300 #excess damage (nuke?). avoid computational cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 50 damage: 50
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
MaterialWebSilk:
min: 1
max: 2
- type: MeleeSound - type: MeleeSound
soundGroups: soundGroups:
Brute: Brute:
@@ -558,7 +569,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 100 damage: 300 # WD edit
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -572,7 +583,7 @@
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
MaterialWoodPlank1: MaterialWoodPlank1:
min: 0 min: 1
max: 1 max: 1
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -598,7 +609,7 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 125 damage: 300 # WD edit
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
@@ -614,7 +625,7 @@
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
SheetSteel1: SheetSteel1:
min: 0 min: 1
max: 1 max: 1
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]

View File

@@ -138,18 +138,29 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 300 #excess damage (nuke?). avoid computational cost of spawning entities. # WD edit start
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger # WD edit end
damage: 50 damage: 50
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- !type:PlaySoundBehavior # - !type:PlaySoundBehavior WD edit - govno
sound: # sound:
path: /Audio/Effects/woodhit.ogg # path: /Audio/Effects/woodhit.ogg
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
MaterialWebSilk: MaterialWebSilk:
min: 1 min: 3 # WD edit start
max: 1 max: 4
- type: MeleeSound
soundGroups:
Brute:
path:
"/Audio/Weapons/slash.ogg" # WD edit end
- type: Construction - type: Construction
graph: WebStructures graph: WebStructures
node: bed node: bed

View File

@@ -291,18 +291,21 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 300 #excess damage (nuke?). avoid computational cost of spawning entities. # WD edit start
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger # WD edit end
damage: 50 damage: 50
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/woodhit.ogg
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
MaterialWebSilk: MaterialWebSilk:
min: 1 min: 1
max: 1 max: 2
- type: Construction - type: Construction
graph: WebStructures graph: WebStructures
node: chair node: chair

View File

@@ -145,18 +145,26 @@
thresholds: thresholds:
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 300 #excess damage (nuke?). avoid computational cost of spawning entities. # WD edit start
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger # WD edit end
damage: 50 damage: 50
behaviors: behaviors:
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/woodhit.ogg
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
MaterialWebSilk: MaterialWebSilk:
min: 3 min: 3
max: 5 max: 5
- type: MeleeSound # WD edit start
soundGroups:
Brute:
path:
"/Audio/Weapons/slash.ogg" # WD edit end
- type: EntityStorage - type: EntityStorage
closeSound: closeSound:
path: /Audio/Effects/rustle1.ogg path: /Audio/Effects/rustle1.ogg

View File

@@ -526,6 +526,11 @@
node: girder node: girder
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- !type:SpawnEntitiesBehavior # WD edit start
spawn:
SheetPlasteel1:
min: 1
max: 2 # WD edit end
destroySound: destroySound:
path: /Audio/Effects/metalbreak.ogg path: /Audio/Effects/metalbreak.ogg
- type: IconSmooth - type: IconSmooth
@@ -816,6 +821,11 @@
path: /Audio/Effects/metalbreak.ogg path: /Audio/Effects/metalbreak.ogg
- !type:ChangeConstructionNodeBehavior - !type:ChangeConstructionNodeBehavior
node: girder node: girder
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 2
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
destroySound: destroySound:
@@ -870,7 +880,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 200 damage: 100
behaviors: behaviors:
- !type:PlaySoundBehavior - !type:PlaySoundBehavior
sound: sound:
@@ -879,6 +889,11 @@
node: girder node: girder
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 1
destroySound: destroySound:
path: /Audio/Effects/metalbreak.ogg path: /Audio/Effects/metalbreak.ogg
- type: IconSmooth - type: IconSmooth
@@ -985,6 +1000,12 @@
sprite: Structures/Walls/web.rsi sprite: Structures/Walls/web.rsi
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger:
!type:DamageTrigger
damage: 300 #excess damage (nuke?). avoid computational cost of spawning entities.
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger: - trigger:
!type:DamageTrigger !type:DamageTrigger
damage: 30 damage: 30
@@ -994,8 +1015,8 @@
- !type:SpawnEntitiesBehavior - !type:SpawnEntitiesBehavior
spawn: spawn:
MaterialWebSilk: MaterialWebSilk:
min: 1 min: 2
max: 1 max: 3
- !type:PlaySoundBehavior - !type:PlaySoundBehavior
sound: sound:
path: /Audio/Effects/woodhit.ogg path: /Audio/Effects/woodhit.ogg

View File

@@ -0,0 +1,6 @@
- type: soundCollection
id: FootstepWeb
files:
- /Audio/White/Web/walk1.ogg
- /Audio/White/Web/walk2.ogg
- /Audio/White/Web/walk3.ogg