public void M4LightTurnedOn()
    {
        if (!firstlight)
        {
            OcuConsoleScreen screen = Common.GetConsoleScreenScript();

            screen.ChangeHeader("Subject 54");
            screen.QueueMessage("ENTERING SUBJECT 54 CONTAINMENT AREA", 0.0f, false, true);
            screen.QueueMessage("HANDLER PROCEED WITH CAUTION", 0.0f, false, false);
            screen.QueueMessage("-----------------------", 0.0f, false, false);
            screen.QueueMessage("Subject 54", 0.0f, false, false);
            screen.QueueMessage("Class A Lethal", 0.0f, false, false);
            screen.QueueMessage("Subject exhibits aggressive tendencies.", 0.0f, false, false);
            screen.QueueMessage("Subject recovered from mainland Russia.", 0.0f, false, false);
            screen.QueueMessage("after night slaughter of cattle. Cattle", 0.0f, false, false);
            screen.QueueMessage("covered in unknown substance, lab tests", 0.0f, false, false);
            screen.QueueMessage("show cows dismembered themselves.      ", 0.0f, false, false);
            screen.QueueMessage("<#0,0,1,1#>HANDLER CORRUPTION LEVEL WILL BE TRACKED", 0.0f, true, false);
            screen.QueueMessage("<#0,0,1,1#>FOR DURATION OF EXPOSURE.", 1.0f, true, false);

            GetScript <Monster4Logic>(GameObject.GetGameObjectByName("Monster3")).IsActive = true;
        }
        firstlight = true;

        M4LightsToTurnOff--;

        Logger.Log("Lights Left for M4: " + M4LightsToTurnOff.ToString());

        if (M4LightsToTurnOff == 0)
        {
            //ooga booga, you beat the boss-a
            smc.SetState(lightson);
            GetScript <Monster4Logic>(GameObject.GetGameObjectByName("Monster3")).Kill();
        }
    }
Esempio n. 2
0
    public override void OnStart()
    {
        base.OnStart();

        consoleScreen = GameObject.GetGameObjectByName("ConsoleScreen");
        consoleScript = GetScript <OcuConsoleScreen>(consoleScreen);
    }
Esempio n. 3
0
    // Use this for initialization
    public void OnStart()
    {
        mSound     = gameObject.RequireComponent <CSound>();
        ocuConsole = GetScript <OcuConsoleScreen>(Common.GetSurveillancePlayerConsoleScreen());

        RandomCenter();
    }
Esempio n. 4
0
    public override void OnStart()
    {
        base.OnStart();

        sound          = gameObject.RequireComponent <CSound>();
        doorButtonMesh = gameObject.RequireComponent <CMeshRenderer>();

        if (doorName != null && doorName.Length > 0)
        {
            door = GameObject.GetGameObjectByName(doorName);
            if (requiresSurveillancePlayer)
            {
                doorButtonMesh.GetMaterial().SetColor(SharpMocha.YELLOW);
            }
            else
            {
                doorButtonMesh.GetMaterial().SetColor(SharpMocha.CORNFLOWER_BLUE);
            }
        }
        else
        {
            isButtonRed = true; // it is a default locked button
        }
        doorButtonColor = doorButtonMesh.GetMaterial().GetColor();

        playerMouse  = GetScript <Mouse>(Common.GetStealthPlayerMouse());
        player       = Common.GetStealthPlayer();
        playerScript = Common.GetStealthPlayerScript();
        ocuConsole   = GetScript <OcuConsoleScreen>(Common.GetSurveillancePlayerConsoleScreen());
    }
