From 39c490028159fc31d57a8a554e24ebb50cc9fff3 Mon Sep 17 00:00:00 2001
From: Valera <76255437+xzxADIxzx@users.noreply.github.com>
Date: Fri, 8 Mar 2024 20:17:59 +0300
Subject: [PATCH] add funny message to 7-2
---
src/Jaket/World/World.cs | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/Jaket/World/World.cs b/src/Jaket/World/World.cs
index 79eaff69..25ea7f15 100644
--- a/src/Jaket/World/World.cs
+++ b/src/Jaket/World/World.cs
@@ -9,6 +9,7 @@ namespace Jaket.World;
using Jaket.IO;
using Jaket.Net;
using Jaket.Net.Types;
+using Jaket.Sam;
using Jaket.UI;
/// Class that manages objects in the level, such as skull cases, rooms and etc.
@@ -101,6 +102,18 @@ public static void Load()
{
obj.GetComponent().events.toDisActivateObjects[2] = null;
}),
+ // :D
+ StaticAction.Find("Level 7-2", "Intro -> Outdoors", new(-115f, 55f, 419.5f), obj =>
+ {
+ var door = obj.GetComponent();
+ door?.onFullyOpened.AddListener(() =>
+ {
+ door.onFullyOpened=new(); // clear listeners
+
+ UI.SendMsg("What?", true);
+ SamAPI.TryPlay("What?", Networking.LocalPlayer.Voice);
+ });
+ }),
// open all of the doors and disable the Gate Control Terminalâ„¢
StaticAction.Find("Level 7-2", "9A", new(-23.5f, 37.75f, 806.25f), obj =>
{