- fix: Bugfixes (#18)
* - fix: Fix huds. * - fix: Cult icon fix * - fix: Fix terminator missing dead threshold * - fix: Fix clown ComicSans font * - fix: Fix airlock missing rsi states * - fix: Fix double storage removal sound * - fix: Fix emote
This commit is contained in:
@@ -25,25 +25,35 @@ public sealed class ShowCultHudSystem : EntitySystem
|
|||||||
|
|
||||||
private void OnComponentInit(EntityUid uid, CultistComponent component, ComponentInit args)
|
private void OnComponentInit(EntityUid uid, CultistComponent component, ComponentInit args)
|
||||||
{
|
{
|
||||||
if (_player.LocalPlayer?.ControlledEntity != uid) return;
|
if (_player.LocalSession?.AttachedEntity != uid)
|
||||||
|
return;
|
||||||
|
|
||||||
_overlayManager.AddOverlay(_overlay);
|
_overlayManager.AddOverlay(_overlay);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnComponentRemoved(EntityUid uid, CultistComponent component, ComponentRemove args)
|
private void OnComponentRemoved(EntityUid uid, CultistComponent component, ComponentRemove args)
|
||||||
{
|
{
|
||||||
if (_player.LocalPlayer?.ControlledEntity != uid) return;
|
if (_player.LocalSession?.AttachedEntity != uid)
|
||||||
|
return;
|
||||||
|
|
||||||
_overlayManager.RemoveOverlay(_overlay);
|
_overlayManager.RemoveOverlay(_overlay);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnPlayerAttached(EntityUid uid, CultistComponent component, PlayerAttachedEvent args)
|
private void OnPlayerAttached(EntityUid uid, CultistComponent component, PlayerAttachedEvent args)
|
||||||
{
|
{
|
||||||
|
if (_player.LocalSession != args.Player)
|
||||||
|
return;
|
||||||
|
|
||||||
_overlayManager.AddOverlay(_overlay);
|
_overlayManager.AddOverlay(_overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnPlayerDetached(EntityUid uid, CultistComponent component, PlayerDetachedEvent args)
|
private void OnPlayerDetached(EntityUid uid, CultistComponent component, PlayerDetachedEvent args)
|
||||||
{
|
{
|
||||||
|
if (_player.LocalSession != args.Player)
|
||||||
|
return;
|
||||||
|
|
||||||
_overlayManager.RemoveOverlay(_overlay);
|
_overlayManager.RemoveOverlay(_overlay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,30 +27,36 @@ namespace Content.Client._White.EntityHealthBar
|
|||||||
|
|
||||||
private void OnInit(EntityUid uid, ShowWhiteHealthBarsComponent component, ComponentInit args)
|
private void OnInit(EntityUid uid, ShowWhiteHealthBarsComponent component, ComponentInit args)
|
||||||
{
|
{
|
||||||
if (_player.LocalPlayer?.ControlledEntity == uid)
|
if (_player.LocalSession?.AttachedEntity != uid)
|
||||||
{
|
return;
|
||||||
_overlayMan.AddOverlay(_overlay);
|
|
||||||
_overlay.DamageContainers = component.DamageContainers;
|
_overlayMan.AddOverlay(_overlay);
|
||||||
}
|
_overlay.DamageContainers = component.DamageContainers;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
private void OnRemove(EntityUid uid, ShowWhiteHealthBarsComponent component, ComponentRemove args)
|
private void OnRemove(EntityUid uid, ShowWhiteHealthBarsComponent component, ComponentRemove args)
|
||||||
{
|
{
|
||||||
if (_player.LocalPlayer?.ControlledEntity == uid)
|
if (_player.LocalSession?.AttachedEntity != uid)
|
||||||
{
|
return;
|
||||||
_overlayMan.RemoveOverlay(_overlay);
|
|
||||||
}
|
_overlayMan.RemoveOverlay(_overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnPlayerAttached(EntityUid uid, ShowWhiteHealthBarsComponent component, PlayerAttachedEvent args)
|
private void OnPlayerAttached(EntityUid uid, ShowWhiteHealthBarsComponent component, PlayerAttachedEvent args)
|
||||||
{
|
{
|
||||||
|
if (_player.LocalSession != args.Player)
|
||||||
|
return;
|
||||||
|
|
||||||
_overlayMan.AddOverlay(_overlay);
|
_overlayMan.AddOverlay(_overlay);
|
||||||
_overlay.DamageContainers = component.DamageContainers;
|
_overlay.DamageContainers = component.DamageContainers;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnPlayerDetached(EntityUid uid, ShowWhiteHealthBarsComponent component, PlayerDetachedEvent args)
|
private void OnPlayerDetached(EntityUid uid, ShowWhiteHealthBarsComponent component, PlayerDetachedEvent args)
|
||||||
{
|
{
|
||||||
|
if (_player.LocalSession != args.Player)
|
||||||
|
return;
|
||||||
|
|
||||||
_overlayMan.RemoveOverlay(_overlay);
|
_overlayMan.RemoveOverlay(_overlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -172,7 +172,7 @@ public sealed partial class AdminVerbSystem
|
|||||||
{
|
{
|
||||||
Text = "Сделать культистом.",
|
Text = "Сделать культистом.",
|
||||||
Category = VerbCategory.Antag,
|
Category = VerbCategory.Antag,
|
||||||
Icon = new SpriteSpecifier.Texture(new("/Textures//White/Cult/interface.rsi/icon.png")),
|
Icon = new SpriteSpecifier.Rsi(new("/Textures/White/Cult/interface.rsi"), "icon"),
|
||||||
Act = () =>
|
Act = () =>
|
||||||
{
|
{
|
||||||
if (!_minds.TryGetSession(targetMindComp.Mind, out var session))
|
if (!_minds.TryGetSession(targetMindComp.Mind, out var session))
|
||||||
|
|||||||
@@ -508,14 +508,14 @@ public sealed partial class ChatSystem : SharedChatSystem
|
|||||||
("verb", Loc.GetString(_random.Pick(speech.SpeechVerbStrings))),
|
("verb", Loc.GetString(_random.Pick(speech.SpeechVerbStrings))),
|
||||||
("fontType", speech.FontId),
|
("fontType", speech.FontId),
|
||||||
("fontSize", speech.FontSize),
|
("fontSize", speech.FontSize),
|
||||||
("message", FormattedMessage.EscapeText(message)));
|
("message", message));
|
||||||
|
|
||||||
//WD-EDIT
|
//WD-EDIT
|
||||||
if (TryComp<VoiceOfGodComponent>(source, out var comp))
|
if (TryComp<VoiceOfGodComponent>(source, out var comp))
|
||||||
{
|
{
|
||||||
wrappedMessage = Loc.GetString(comp.ChatLoc,
|
wrappedMessage = Loc.GetString(comp.ChatLoc,
|
||||||
("entityName", name),
|
("entityName", name),
|
||||||
("message", FormattedMessage.EscapeText(message)),
|
("message", message),
|
||||||
("color", comp.ChatColor)
|
("color", comp.ChatColor)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ 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;
|
||||||
@@ -44,9 +43,6 @@ 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);
|
||||||
}
|
}
|
||||||
@@ -103,12 +99,6 @@ 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);
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ 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.GameStates;
|
using Robust.Shared.GameStates;
|
||||||
@@ -431,13 +430,6 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
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) { }
|
|
||||||
}
|
|
||||||
@@ -77,6 +77,7 @@
|
|||||||
120: Dead
|
120: Dead
|
||||||
stateAlertDict:
|
stateAlertDict:
|
||||||
Alive: BorgHealth
|
Alive: BorgHealth
|
||||||
|
Dead: BorgDead
|
||||||
showOverlays: false
|
showOverlays: false
|
||||||
- type: Stamina
|
- type: Stamina
|
||||||
critThreshold: 120
|
critThreshold: 120
|
||||||
|
|||||||
@@ -95,6 +95,8 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Doors/Airlocks/Standard/syndicate.rsi
|
sprite: Structures/Doors/Airlocks/Standard/syndicate.rsi
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Airlock
|
parent: Airlock
|
||||||
@@ -103,6 +105,8 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Doors/Airlocks/Standard/mining.rsi
|
sprite: Structures/Doors/Airlocks/Standard/mining.rsi
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Airlock
|
parent: Airlock
|
||||||
@@ -113,6 +117,8 @@
|
|||||||
sprite: Structures/Doors/Airlocks/Standard/centcomm.rsi
|
sprite: Structures/Doors/Airlocks/Standard/centcomm.rsi
|
||||||
- type: WiresPanelSecurity
|
- type: WiresPanelSecurity
|
||||||
securityLevel: medSecurity
|
securityLevel: medSecurity
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Airlock
|
parent: Airlock
|
||||||
@@ -121,6 +127,8 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Doors/Airlocks/Standard/hatch.rsi
|
sprite: Structures/Doors/Airlocks/Standard/hatch.rsi
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: Airlock
|
parent: Airlock
|
||||||
@@ -129,6 +137,8 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Doors/Airlocks/Standard/hatch_maint.rsi
|
sprite: Structures/Doors/Airlocks/Standard/hatch_maint.rsi
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
# Glass
|
# Glass
|
||||||
|
|
||||||
@@ -284,6 +294,8 @@
|
|||||||
sprite: Structures/Doors/Airlocks/Glass/syndicate.rsi
|
sprite: Structures/Doors/Airlocks/Glass/syndicate.rsi
|
||||||
- type: PaintableAirlock
|
- type: PaintableAirlock
|
||||||
group: Glass
|
group: Glass
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: AirlockGlass
|
parent: AirlockGlass
|
||||||
@@ -292,6 +304,8 @@
|
|||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Structures/Doors/Airlocks/Glass/mining.rsi
|
sprite: Structures/Doors/Airlocks/Glass/mining.rsi
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: AirlockGlass
|
parent: AirlockGlass
|
||||||
@@ -302,4 +316,6 @@
|
|||||||
sprite: Structures/Doors/Airlocks/Glass/centcomm.rsi
|
sprite: Structures/Doors/Airlocks/Glass/centcomm.rsi
|
||||||
- type: WiresPanelSecurity
|
- type: WiresPanelSecurity
|
||||||
securityLevel: medSecurity
|
securityLevel: medSecurity
|
||||||
|
- type: Airlock
|
||||||
|
openUnlitVisible: false
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# vocal emotes
|
# vocal emotes
|
||||||
- type: emote
|
- type: emote
|
||||||
id: Scream
|
id: Scream
|
||||||
category: Vocal
|
category: Vocal
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
id: Crying
|
id: Crying
|
||||||
category: Vocal
|
category: Vocal
|
||||||
buttonText: Плакать
|
buttonText: Плакать
|
||||||
chatMessages: [ плакать ]
|
chatMessages: [ плачет ]
|
||||||
chatTriggers:
|
chatTriggers:
|
||||||
- плачет
|
- плачет
|
||||||
- заплакал
|
- заплакал
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
@@ -10,6 +10,15 @@
|
|||||||
{
|
{
|
||||||
"name": "bolted_unlit"
|
"name": "bolted_unlit"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "bolted_open_unlit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "open_unlit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "emergency_open_unlit"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "closed"
|
"name": "closed"
|
||||||
},
|
},
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
@@ -10,6 +10,15 @@
|
|||||||
{
|
{
|
||||||
"name": "bolted_unlit"
|
"name": "bolted_unlit"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "bolted_open_unlit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "open_unlit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "emergency_open_unlit"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "closed"
|
"name": "closed"
|
||||||
},
|
},
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
Reference in New Issue
Block a user