Add Initial Cooldown To Communications Computers (#21681)

* Add initial delay variable

* Add cooldown to console on spawn

* shock

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Justin Pfeifler
2024-01-08 06:28:06 -06:00
committed by GitHub
parent cce9bde4cd
commit 36fe294bcc
2 changed files with 16 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ namespace Content.Server.Communications
/// Remaining cooldown between making announcements.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public float AnnouncementCooldownRemaining;
/// <summary>
@@ -37,6 +38,13 @@ namespace Content.Server.Communications
[DataField]
public int Delay = 90;
/// <summary>
/// Time in seconds of announcement cooldown when a new console is created on a per-console basis
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public int InitialDelay = 30;
/// <summary>
/// Can call or recall the shuttle
/// </summary>