Esempio n. 5
0
    public override void OnStart()
    {
        base.OnStart();

        sound = gameObject.RequireComponent<CSound>();
        doorButtonMesh = gameObject.RequireComponent<CMeshRenderer>();

        if (doorName != null && doorName.Length > 0)
        {
            door = GameObject.GetGameObjectByName(doorName);
            if (requiresSurveillancePlayer)
                doorButtonMesh.GetMaterial().SetColor(SharpMocha.YELLOW);
            else
                doorButtonMesh.GetMaterial().SetColor(SharpMocha.CORNFLOWER_BLUE);
        }
        else
        {
            isButtonRed = true; // it is a default locked button
        }
        doorButtonColor = doorButtonMesh.GetMaterial().GetColor();

        playerMouse = GetScript<Mouse>(Common.GetStealthPlayerMouse() );
        player = Common.GetStealthPlayer();
        playerScript = Common.GetStealthPlayerScript();
        ocuConsole = GetScript<OcuConsoleScreen>(Common.GetSurveillancePlayerConsoleScreen());
    }
    public override void OnStart()
    {
        base.OnStart();

        consoleScreen = GameObject.GetGameObjectByName("ConsoleScreen");
        consoleScript = GetScript<OcuConsoleScreen>(consoleScreen);
    }
Esempio n. 7
0
 public static OcuConsoleScreen GetConsoleScreenScript()
 {
     if (consoleScreenScript == null)
     {
         consoleScreenScript = MochaScript.GetScript <OcuConsoleScreen>(GetSurveillancePlayerConsoleScreen());
     }
     return(consoleScreenScript);
 }
    public override void OnAreaEnter()
    {
        if (entered)
        {
            return;
        }
        entered = true;

        Logger.Log("Entered M4 Area");
        OcuConsoleScreen screen = Common.GetConsoleScreenScript();

        screen.QueueMessage("<#1,0,0,1#>Containment Area Light Malfunction.", 0.0f, true, true);
        screen.QueueMessage("<#1,1,0,1#>Activate Local Lights to Restore Power.", 0.0f, true, true);

        smc.SetState(lightsoff);
    }
Esempio n. 9
0
    public static void Reset()
    {
        isPaused  = false;
        isOptions = false;

        pauseScreen                            = null;
        pauseScreenScript                      = null;
        stealth_player                         = null;
        stealthPlayerScript                    = null;
        stealthPlayerMesh                      = null;
        stealthPlayerCamera                    = null;
        stealthPlayerCamScript                 = null;
        stealthPlayerMouse                     = null;
        surveillancePlayerCam                  = null;
        surveillancePlayerStaticCameraCam      = null;
        cameraCamScript                        = null;
        surveillancePlayerMouse                = null;
        surveillancePlayerConsoleScreen        = null;
        consoleScreenScript                    = null;
        surveillancePlayerConsoleText          = null;
        surveillancePlayerConsoleCam           = null;
        surveillancePlayerConsoleBlinkingLight = null;
        stealthPlayerFadeScreen                = null;
        stickCam          = null;
        stickCamInMap     = null;
        stickCamInMapArea = null;
        stickyCamScript   = null;
        camInMapSelector  = null;
        noiseStatic       = null;
        rcCar             = null;
        rcCarCam          = null;
        rcCarCamInMap     = null;
        rcCarJoystick     = null;

        camInMap     = null;
        camInMapArea = null;
        camInWorld   = null;

        cameraScreen = null;
        mapScreen    = null;

        pauseOptionsScreen = null;
        fullscreenX        = null;
        muteX      = null;
        volumeFont = null;
    }
