diff --git a/code/Rounds/Preparing.cs b/code/Rounds/Preparing.cs index a74741b..2e8176e 100644 --- a/code/Rounds/Preparing.cs +++ b/code/Rounds/Preparing.cs @@ -51,6 +51,8 @@ private void FindNewMurderer() protected override void OnStart() { + Client.All.ToList().ForEach( x => (x.Pawn as MurderPlayer)?.Respawn() ); + Game.RespawnEnabled = false; FindNewDetective(); @@ -61,6 +63,7 @@ protected override void OnStart() BlackScreen.ShowTitle( to, "You are a bystander", Color.White ); BlackScreen.ShowDescription( to, "There is a murderer on the loose. Do not die.", Color.White ); + BlackScreen.PlaySound( To.Everyone, "round.start" ); } protected override void OnTimeUp() diff --git a/code/UserInterface/BlackScreen.cs b/code/UserInterface/BlackScreen.cs index 5e2f61e..b6659ac 100644 --- a/code/UserInterface/BlackScreen.cs +++ b/code/UserInterface/BlackScreen.cs @@ -50,5 +50,11 @@ public static void HideScreen() { Current.Hide(); } + + [ClientRpc] + public static void PlaySound( string sound ) + { + Sound.FromEntity( sound, Local.Pawn ); + } } } diff --git a/sounds/murder/round.start.sound b/sounds/murder/round.start.sound new file mode 100644 index 0000000..1eb0aaa --- /dev/null +++ b/sounds/murder/round.start.sound @@ -0,0 +1,10 @@ + +{ + data = + { + sounds = + [ + "sounds/murder/town_child_scream1.vsnd", + ] + } +} \ No newline at end of file diff --git a/sounds/murder/round.start.sound_c b/sounds/murder/round.start.sound_c new file mode 100644 index 0000000..6657ec1 Binary files /dev/null and b/sounds/murder/round.start.sound_c differ diff --git a/sounds/murder/town_child_scream1.vsnd_c b/sounds/murder/town_child_scream1.vsnd_c new file mode 100644 index 0000000..6691613 Binary files /dev/null and b/sounds/murder/town_child_scream1.vsnd_c differ diff --git a/sounds/murder/town_child_scream1.wav b/sounds/murder/town_child_scream1.wav new file mode 100644 index 0000000..9208cc5 Binary files /dev/null and b/sounds/murder/town_child_scream1.wav differ