some tweaks (#26)

* - fix: Fix RD steal objectives

* - tweak: Mini ebow now doesn't reset on hand select

* - add: Enable fake death

* - fix: Fix round restart sounds

* - tweak: Increase new gas tank volume

* - add: Add quit button
This commit is contained in:
Aviu00
2024-02-04 15:53:50 +09:00
committed by GitHub
parent 23b6c11b4f
commit bc55584a1f
10 changed files with 40 additions and 25 deletions

View File

@@ -135,7 +135,7 @@ public sealed class BackgroundAudioSystem : EntitySystem
private void PlayRestartSound(RoundRestartCleanupEvent ev) private void PlayRestartSound(RoundRestartCleanupEvent ev)
{ {
if (!_configManager.GetCVar(CCVars.LobbyMusicEnabled)) if (!_configManager.GetCVar(CCVars.RestartSoundsEnabled))
return; return;
var file = _gameTicker.RestartSound; var file = _gameTicker.RestartSound;

View File

@@ -90,6 +90,12 @@
Name="OptionsButton" Name="OptionsButton"
Access="Public" Access="Public"
ButtonText="Options" ButtonText="Options"
Margin="0 10 0 10" />
<buttons:OhioLobbyTextButton
Name="QuitButton"
Access="Public"
ButtonText="Quit"
Margin="0 10 0 0" /> Margin="0 10 0 0" />
</BoxContainer> </BoxContainer>

View File

@@ -1,5 +1,6 @@
using Content.Client.UserInterface.Systems.EscapeMenu; using Content.Client.UserInterface.Systems.EscapeMenu;
using Robust.Client.AutoGenerated; using Robust.Client.AutoGenerated;
using Robust.Client.Console;
using Robust.Client.UserInterface; using Robust.Client.UserInterface;
using Robust.Client.UserInterface.XAML; using Robust.Client.UserInterface.XAML;
@@ -8,6 +9,7 @@ namespace Content.Client.Lobby.UI
[GenerateTypedNameReferences] [GenerateTypedNameReferences]
internal sealed partial class LobbyGui : UIScreen internal sealed partial class LobbyGui : UIScreen
{ {
[Dependency] private readonly IClientConsoleHost _consoleHost = default!;
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!; [Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
public LobbyGui() public LobbyGui()
@@ -18,6 +20,7 @@ namespace Content.Client.Lobby.UI
SetAnchorPreset(Background, LayoutPreset.Wide); SetAnchorPreset(Background, LayoutPreset.Wide);
OptionsButton.OnPressed += _ => _userInterfaceManager.GetUIController<OptionsUIController>().ToggleWindow(); OptionsButton.OnPressed += _ => _userInterfaceManager.GetUIController<OptionsUIController>().ToggleWindow();
QuitButton.OnPressed += _ => _consoleHost.ExecuteCommand("disconnect");
} }
public void SwitchState(LobbyGuiState state) public void SwitchState(LobbyGuiState state)

View File

@@ -568,9 +568,6 @@ namespace Content.Server.GameTicking
{ {
_playerGameStatuses[session.UserId] = LobbyEnabled ? PlayerGameStatus.NotReadyToPlay : PlayerGameStatus.ReadyToPlay; _playerGameStatuses[session.UserId] = LobbyEnabled ? PlayerGameStatus.NotReadyToPlay : PlayerGameStatus.ReadyToPlay;
} }
// Put a bangin' donk on it.
_audio.PlayGlobal(_audio.GetSound(new SoundCollectionSpecifier("RoundEnd")), Filter.Broadcast(), true);
} }
public bool DelayStart(TimeSpan time) public bool DelayStart(TimeSpan time)

View File

@@ -63,11 +63,11 @@
- type: GasTank - type: GasTank
outputPressure: 21.3 outputPressure: 21.3
air: air:
# 4 minutes # 13 minutes
volume: 0.66 volume: 2
moles: moles:
- 0 # oxygen - 0 # oxygen
- 0.270782035 # nitrogen - 0.820551629 # nitrogen
temperature: 293.15 temperature: 293.15
@@ -93,11 +93,11 @@
- type: GasTank - type: GasTank
outputPressure: 21.3 outputPressure: 21.3
air: air:
# 9 minutes # 38 minutes
volume: 1.5 volume: 6
moles: moles:
- 0 # oxygen - 0 # oxygen
- 0.615413715 # nitrogen - 2.461654887 # nitrogen
temperature: 293.15 temperature: 293.15
@@ -123,11 +123,11 @@
- type: GasTank - type: GasTank
outputPressure: 21.3 outputPressure: 21.3
air: air:
# 15 minutes # 63 minutes
volume: 2.5 volume: 10
moles: moles:
- 0 # oxygen - 0 # oxygen
- 1.025689525 # nitrogen - 4.102758145 # nitrogen
temperature: 293.15 temperature: 293.15
- type: entity - type: entity
@@ -138,18 +138,18 @@
- type: GasTank - type: GasTank
outputPressure: 22.4 outputPressure: 22.4
air: air:
# 4 minutes # 13 minutes
volume: 0.66 volume: 2
moles: moles:
- 0.270782035 # 95% oxygen - 0.779524047 # 95% oxygen
- 0 # nitrogen - 0 # nitrogen
- 0 # CO2 - 0 # CO2
- 0 # plasma - 0 # plasma
- 0 # tritium - 0 # tritium
- 0 # water vapor - 0 # water vapor
- 0 # ammonia - 0 # ammonia
- 0.014251686 # 5% N2O - 0.041027581 # 5% N2O
# 0.285033721 total # 0.820551628 total
temperature: 293.15 temperature: 293.15
- type: entity - type: entity

View File

@@ -1506,7 +1506,7 @@
actions: actions:
Critical: Critical:
- ActionCritSuccumb - ActionCritSuccumb
#- ActionCritFakeDeath - ActionCritFakeDeath
- ActionCritLastWords - ActionCritLastWords
- type: MobThresholds - type: MobThresholds
thresholds: thresholds:
@@ -2955,7 +2955,7 @@
actions: actions:
Critical: Critical:
- ActionCritSuccumb - ActionCritSuccumb
#- ActionCritFakeDeath - ActionCritFakeDeath
- ActionCritLastWords - ActionCritLastWords
- type: MobThresholds - type: MobThresholds
thresholds: thresholds:

View File

@@ -72,7 +72,7 @@
actions: actions:
Critical: Critical:
- ActionCritSuccumb - ActionCritSuccumb
#- ActionCritFakeDeath - ActionCritFakeDeath
- ActionCritLastWords - ActionCritLastWords
- type: Deathgasp - type: Deathgasp
- type: HealthExaminable - type: HealthExaminable

View File

@@ -14,6 +14,7 @@
slots: slots:
- Belt - Belt
- type: Gun - type: Gun
resetOnHandSelected: false
fireRate: 0.3 fireRate: 0.3
soundGunshot: soundGunshot:
path: /Audio/Weapons/click.ogg path: /Audio/Weapons/click.ogg

View File

@@ -1,4 +1,4 @@
- type: entity - type: entity
abstract: true abstract: true
parent: BaseObjective parent: BaseObjective
id: BaseChangelingObjective id: BaseChangelingObjective
@@ -99,6 +99,8 @@
parent: BaseChangelingStealObjective parent: BaseChangelingStealObjective
id: RDHardsuitStealObjectiveCh id: RDHardsuitStealObjectiveCh
components: components:
- type: NotJobRequirement
job: ResearchDirector
- type: StealCondition - type: StealCondition
stealGroup: ClothingOuterHardsuitRd stealGroup: ClothingOuterHardsuitRd
owner: job-name-rd owner: job-name-rd
@@ -108,6 +110,8 @@
parent: BaseChangelingStealObjective parent: BaseChangelingStealObjective
id: HandTeleporterStealObjectiveCh id: HandTeleporterStealObjectiveCh
components: components:
- type: NotJobRequirement
job: ResearchDirector
- type: StealCondition - type: StealCondition
stealGroup: HandTeleporter stealGroup: HandTeleporter
owner: job-name-rd owner: job-name-rd

View File

@@ -164,6 +164,8 @@
parent: BaseTraitorStealObjective parent: BaseTraitorStealObjective
id: RDHardsuitStealObjective id: RDHardsuitStealObjective
components: components:
- type: NotJobRequirement
job: ResearchDirector
- type: StealCondition - type: StealCondition
stealGroup: ClothingOuterHardsuitRd stealGroup: ClothingOuterHardsuitRd
owner: job-name-rd owner: job-name-rd
@@ -173,6 +175,8 @@
parent: BaseTraitorStealObjective parent: BaseTraitorStealObjective
id: HandTeleporterStealObjective id: HandTeleporterStealObjective
components: components:
- type: NotJobRequirement
job: ResearchDirector
- type: StealCondition - type: StealCondition
stealGroup: HandTeleporter stealGroup: HandTeleporter
owner: job-name-rd owner: job-name-rd