Esempio n. 10
0
    public void OnStart()
    {
        smc            = new StateMachineController();
        lightsmc       = new StateMachineController();
        player         = Common.GetStealthPlayer();
        binds          = GameObject.GetGameObjectByName("Monster4Binds");
        attackParticle = GameObject.GetGameObjectByName("Monster4AttackParts").GetComponent <CParticleEmitter>();
        attackParticle.setEnabled(false);
        poofParticle = GameObject.GetGameObjectByName("Monster4Poof").GetComponent <CParticleEmitter>();
        mlight       = gameObject.GetComponentInChildren <CLight>();
        sound        = gameObject.RequireComponent <CSound>();

        screen = Common.GetConsoleScreenScript();

        mesh = GameObject.GetGameObjectByName("M4Mesh").RequireComponent <CMeshRenderer>();

        hunting         = new State(smc, S_hunting_Start, S_hunting_Update, null);
        respawning      = new State(smc, S_respawning_Start, null, S_respawning_End, RESPAWNTIME, hunting);
        attacking       = new State(smc, S_attacking_Start, S_attacking_Update, S_attacking_End);
        attacking_intro = new State(smc, S_attacking_intro_Start, S_attacking_intro_Update, null, 1.0f, attacking);
        incoming        = new State(smc, S_incoming_Start, S_incoming_Update, null, 3.0f, respawning);
        hurting         = new State(smc, S_hurting_Start, S_hurting_Update, null, 1.0f, respawning);
        idle            = new State(smc);
        dying           = new State(smc, S_dying_Start, null, S_dying_End, 2.0f, idle);

        //light smc
        hold       = new State(lightsmc, null, null, null);
        turningoff = new State(lightsmc, null, S_turningoff_Update, null, 0.5f, hold);
        turningon  = new State(lightsmc, null, S_turningon_Update, null, 0.5f, hold);

        //binds smc
        bindssmc      = new StateMachineController();
        bindhold      = new State(bindssmc, null, null, null);
        bindsmoveup   = new State(bindssmc, S_bindsmoveup_Start, S_bindsmoveup_Update, null, 0.5f, bindhold);
        bindsmovedown = new State(bindssmc, null, S_bindsmovedown_Update, S_bindsmovedown_End, 0.5f, bindhold);

        helper = new MonsterHelper();

        smc.SetState(respawning);
        lightsmc.SetState(hold);

        DisplayCorruption();
    }
    public void OnStart()
    {
        smc = new StateMachineController();
        lightsmc = new StateMachineController();
        player = Common.GetStealthPlayer();
        binds = GameObject.GetGameObjectByName("Monster4Binds");
        attackParticle = GameObject.GetGameObjectByName("Monster4AttackParts").GetComponent<CParticleEmitter>();
        attackParticle.setEnabled(false);
        poofParticle = GameObject.GetGameObjectByName("Monster4Poof").GetComponent<CParticleEmitter>();
        mlight = gameObject.GetComponentInChildren<CLight>();
        sound = gameObject.RequireComponent<CSound>();

        screen = Common.GetConsoleScreenScript();

        mesh = GameObject.GetGameObjectByName("M4Mesh").RequireComponent<CMeshRenderer>();

        hunting = new State(smc, S_hunting_Start, S_hunting_Update, null);
        respawning = new State(smc, S_respawning_Start, null, S_respawning_End, RESPAWNTIME, hunting);
        attacking = new State(smc, S_attacking_Start, S_attacking_Update, S_attacking_End);
        attacking_intro = new State(smc, S_attacking_intro_Start, S_attacking_intro_Update, null, 1.0f, attacking);
        incoming = new State(smc, S_incoming_Start, S_incoming_Update, null, 3.0f, respawning);
        hurting = new State(smc, S_hurting_Start, S_hurting_Update, null, 1.0f, respawning);
        idle = new State(smc);
        dying = new State(smc, S_dying_Start, null, S_dying_End, 2.0f, idle);

        //light smc
        hold = new State(lightsmc, null, null, null);
        turningoff = new State(lightsmc, null, S_turningoff_Update, null, 0.5f, hold);
        turningon = new State(lightsmc, null, S_turningon_Update, null, 0.5f, hold);

        //binds smc
        bindssmc = new StateMachineController();
        bindhold = new State(bindssmc, null, null, null);
        bindsmoveup = new State(bindssmc, S_bindsmoveup_Start, S_bindsmoveup_Update, null, 0.5f, bindhold);
        bindsmovedown = new State(bindssmc, null, S_bindsmovedown_Update, S_bindsmovedown_End, 0.5f, bindhold);

        helper = new MonsterHelper();

        smc.SetState(respawning);
        lightsmc.SetState(hold);

        DisplayCorruption();
    }
Esempio n. 12
0
    // Use this for initialization
    public void OnStart()
    {
        mSound     = gameObject.RequireComponent <CSound>();
        ocuConsole = Common.GetConsoleScreenScript();
        door       = GameObject.GetGameObjectByName(Common.prefix + "GeneticsLabDoor2");

        GameObject lightObj = GameObject.GetGameObjectByName(Common.prefix + "GLD_RightLight2");

        rightLight = lightObj.RequireComponent <CLight>();
        lightObj   = GameObject.GetGameObjectByName(Common.prefix + "GLD_LeftLight2");
        leftLight  = lightObj.RequireComponent <CLight>();

        correctIndexOrder.Add(0);
        correctHeights.Add(3); // 3A
        correctIndexOrder.Add(2);
        correctHeights.Add(6); // 6C
        correctIndexOrder.Add(3);
        correctHeights.Add(5); // 5D
        correctIndexOrder.Add(1);
        correctHeights.Add(3); // 3B
    }
Esempio n. 13
0
    public void OnStart()
    {
        sound = gameObject.RequireComponent <CSound>();

        redButton     = GameObject.GetGameObjectByName("redButton");
        greenButton   = GameObject.GetGameObjectByName("greenButton");
        blueButton    = GameObject.GetGameObjectByName("blueButton");
        consoleScreen = Common.GetSurveillancePlayerConsoleScreen();
        consoleScript = GetScript <OcuConsoleScreen>(consoleScreen);
        //lights = GameObject.GetGameObjectsWithTag("phase1light");
        GameObject doorObj = GameObject.GetGameObjectByName("Terminal1Door");

        door1Script = GetScript <DoorMain>(doorObj);
        doorObj     = GameObject.GetGameObjectByName("Terminal2Door");
        door2Script = GetScript <DoorMain>(doorObj);

        GameObject checkpoint = GameObject.GetGameObjectByName("Checkpoint1a");

        checkpointScript = GetScript <DeathCheckpointTriggerArea>(checkpoint);
        chilloutFace     = GameObject.GetGameObjectByName("chilloutface 1");
        cFace            = (chilloutFace.RequireComponent <CMeshRenderer>());

        GameObject lightObj = GameObject.GetGameObjectByName("Light1a");

        lightAtDoor = lightObj.RequireComponent <CLight>();
        lightAtDoor.setEnabled(false);

        foreach (GameObject obj in GameObject.GetGameObjectsWithTag("phase1light"))
        {
            lights.Add(obj.RequireComponent <CLight>());
        }
        sequence.Add(1); sequence.Add(3); sequence.Add(2);
        if (lights.Count == 0)
        {
        }

        geneticsAccessLeftLightObj = GameObject.GetGameObjectByName("GLD_LeftLight");
        geneticsAccessLeftLight    = geneticsAccessLeftLightObj.RequireComponent <CLight>();
    }
Esempio n. 14
0
    public static void Reset()
    {
        isPaused = false;
        isOptions = false;

        pauseScreen = null;
        pauseScreenScript = null;
        stealth_player = null;
        stealthPlayerScript = null;
        stealthPlayerMesh = null;
        stealthPlayerCamera = null;
        stealthPlayerCamScript = null;
        stealthPlayerMouse = null;
        surveillancePlayerCam = null;
        surveillancePlayerStaticCameraCam = null;
        cameraCamScript = null;
        surveillancePlayerMouse = null;
        surveillancePlayerConsoleScreen = null;
        consoleScreenScript = null;
        surveillancePlayerConsoleText = null;
        surveillancePlayerConsoleCam = null;
        surveillancePlayerConsoleBlinkingLight = null;
        stealthPlayerFadeScreen = null;
        stickCam = null;
        stickCamInMap = null;
        stickCamInMapArea = null;
        stickyCamScript = null;
        camInMapSelector = null;
        noiseStatic = null;
        rcCar = null;
        rcCarCam = null;
        rcCarCamInMap = null;
        rcCarJoystick = null;

        camInMap = null;
        camInMapArea = null;
        camInWorld = null;

        cameraScreen = null;
        mapScreen = null;

        pauseOptionsScreen = null;
        fullscreenX = null;
        muteX = null;
        volumeFont = null;
    }
    public void OnStart()
    {
        sound = gameObject.RequireComponent<CSound>();

        redButton = GameObject.GetGameObjectByName("redButton");
        greenButton = GameObject.GetGameObjectByName("greenButton");
        blueButton = GameObject.GetGameObjectByName("blueButton");
        consoleScreen = Common.GetSurveillancePlayerConsoleScreen();
        consoleScript = GetScript<OcuConsoleScreen>(consoleScreen);
        //lights = GameObject.GetGameObjectsWithTag("phase1light");
        GameObject doorObj = GameObject.GetGameObjectByName("Terminal1Door");
        door1Script = GetScript<DoorMain>(doorObj);
        doorObj = GameObject.GetGameObjectByName("Terminal2Door");
        door2Script = GetScript<DoorMain>(doorObj);

        GameObject checkpoint = GameObject.GetGameObjectByName("Checkpoint1a");
        checkpointScript = GetScript<DeathCheckpointTriggerArea>(checkpoint);
        chilloutFace = GameObject.GetGameObjectByName("chilloutface 1");
        cFace = (chilloutFace.RequireComponent<CMeshRenderer>());

        GameObject lightObj = GameObject.GetGameObjectByName("Light1a");
        lightAtDoor = lightObj.RequireComponent<CLight>();
        lightAtDoor.setEnabled(false);

        foreach (GameObject obj in GameObject.GetGameObjectsWithTag("phase1light"))
        {
            lights.Add(obj.RequireComponent<CLight>());
        }
        sequence.Add(1); sequence.Add(3); sequence.Add(2);
        if(lights.Count == 0)
        {
        }

        geneticsAccessLeftLightObj = GameObject.GetGameObjectByName("GLD_LeftLight");
        geneticsAccessLeftLight = geneticsAccessLeftLightObj.RequireComponent<CLight>();
    }
    // Use this for initialization
    public void OnStart()
    {
        mSound = gameObject.RequireComponent<CSound>();
        ocuConsole = Common.GetConsoleScreenScript();
        door = GameObject.GetGameObjectByName(Common.prefix + "GeneticsLabDoor2");

        GameObject lightObj = GameObject.GetGameObjectByName(Common.prefix + "GLD_RightLight2");
        rightLight = lightObj.RequireComponent<CLight>();
        lightObj = GameObject.GetGameObjectByName(Common.prefix + "GLD_LeftLight2");
        leftLight = lightObj.RequireComponent<CLight>();

        correctIndexOrder.Add(0);
        correctHeights.Add(3); // 3A
        correctIndexOrder.Add(2);
        correctHeights.Add(6); // 6C
        correctIndexOrder.Add(3);
        correctHeights.Add(5); // 5D
        correctIndexOrder.Add(1);
        correctHeights.Add(3); // 3B
    }
    // Use this for initialization
    public void OnStart()
    {
        mSound = gameObject.RequireComponent<CSound>();
        ocuConsole = GetScript<OcuConsoleScreen>(Common.GetSurveillancePlayerConsoleScreen());

        RandomCenter();
    }
Esempio n. 18
0
 public static OcuConsoleScreen GetConsoleScreenScript()
 {
     if (consoleScreenScript == null)
         consoleScreenScript = MochaScript.GetScript<OcuConsoleScreen>(GetSurveillancePlayerConsoleScreen());
     return consoleScreenScript;
 }