Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private bool weaponPickedUp = false;
- public override void Process()
- {
- base.Process();
- if (Game.LocalPlayer.Character.DistanceTo(NotesCoroner.Position) < 30f)
- {
- Game.DisplayHelp("Go near the coroner and press ~y~Y ~w~to talk to him.");
- }
- if (Game.LocalPlayer.Character.DistanceTo(NotesCoroner.Position) < 3f)
- {
- if (Game.IsKeyDown(Keys.Y))
- {
- NotesCoroner.Face(Game.LocalPlayer.Character.Position);
- Game.DisplaySubtitle("~r~Coroner: ~w~Hello, officer.");
- GameFiber.Sleep(5000);
- Game.DisplaySubtitle("~r~Coroner: ~w~As you can see here, we have a horrible homicide case.");
- GameFiber.Sleep(5000);
- Game.DisplaySubtitle("~r~Coroner: ~w~The asshole tear the body apart with what seems to be a knife.");
- GameFiber.Sleep(5000);
- Game.DisplaySubtitle("~r~Coroner: ~w~ The suspect dumped it somewhere in this area.");
- GameFiber.Sleep(5000);
- Game.DisplaySubtitle("~r~Coroner: ~w~Look around this area and see if you can find that knife, and bring it to me.");
- Game.HideHelp();
- Game.DisplayHelp("Look around for the knife inside the marked area on the map.");
- Game.LogTrivialDebug("[Homicide Crime Scene] Look for the knife!");
- }
- }
- if ((Game.LocalPlayer.Character.DistanceTo(HomicideWeapon.Position) < 1f) && weaponPickedUp == false)
- {
- Game.DisplayHelp("Bring the knife to the coroner.");
- HomicideWeapon.Delete();
- Game.LogTrivialDebug("[Homicide Crime Scene] You found the knife!");
- weaponPickedUp = true;
- }
- if ((Game.LocalPlayer.Character.DistanceTo(NotesCoroner.Position) < 3f) && weaponPickedUp == true)
- {
- Game.DisplaySubtitle("~r~Coroner: ~w~Thank you very much, officer!");
- Game.LogTrivialDebug("[Homicide Crime Scene] The coroner took the knife!");
- HomicideWeaponBlip.Delete();
- End();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment