Skip to content

Commit

Permalink
add funny message to 7-2
Browse files Browse the repository at this point in the history
  • Loading branch information
xzxADIxzx committed Mar 8, 2024
1 parent 9b1c6d4 commit 39c4900
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Jaket/World/World.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace Jaket.World;
using Jaket.IO;
using Jaket.Net;
using Jaket.Net.Types;
using Jaket.Sam;
using Jaket.UI;

/// <summary> Class that manages objects in the level, such as skull cases, rooms and etc. </summary>
Expand Down Expand Up @@ -101,6 +102,18 @@ public static void Load()
{
obj.GetComponent<ObjectActivator>().events.toDisActivateObjects[2] = null;
}),
// :D
StaticAction.Find("Level 7-2", "Intro -> Outdoors", new(-115f, 55f, 419.5f), obj =>
{
var door = obj.GetComponent<Door>();
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 =>
{
Expand Down

0 comments on commit 39c4900

Please sign in to comment.