1
1
using Content . Shared . Damage . Components ;
2
2
using Content . Shared . Actions ;
3
3
using Content . Shared . Alert ;
4
+ using Content . Shared . Coordinates ;
4
5
using Content . Shared . Fluids . Components ;
5
6
using Content . Shared . Gravity ;
6
7
using Content . Shared . Mobs ;
7
8
using Content . Shared . Movement . Systems ;
8
9
using Content . Shared . Slippery ;
9
10
using Content . Shared . Toggleable ;
11
+ using Robust . Shared . Audio . Systems ;
10
12
using Robust . Shared . Physics . Components ;
11
13
using Robust . Shared . Physics . Events ;
12
14
using Robust . Shared . Physics . Systems ;
@@ -26,6 +28,7 @@ public abstract class SharedRootableSystem : EntitySystem
26
28
[ Dependency ] private readonly IEntityManager _entityManager = default ! ;
27
29
[ Dependency ] private readonly MovementSpeedModifierSystem _movementSpeedModifier = default ! ;
28
30
[ Dependency ] private readonly AlertsSystem _alerts = default ! ;
31
+ [ Dependency ] private readonly SharedAudioSystem _audioSystem = default ! ;
29
32
30
33
private EntityQuery < PuddleComponent > _puddleQuery ;
31
34
@@ -81,6 +84,8 @@ public bool TryToggleRooting(EntityUid uid, RootableComponent? rooted = null)
81
84
else
82
85
_alerts . ClearAlert ( uid , rooted . RootedAlert ) ;
83
86
87
+ _audioSystem . PlayPredicted ( rooted . RootSound , uid . ToCoordinates ( ) , uid ) ;
88
+
84
89
return true ;
85
90
}
86
91
0 commit comments