public override void Update() { GameObject gameObject; if (Input.GetKeyDown("left alt")) { this.CinematicCamera.active = false; } if (this.PauseScreen.Show) { this.audio.volume = this.audio.volume - 0.333333343f; } else { if (!this.CanMove) { if (this.Dumping) { this.targetRotation = Quaternion.LookRotation(this.Incinerator.transform.position - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); this.MoveTowardsTarget(this.Incinerator.transform.position + (Vector3.right * (float)-2)); if (this.DumpTimer == (float)0 && this.Carrying) { this.CharacterAnimation["f02_carryDisposeA_00"].time = 2.5f; } this.DumpTimer = this.DumpTimer + Time.deltaTime; if (this.DumpTimer > (float)1) { if (!((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).Dumped) { this.DumpRagdoll(1); } this.CharacterAnimation.CrossFade("f02_carryDisposeA_00"); if (this.CharacterAnimation["f02_carryDisposeA_00"].time >= this.CharacterAnimation["f02_carryDisposeA_00"].length) { this.Incinerator.Prompt.enabled = true; this.Incinerator.Ready = true; this.Incinerator.Open = false; this.Dragging = false; this.Dumping = false; this.CanMove = true; this.Ragdoll = null; this.StopCarrying(); this.DumpTimer = (float)0; } } } if (this.Chipping) { this.targetRotation = Quaternion.LookRotation(this.WoodChipper.gameObject.transform.position - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); this.MoveTowardsTarget(this.WoodChipper.DumpPoint.position); if (this.DumpTimer == (float)0 && this.Carrying) { this.CharacterAnimation["f02_carryDisposeA_00"].time = 2.5f; } this.DumpTimer = this.DumpTimer + Time.deltaTime; if (this.DumpTimer > (float)1) { if (!((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).Dumped) { this.DumpRagdoll(3); } this.CharacterAnimation.CrossFade("f02_carryDisposeA_00"); if (this.CharacterAnimation["f02_carryDisposeA_00"].time >= this.CharacterAnimation["f02_carryDisposeA_00"].length) { this.WoodChipper.Prompt.HideButton[0] = false; this.WoodChipper.Prompt.HideButton[3] = true; this.WoodChipper.Occupied = true; this.WoodChipper.Open = false; this.Dragging = false; this.Chipping = false; this.CanMove = true; this.Ragdoll = null; this.StopCarrying(); this.DumpTimer = (float)0; } } } if (this.Dipping) { if (this.Bucket != null) { float bucket = this.Bucket.transform.position.x; float single = this.transform.position.y; Vector3 vector3 = this.Bucket.transform.position; this.targetRotation = Quaternion.LookRotation(new Vector3(bucket, single, vector3.z) - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); } this.CharacterAnimation.CrossFade("f02_dipping_00"); if (this.CharacterAnimation["f02_dipping_00"].time >= this.CharacterAnimation["f02_dipping_00"].length * 0.5f && this.Mop.Bloodiness > (float)0) { if (this.Bucket != null) { this.Bucket.Bloodiness = this.Bucket.Bloodiness + this.Mop.Bloodiness / (float)2; } this.Mop.Bloodiness = (float)0; this.Mop.UpdateBlood(); } if (this.CharacterAnimation["f02_dipping_00"].time >= this.CharacterAnimation["f02_dipping_00"].length) { this.CharacterAnimation["f02_dipping_00"].time = (float)0; this.Mop.Prompt.enabled = true; this.Dipping = false; this.CanMove = true; } } if (this.Pouring) { this.MoveTowardsTarget(this.Stool.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.Stool.rotation, (float)10 * Time.deltaTime); this.CharacterAnimation.CrossFade(("f02_bucketDump" + this.PourHeight) + "_00", (float)0); if (this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].time >= this.PourTime && !this.PickUp.Bucket.Poured) { if (this.PickUp.Bucket.Gasoline) { this.PickUp.Bucket.PourEffect.startColor = new Color((float)1, (float)1, (float)0, 0.5f); Object.Instantiate(this.PickUp.Bucket.GasCollider, this.PickUp.Bucket.PourEffect.transform.position + (this.PourDistance * this.transform.forward), Quaternion.identity); } else if (this.PickUp.Bucket.Bloodiness >= (float)50) { this.PickUp.Bucket.PourEffect.startColor = new Color(0.5f, (float)0, (float)0, 0.5f); Object.Instantiate(this.PickUp.Bucket.BloodCollider, this.PickUp.Bucket.PourEffect.transform.position + (this.PourDistance * this.transform.forward), Quaternion.identity); } else { this.PickUp.Bucket.PourEffect.startColor = new Color((float)0, (float)1, (float)1, 0.5f); Object.Instantiate(this.PickUp.Bucket.WaterCollider, this.PickUp.Bucket.PourEffect.transform.position + (this.PourDistance * this.transform.forward), Quaternion.identity); } this.PickUp.Bucket.PourEffect.Play(); this.PickUp.Bucket.Poured = true; this.PickUp.Bucket.Empty(); } if (this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].time >= this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].length) { this.CharacterAnimation[("f02_bucketDump" + this.PourHeight) + "_00"].time = (float)0; this.PickUp.Bucket.Poured = false; this.Pouring = false; this.CanMove = true; } } if (this.Laughing) { if (this.Hairstyles[14].active) { this.LaughAnim = "storepower_20"; this.LaughClip = this.ChargeUp; } if (this.CirnoHair.active) { float axis = Input.GetAxis("Vertical"); float axis1 = Input.GetAxis("Horizontal"); Vector3 vector31 = this.MainCamera.transform.TransformDirection(Vector3.forward); vector31.y = (float)0; vector31 = vector31.normalized; Vector3 vector32 = new Vector3(vector31.z, (float)0, -vector31.x); Vector3 vector33 = (axis1 * vector32) + (axis * vector31); if (vector33 != Vector3.zero) { this.targetRotation = Quaternion.LookRotation(vector33); this.transform.rotation = Quaternion.Lerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); } this.LaughAnim = "f02_cirnoAttack_00"; this.CirnoTimer = this.CirnoTimer - Time.deltaTime; if (this.CirnoTimer < (float)0) { GameObject gameObject1 = (GameObject)Object.Instantiate(this.CirnoIceAttack, this.transform.position + (this.transform.up * 1.4f), this.transform.rotation); gameObject1.transform.localEulerAngles = gameObject1.transform.localEulerAngles + new Vector3(Random.Range(-5f, 5f), Random.Range(-5f, 5f), Random.Range(-5f, 5f)); this.audio.PlayOneShot(this.CirnoIceClip); this.CirnoTimer = 0.1f; } } else if (this.audio.clip != this.LaughClip) { this.audio.clip = this.LaughClip; this.audio.time = (float)0; this.audio.Play(); } this.CharacterAnimation.CrossFade(this.LaughAnim); if (Input.GetButtonDown("RB")) { this.LaughIntensity = this.LaughIntensity + (float)1; if (this.LaughIntensity <= (float)5) { this.LaughAnim = "f02_laugh_01"; this.LaughClip = this.Laugh1; this.LaughTimer = 0.5f; } else if (this.LaughIntensity <= (float)10) { this.LaughAnim = "f02_laugh_02"; this.LaughClip = this.Laugh2; this.LaughTimer = (float)1; } else if (this.LaughIntensity <= (float)15) { this.LaughAnim = "f02_laugh_03"; this.LaughClip = this.Laugh3; this.LaughTimer = 1.5f; } else if (this.LaughIntensity > (float)20) { gameObject = (GameObject)Object.Instantiate(this.AlarmDisc, this.transform.position + Vector3.up, Quaternion.identity); ((AlarmDiscScript)gameObject.GetComponent(typeof(AlarmDiscScript))).NoScream = true; this.LaughAnim = "f02_laugh_04"; this.LaughIntensity = (float)20; this.LaughTimer = (float)2; } else { gameObject = (GameObject)Object.Instantiate(this.AlarmDisc, this.transform.position + Vector3.up, Quaternion.identity); ((AlarmDiscScript)gameObject.GetComponent(typeof(AlarmDiscScript))).NoScream = true; this.LaughAnim = "f02_laugh_04"; this.LaughClip = this.Laugh4; this.LaughTimer = (float)2; } } if (this.LaughIntensity > (float)15) { this.Sanity = this.Sanity + Time.deltaTime * (float)10; this.UpdateSanity(); } this.LaughTimer = this.LaughTimer - Time.deltaTime; if (this.LaughTimer <= (float)0) { this.StopLaughing(); } } if (this.TimeSkipping) { float timeSkipHeight = this.TimeSkipHeight; float single1 = timeSkipHeight; Vector3 vector34 = this.transform.position; Vector3 vector35 = vector34; float single2 = single1; float single3 = single2; vector35.y = single2; Vector3 vector36 = vector35; Vector3 vector37 = vector36; this.transform.position = vector36; this.CharacterAnimation.CrossFade("f02_timeSkip_00"); this.MyController.Move(this.transform.up * 0.0001f); this.Sanity = this.Sanity + Time.deltaTime * 0.17f; this.UpdateSanity(); } if (this.DumpsterGrabbing) { if (Input.GetAxis("Horizontal") > 0.5f || Input.GetAxis("DpadX") > 0.5f) { if (this.DumpsterHandle.Direction != (float)-1) { this.CharacterAnimation.CrossFade("f02_dumpsterPush_00"); } else { this.CharacterAnimation.CrossFade("f02_dumpsterPull_00"); } } else if (Input.GetAxis("Horizontal") >= -0.5f && Input.GetAxis("DpadX") >= -0.5f) { this.CharacterAnimation.CrossFade("f02_dumpsterGrab_00"); } else if (this.DumpsterHandle.Direction != (float)-1) { this.CharacterAnimation.CrossFade("f02_dumpsterPull_00"); } else { this.CharacterAnimation.CrossFade("f02_dumpsterPush_00"); } } if (this.Stripping && this.CharacterAnimation["f02_stripping_00"].time >= this.CharacterAnimation["f02_stripping_00"].length) { this.Stripping = false; this.CanMove = true; this.MyLocker.UpdateSchoolwear(); } if (this.Bathing) { this.MoveTowardsTarget(this.Stool.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.Stool.rotation, (float)10 * Time.deltaTime); this.CharacterAnimation.CrossFade("f02_stoolBathing_00"); if (this.CharacterAnimation["f02_stoolBathing_00"].time >= this.CharacterAnimation["f02_stoolBathing_00"].length) { this.Bloodiness = (float)0; this.UpdateBlood(); this.Bathing = false; this.CanMove = true; } } if (this.Degloving) { this.CharacterAnimation.CrossFade("f02_removeGloves_00"); if (this.CharacterAnimation["f02_removeGloves_00"].time >= this.CharacterAnimation["f02_removeGloves_00"].length) { this.Gloves.transform.parent = null; this.Gloves.active = true; this.Degloving = false; this.CanMove = true; this.Gloved = false; this.Gloves = null; this.SetUniform(); } else if (this.InputDevice.Type == 1) { if (Input.GetAxis("DpadY") > -0.5f) { this.Degloving = false; this.CanMove = true; this.GloveTimer = (float)0; } } else if (Input.GetKeyUp("1")) { this.Degloving = false; this.CanMove = true; this.GloveTimer = (float)0; } } if (this.Struggling) { if (!this.Won && !this.Lost) { if (this.TargetStudent.Teacher) { this.CharacterAnimation.CrossFade("f02_teacherStruggleA_00"); } else { this.CharacterAnimation.CrossFade("f02_struggleA_00"); } this.targetRotation = Quaternion.LookRotation(this.TargetStudent.transform.position - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime); } else if (this.Won) { if (this.TargetStudent.Teacher) { this.CharacterAnimation.CrossFade("f02_teacherStruggleWinA_00"); this.Weapon[this.Equipped].transform.localEulerAngles = Vector3.Lerp(this.Weapon[this.Equipped].transform.localEulerAngles, new Vector3((float)0, (float)0, (float)0), Time.deltaTime); } else { this.CharacterAnimation.CrossFade("f02_struggleWinA_00"); if (this.CharacterAnimation["f02_struggleWinA_00"].time > this.CharacterAnimation["f02_struggleWinA_00"].length - (float)1) { this.Weapon[this.Equipped].transform.localEulerAngles = Vector3.Lerp(this.Weapon[this.Equipped].transform.localEulerAngles, new Vector3((float)0, (float)0, (float)0), Time.deltaTime * 3.33333f); } } if (this.StrugglePhase == 0) { if (!this.TargetStudent.Teacher && this.CharacterAnimation["f02_struggleWinA_00"].time > 1.3f || this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > 0.8f) { if (this.TargetStudent.Teacher) { Object.Instantiate(this.TargetStudent.StabBloodEffect, this.Weapon[this.Equipped].transform.position, Quaternion.identity); } else { Object.Instantiate(this.TargetStudent.StabBloodEffect, this.TargetStudent.Head.position, Quaternion.identity); } this.Bloodiness = this.Bloodiness + (float)20; this.UpdateBlood(); this.Sanity = this.Sanity - (float)20 * this.Numbness; this.UpdateSanity(); this.StainWeapon(); this.StrugglePhase = this.StrugglePhase + 1; } } else if (this.StrugglePhase == 1) { if (this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > 1.3f) { Object.Instantiate(this.TargetStudent.StabBloodEffect, this.Weapon[this.Equipped].transform.position, Quaternion.identity); this.StrugglePhase = this.StrugglePhase + 1; } } else if (this.StrugglePhase == 2 && this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > 2.1f) { Object.Instantiate(this.TargetStudent.StabBloodEffect, this.Weapon[this.Equipped].transform.position, Quaternion.identity); this.StrugglePhase = this.StrugglePhase + 1; } if (!this.TargetStudent.Teacher && this.CharacterAnimation["f02_struggleWinA_00"].time > this.CharacterAnimation["f02_struggleWinA_00"].length || this.TargetStudent.Teacher && this.CharacterAnimation["f02_teacherStruggleWinA_00"].time > this.CharacterAnimation["f02_teacherStruggleWinA_00"].length) { this.MyController.radius = 0.2f; this.CharacterAnimation.CrossFade(this.IdleAnim); this.ShoulderCamera.Struggle = false; this.Struggling = false; this.StrugglePhase = 0; this.TargetStudent.BecomeRagdoll(); this.TargetStudent.Dead = true; } } else if (this.Lost) { if (this.TargetStudent.Teacher) { this.CharacterAnimation.CrossFade("f02_teacherStruggleLoseA_00"); } else { this.CharacterAnimation.CrossFade("f02_struggleLoseA_00"); } } } if (this.ClubActivity && PlayerPrefs.GetInt("Club") == 6) { this.CharacterAnimation.Play("f02_kick_23"); if (this.CharacterAnimation["f02_kick_23"].time >= this.CharacterAnimation["f02_kick_23"].length) { this.CharacterAnimation["f02_kick_23"].time = (float)0; } } if (this.Possessed) { this.CharacterAnimation.CrossFade("f02_possessionPose_00"); } if (this.Punching) { if (!this.FalconHelmet.active) { if (this.CharacterAnimation["f02_punch_21"].time >= 0.15f && this.CharacterAnimation["f02_punch_21"].time <= 0.2f && this.NewOnePunch == null) { this.NewOnePunch = (GameObject)Object.Instantiate(this.OnePunch); this.NewOnePunch.transform.parent = this.ItemParent; this.NewOnePunch.transform.localPosition = new Vector3((float)0, (float)0, (float)0); } if (this.CharacterAnimation["f02_punch_21"].time >= this.CharacterAnimation["f02_punch_21"].length - 0.1f) { this.NewOnePunch = null; this.Punching = false; this.CanMove = true; } } else { if (this.CharacterAnimation["f02_falconPunch_00"].time >= (float)1 && this.CharacterAnimation["f02_falconPunch_00"].time <= 1.25f) { this.FalconSpeed = Mathf.MoveTowards(this.FalconSpeed, 2.5f, Time.deltaTime * 2.5f); } else if (this.CharacterAnimation["f02_falconPunch_00"].time >= 1.25f && this.CharacterAnimation["f02_falconPunch_00"].time <= 1.5f) { this.FalconSpeed = Mathf.MoveTowards(this.FalconSpeed, (float)0, Time.deltaTime * 2.5f); } if (this.CharacterAnimation["f02_falconPunch_00"].time >= (float)1 && this.CharacterAnimation["f02_falconPunch_00"].time <= 1.5f) { if (this.NewFalconPunch == null) { this.NewFalconPunch = (GameObject)Object.Instantiate(this.FalconPunch); this.NewFalconPunch.transform.parent = this.ItemParent; this.NewFalconPunch.transform.localPosition = new Vector3((float)0, (float)0, (float)0); } this.MyController.Move(this.transform.forward * this.FalconSpeed); } if (this.CharacterAnimation["f02_falconPunch_00"].time >= this.CharacterAnimation["f02_falconPunch_00"].length) { this.NewFalconPunch = null; this.Punching = false; this.CanMove = true; } } } if (this.PK) { if (Input.GetAxis("Vertical") > 0.5f) { this.CharacterAnimation.CrossFade("f02_sansUp_00"); this.RagdollPK.transform.localPosition = new Vector3((float)0, (float)3, (float)2); if (this.PKDir != 1) { AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up); } this.PKDir = 1; } else if (Input.GetAxis("Vertical") < -0.5f) { this.CharacterAnimation.CrossFade("f02_sansDown_00"); this.RagdollPK.transform.localPosition = new Vector3((float)0, (float)0, (float)2); if (this.PKDir != 2) { AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up); } this.PKDir = 2; } else if (Input.GetAxis("Horizontal") > 0.5f) { this.CharacterAnimation.CrossFade("f02_sansRight_00"); this.RagdollPK.transform.localPosition = new Vector3(1.5f, 1.5f, (float)2); if (this.PKDir != 3) { AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up); } this.PKDir = 3; } else if (Input.GetAxis("Horizontal") >= -0.5f) { this.CharacterAnimation.CrossFade("f02_sansHold_00"); this.RagdollPK.transform.localPosition = new Vector3((float)0, 1.5f, (float)2); this.PKDir = 0; } else { this.CharacterAnimation.CrossFade("f02_sansLeft_00"); this.RagdollPK.transform.localPosition = new Vector3(-1.5f, 1.5f, (float)2); if (this.PKDir != 4) { AudioSource.PlayClipAtPoint(this.Slam, this.transform.position + Vector3.up); } this.PKDir = 4; } if (Input.GetButtonDown("B")) { this.PromptBar.ClearButtons(); this.PromptBar.UpdateButtons(); this.PromptBar.Show = false; ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopDragging(); this.SansEyes[0].active = false; this.SansEyes[1].active = false; this.GlowEffect.Stop(); this.CanMove = true; this.PK = false; } } if (this.SummonBones) { this.CharacterAnimation.CrossFade("f02_sansBones_00"); if (this.BoneTimer == (float)0) { Object.Instantiate(this.Bone, ((this.transform.position + (this.transform.right * Random.Range(-2.5f, 2.5f))) + (this.transform.up * (float)-2)) + (this.transform.forward * Random.Range(1f, 6f)), Quaternion.identity); } this.BoneTimer = this.BoneTimer + Time.deltaTime; if (this.BoneTimer > 0.1f) { this.BoneTimer = (float)0; } if (Input.GetButtonUp("RB")) { this.SansEyes[0].active = false; this.SansEyes[1].active = false; this.GlowEffect.Stop(); this.SummonBones = false; this.CanMove = true; } if (this.PK) { this.PromptBar.ClearButtons(); this.PromptBar.UpdateButtons(); this.PromptBar.Show = false; ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopDragging(); this.SansEyes[0].active = false; this.SansEyes[1].active = false; this.GlowEffect.Stop(); this.CanMove = true; this.PK = false; } } if (this.Blasting) { if (this.CharacterAnimation["f02_sansBlaster_00"].time >= this.CharacterAnimation["f02_sansBlaster_00"].length - 0.25f) { this.SansEyes[0].active = false; this.SansEyes[1].active = false; this.GlowEffect.Stop(); this.Blasting = false; this.CanMove = true; } if (this.PK) { this.PromptBar.ClearButtons(); this.PromptBar.UpdateButtons(); this.PromptBar.Show = false; ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopDragging(); this.SansEyes[0].active = false; this.SansEyes[1].active = false; this.GlowEffect.Stop(); this.CanMove = true; this.PK = false; } } if (this.Lifting && this.CharacterAnimation["f02_carryLiftA_00"].time >= this.CharacterAnimation["f02_carryLiftA_00"].length) { this.IdleAnim = this.CarryIdleAnim; this.WalkAnim = this.CarryWalkAnim; this.RunAnim = this.CarryRunAnim; this.CanMove = true; this.Carrying = true; this.Lifting = false; } if (this.Dropping) { this.targetRotation = Quaternion.LookRotation((this.DropSpot.position + this.DropSpot.forward) - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); this.MoveTowardsTarget(this.DropSpot.position); if (this.DumpTimer == (float)0 && this.Carrying) { ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).CharacterAnimation[((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).DumpedAnim].time = 2.5f; this.CharacterAnimation["f02_carryDisposeA_00"].time = 2.5f; } this.DumpTimer = this.DumpTimer + Time.deltaTime; if (this.DumpTimer > (float)1) { if (this.Ragdoll != null) { int num = 0; int num1 = num; Vector3 pelvisRoot = ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localEulerAngles; Vector3 vector38 = pelvisRoot; float single4 = (float)num1; float single5 = single4; vector38.y = single4; Vector3 vector39 = vector38; Vector3 vector310 = vector39; ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localEulerAngles = vector39; int num2 = 0; int num3 = num2; Vector3 pelvisRoot1 = ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localPosition; Vector3 vector311 = pelvisRoot1; float single6 = (float)num3; float single7 = single6; vector311.z = single6; Vector3 vector312 = vector311; Vector3 vector313 = vector312; ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).PelvisRoot.localPosition = vector312; } Transform cameraTarget = this.CameraTarget; Vector3 cameraTarget1 = this.CameraTarget.position; float hips = this.Hips.position.x; float single8 = this.transform.position.y + (float)1; Vector3 hips1 = this.Hips.position; cameraTarget.position = Vector3.MoveTowards(cameraTarget1, new Vector3(hips, single8, hips1.z), Time.deltaTime * (float)10); if (this.CharacterAnimation["f02_carryDisposeA_00"].time < 4.5f) { if (((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopAnimation) { ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).StopAnimation = false; this.ID = 0; while (this.ID < ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).AllRigidbodies.Length) { ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).AllRigidbodies[this.ID].isKinematic = true; this.ID = this.ID + 1; } } this.CharacterAnimation.CrossFade("f02_carryDisposeA_00"); ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).CharacterAnimation.CrossFade(((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).DumpedAnim); this.Ragdoll.transform.position = this.transform.position; this.Ragdoll.transform.eulerAngles = this.transform.eulerAngles; } else { this.StopCarrying(); } if (this.CharacterAnimation["f02_carryDisposeA_00"].time >= this.CharacterAnimation["f02_carryDisposeA_00"].length) { this.CameraTarget.localPosition = new Vector3((float)0, (float)1, (float)0); this.Dropping = false; this.CanMove = true; this.DumpTimer = (float)0; } } } if (this.Dismembering && this.CharacterAnimation["f02_dismember_00"].time >= this.CharacterAnimation["f02_dismember_00"].length) { ((RagdollScript)this.Ragdoll.GetComponent(typeof(RagdollScript))).Dismember(); this.RPGCamera.enabled = true; this.TargetStudent = null; this.Dismembering = false; this.CanMove = true; } if (this.Shoved) { if (this.CharacterAnimation["f02_shoveA_00"].time < this.CharacterAnimation["f02_shoveA_00"].length) { Transform transforms = this.CameraTarget; Vector3 cameraTarget2 = this.CameraTarget.position; float hips2 = this.Hips.position.x; float single9 = this.transform.position.y + (float)1; Vector3 hips3 = this.Hips.position; transforms.position = Vector3.MoveTowards(cameraTarget2, new Vector3(hips2, single9, hips3.z), Time.deltaTime * (float)10); } else { float hips4 = this.Hips.transform.position.x; float single10 = hips4; Vector3 vector314 = this.transform.position; Vector3 vector315 = vector314; float single11 = single10; float single12 = single11; vector315.x = single11; Vector3 vector316 = vector315; Vector3 vector317 = vector316; this.transform.position = vector316; float hips5 = this.Hips.transform.position.z; float single13 = hips5; Vector3 vector318 = this.transform.position; Vector3 vector319 = vector318; float single14 = single13; float single15 = single14; vector319.z = single14; Vector3 vector320 = vector319; Vector3 vector321 = vector320; this.transform.position = vector320; this.CameraTarget.localPosition = new Vector3((float)0, (float)1, (float)0); this.CharacterAnimation.Play(this.IdleAnim); this.Shoved = false; this.CanMove = true; } } if (this.Attacked && this.CharacterAnimation["f02_swingB_00"].time >= this.CharacterAnimation["f02_swingB_00"].length) { this.ShoulderCamera.HeartbrokenCamera.active = true; } if (this.Hiding) { if (this.Exiting) { this.MoveTowardsTarget(this.ExitSpot.position); this.CharacterAnimation.CrossFade(this.IdleAnim); this.ExitTimer = this.ExitTimer + Time.deltaTime; if (this.ExitTimer > (float)1 || Vector3.Distance(this.transform.position, this.ExitSpot.position) < 0.1f) { float single16 = 0.825f; float single17 = single16; Vector3 myController = this.MyController.center; Vector3 vector322 = myController; float single18 = single17; float single19 = single18; vector322.y = single18; Vector3 vector323 = vector322; Vector3 vector324 = vector323; this.MyController.center = vector323; this.MyController.height = 1.45f; this.ExitTimer = (float)0; this.Exiting = false; this.CanMove = true; this.Hiding = false; } } else { this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.HidingSpot.rotation, Time.deltaTime * (float)10); this.MoveTowardsTarget(this.HidingSpot.position); this.CharacterAnimation.CrossFade("f02_hiding_00"); } if (Input.GetButtonDown("B")) { this.PromptBar.ClearButtons(); this.PromptBar.Show = false; this.Exiting = true; } } if (this.Tripping) { if (this.CharacterAnimation["f02_bucketTrip_00"].time >= this.CharacterAnimation["f02_bucketTrip_00"].length) { this.CharacterAnimation["f02_bucketTrip_00"].speed = (float)1; this.Tripping = false; this.CanMove = true; } else if (this.CharacterAnimation["f02_bucketTrip_00"].time < 0.5f) { this.MyController.Move((this.transform.forward * Time.deltaTime) * (float)2); if (this.CharacterAnimation["f02_bucketTrip_00"].time > 0.33333f && this.CharacterAnimation["f02_bucketTrip_00"].speed == (float)1) { this.CharacterAnimation["f02_bucketTrip_00"].speed = this.CharacterAnimation["f02_bucketTrip_00"].speed + 1E-06f; AudioSource.PlayClipAtPoint(this.Thud, this.transform.position); } } else if (Input.GetButtonDown("A")) { this.CharacterAnimation["f02_bucketTrip_00"].speed = this.CharacterAnimation["f02_bucketTrip_00"].speed + 0.1f; } } if (this.BucketDropping) { this.targetRotation = Quaternion.LookRotation((this.DropSpot.position + this.DropSpot.forward) - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); this.MoveTowardsTarget(this.DropSpot.position); if (this.CharacterAnimation["f02_bucketDrop_00"].time >= this.CharacterAnimation["f02_bucketDrop_00"].length) { this.MyController.radius = 0.2f; this.BucketDropping = false; this.CanMove = true; } else if (this.CharacterAnimation["f02_bucketDrop_00"].time >= (float)1 && this.PickUp != null) { this.PickUp.Bucket.Dropped = true; this.EmptyHands(); } } if (this.Flicking) { if (this.CharacterAnimation["f02_flickingMatch_00"].time >= this.CharacterAnimation["f02_flickingMatch_00"].length) { ((MatchboxScript)this.PickUp.GetComponent(typeof(MatchboxScript))).Prompt.enabled = true; this.Arc.active = true; this.Flicking = false; this.CanMove = true; } else if (this.CharacterAnimation["f02_flickingMatch_00"].time > (float)1 && this.Match != null) { this.Match.rigidbody.isKinematic = false; this.Match.rigidbody.useGravity = true; this.Match.rigidbody.AddRelativeForce(Vector3.right * (float)250); this.Match.transform.parent = null; this.Match = null; } } if (this.Rummaging) { this.MoveTowardsTarget(this.RummageSpot.Target.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.RummageSpot.Target.rotation, Time.deltaTime * (float)10); this.RummageTimer = this.RummageTimer + Time.deltaTime; float rummageTimer = this.RummageTimer / (float)10; float single20 = rummageTimer; Vector3 progressBar = this.ProgressBar.transform.localScale; Vector3 vector325 = progressBar; float single21 = single20; float single22 = single21; vector325.x = single21; Vector3 vector326 = vector325; Vector3 vector327 = vector326; this.ProgressBar.transform.localScale = vector326; if (this.RummageTimer > (float)10) { this.RummageSpot.GetReward(); this.ProgressBar.transform.parent.active = false; this.RummageSpot = null; this.Rummaging = false; this.RummageTimer = (float)0; this.CanMove = true; } } if (this.Digging) { if (this.DigPhase == 1) { if (this.CharacterAnimation["f02_shovelDig_00"].time >= 1.66666663f) { this.audio.volume = (float)1; this.audio.clip = this.Dig; this.audio.Play(); this.DigPhase = this.DigPhase + 1; } } else if (this.DigPhase == 2) { if (this.CharacterAnimation["f02_shovelDig_00"].time >= 3.5f) { this.audio.volume = (float)1; this.audio.Play(); this.DigPhase = this.DigPhase + 1; } } else if (this.DigPhase == 3) { if (this.CharacterAnimation["f02_shovelDig_00"].time >= 5.66666651f) { this.audio.volume = (float)1; this.audio.Play(); this.DigPhase = this.DigPhase + 1; } } else if (this.DigPhase == 4 && this.CharacterAnimation["f02_shovelDig_00"].time >= this.CharacterAnimation["f02_shovelDig_00"].length) { this.Weapon[this.Equipped].gameObject.active = true; this.FloatingShovel.active = false; this.RPGCamera.enabled = true; this.Digging = false; this.CanMove = true; } } if (this.Burying) { if (this.DigPhase == 1) { if (this.CharacterAnimation["f02_shovelBury_00"].time >= 2.16666675f) { this.audio.volume = (float)1; this.audio.clip = this.Dig; this.audio.Play(); this.DigPhase = this.DigPhase + 1; } } else if (this.DigPhase == 2) { if (this.CharacterAnimation["f02_shovelBury_00"].time >= 4.66666651f) { this.audio.volume = (float)1; this.audio.Play(); this.DigPhase = this.DigPhase + 1; } } else if (this.CharacterAnimation["f02_shovelBury_00"].time >= this.CharacterAnimation["f02_shovelBury_00"].length) { this.Weapon[this.Equipped].gameObject.active = true; this.FloatingShovel.active = false; this.RPGCamera.enabled = true; this.Burying = false; this.CanMove = true; } } } else { this.MyController.Move(Physics.gravity * 0.1f); this.v = Input.GetAxis("Vertical"); this.h = Input.GetAxis("Horizontal"); this.FlapSpeed = Mathf.Abs(this.v) + Mathf.Abs(this.h); if (this.Aiming) { if (this.v == (float)0 && this.h == (float)0) { if (this.Crawling) { this.CharacterAnimation.CrossFade("f02_crawlIdle_00"); } else if (!this.Crouching) { this.CharacterAnimation.CrossFade(this.IdleAnim); } else { this.CharacterAnimation.CrossFade("f02_crouchIdle_00"); } } else if (this.Crawling) { this.CharacterAnimation.CrossFade("f02_crawl_10"); this.MyController.Move(((this.transform.forward * this.CrawlSpeed) * Time.deltaTime) * this.v); this.MyController.Move(((this.transform.right * this.CrawlSpeed) * Time.deltaTime) * this.h); } else if (!this.Crouching) { this.CharacterAnimation.CrossFade(this.WalkAnim); this.MyController.Move(((this.transform.forward * this.WalkSpeed) * Time.deltaTime) * this.v); this.MyController.Move(((this.transform.right * this.WalkSpeed) * Time.deltaTime) * this.h); } else { this.CharacterAnimation.CrossFade("f02_crouchWalk_00"); this.MyController.Move(((this.transform.forward * this.CrouchSpeed) * Time.deltaTime) * this.v); this.MyController.Move(((this.transform.right * this.CrouchSpeed) * Time.deltaTime) * this.h); } this.Bend = this.Bend + Input.GetAxis("Mouse Y") * (float)8; if (this.Crawling) { if (this.Bend < (float)0) { this.Bend = (float)0; } } else if (this.Crouching) { if (this.Bend < (float)-45) { this.Bend = (float)-45; } } else if (this.Bend < (float)-85) { this.Bend = (float)-85; } if (this.Bend > (float)85) { this.Bend = (float)85; } Vector3 vector328 = this.transform.localEulerAngles; float axis2 = vector328.y + Input.GetAxis("Mouse X") * (float)8; float single23 = axis2; Vector3 vector329 = this.transform.localEulerAngles; Vector3 vector330 = vector329; float single24 = single23; float single25 = single24; vector330.y = single24; Vector3 vector331 = vector330; Vector3 vector332 = vector331; this.transform.localEulerAngles = vector331; } else { Vector3 vector333 = this.MainCamera.transform.TransformDirection(Vector3.forward); vector333.y = (float)0; vector333 = vector333.normalized; Vector3 vector334 = new Vector3(vector333.z, (float)0, -vector333.x); this.targetDirection = (this.h * vector334) + (this.v * vector333); if (this.targetDirection == Vector3.zero) { this.targetRotation = new Quaternion((float)0, (float)0, (float)0, (float)0); } else { this.targetRotation = Quaternion.LookRotation(this.targetDirection); this.transform.rotation = Quaternion.Lerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); } if (this.v == (float)0 && this.h == (float)0) { if (this.Dragging) { this.CharacterAnimation.CrossFade("f02_dragIdle_00"); } else if (this.Crawling) { this.CharacterAnimation.CrossFade("f02_crawlIdle_00"); } else if (!this.Crouching) { this.CharacterAnimation.CrossFade(this.IdleAnim); } else { this.CharacterAnimation.CrossFade("f02_crouchIdle_00"); } } else if (Input.GetButton("LB") && Vector3.Distance(this.transform.position, this.Senpai.position) > (float)2) { if (this.Crouching) { this.CharacterAnimation["f02_crouchWalk_00"].speed = (float)2; this.CharacterAnimation.CrossFade("f02_crouchWalk_00"); this.MyController.Move((this.transform.forward * ((float)2 + (float)(PlayerPrefs.GetInt("PhysicalGrade") + PlayerPrefs.GetInt("SpeedBonus")) * 0.25f)) * Time.deltaTime); } else if (this.Dragging || this.Mopping) { this.CharacterAnimation.CrossFade("f02_dragWalk_00"); this.MyController.Move((this.transform.forward * this.WalkSpeed) * Time.deltaTime); } else { this.CharacterAnimation.CrossFade(this.RunAnim); this.MyController.Move((this.transform.forward * (this.RunSpeed + (float)(PlayerPrefs.GetInt("PhysicalGrade") + PlayerPrefs.GetInt("SpeedBonus")) * 0.25f)) * Time.deltaTime); } !this.Crouching; if (this.Crawling) { this.Crawling = false; this.Crouching = true; this.Crouch(); } } else if (this.Dragging) { this.CharacterAnimation.CrossFade("f02_dragWalk_00"); this.MyController.Move((this.transform.forward * this.WalkSpeed) * Time.deltaTime); } else if (this.Crawling) { this.CharacterAnimation.CrossFade("f02_crawl_10"); this.MyController.Move((this.transform.forward * this.CrawlSpeed) * Time.deltaTime); } else if (!this.Crouching) { this.CharacterAnimation.CrossFade(this.WalkAnim); this.MyController.Move((this.transform.forward * this.WalkSpeed) * Time.deltaTime); } else { this.CharacterAnimation["f02_crouchWalk_00"].speed = (float)1; this.CharacterAnimation.CrossFade("f02_crouchWalk_00"); this.MyController.Move((this.transform.forward * this.CrouchSpeed) * Time.deltaTime); } } if (!this.NearSenpai) { if (!Input.GetButton("A") && !Input.GetButton("B") && !Input.GetButton("X") && !Input.GetButton("Y") && (Input.GetAxis("LT") > 0.5f || Input.GetMouseButton(1))) { if (this.Inventory.RivalPhone && Input.GetButtonDown("LB")) { this.CharacterAnimation["f02_cameraPose_00"].weight = (float)0; if (this.RivalPhone) { this.SmartphoneRenderer.material.mainTexture = this.YanderePhoneTexture; this.RivalPhone = false; } else { this.SmartphoneRenderer.material.mainTexture = this.KokonaPhoneTexture; this.RivalPhone = true; } } if (Input.GetAxis("LT") > 0.5f) { this.UsingController = true; } if (!this.Aiming) { if (this.CameraEffects.OneCamera) { this.MainCamera.clearFlags = CameraClearFlags.Color; this.MainCamera.farClipPlane = 0.02f; } float mainCamera = this.MainCamera.transform.eulerAngles.y; float single26 = mainCamera; Vector3 vector335 = this.transform.eulerAngles; Vector3 vector336 = vector335; float single27 = single26; float single28 = single27; vector336.y = single27; Vector3 vector337 = vector336; Vector3 vector338 = vector337; this.transform.eulerAngles = vector337; this.CharacterAnimation.Play(this.IdleAnim); this.Smartphone.transform.parent.active = true; this.ShoulderCamera.AimingCamera = true; this.Obscurance.enabled = false; this.HandCamera.active = true; this.YandereVision = false; this.Blur.enabled = true; this.Mopping = false; this.Aiming = true; this.EmptyHands(); if (this.Inventory.RivalPhone) { this.PhonePromptBar.Show = true; } Time.timeScale = (float)1; } } if (!this.Aiming && !this.Crouching && !this.Crawling && !this.Accessories[9].active && !this.Accessories[16].active) { if (Input.GetButton("RB")) { this.YandereTimer = this.YandereTimer + Time.deltaTime; if (this.YandereTimer > 0.5f) { if (this.Sans) { this.SansEyes[0].active = true; this.SansEyes[1].active = true; this.GlowEffect.Play(); this.SummonBones = true; this.YandereTimer = (float)0; this.CanMove = false; } else { this.YandereVision = true; } } } else if (this.YandereVision) { this.Obscurance.enabled = false; this.YandereVision = false; } if (Input.GetButtonUp("RB")) { if (this.YandereTimer < 0.5f && !this.Dragging && !this.Carrying && !this.Laughing) { if (this.Sans) { this.BlasterStage = this.BlasterStage + 1; if (this.BlasterStage > 5) { this.BlasterStage = 1; } GameObject gameObject2 = (GameObject)Object.Instantiate(this.BlasterSet[this.BlasterStage], this.transform.position, Quaternion.identity); gameObject2.transform.position = this.transform.position; gameObject2.transform.rotation = this.transform.rotation; AudioSource.PlayClipAtPoint(this.BlasterClip, this.transform.position + Vector3.up); this.CharacterAnimation["f02_sansBlaster_00"].time = (float)0; this.CharacterAnimation.Play("f02_sansBlaster_00"); this.SansEyes[0].active = true; this.SansEyes[1].active = true; this.GlowEffect.Play(); this.Blasting = true; this.CanMove = false; } else if (this.FalconHelmet.active || !this.Barcode.active) { if (!this.Punching) { if (!this.FalconHelmet.active) { AudioSource.PlayClipAtPoint(this.OnePunchVoice, this.transform.position + Vector3.up); this.CharacterAnimation["f02_punch_21"].time = (float)0; this.CharacterAnimation.CrossFade("f02_punch_21", 0.15f); } else { GameObject itemParent = (GameObject)Object.Instantiate(this.FalconWindUp); itemParent.transform.parent = this.ItemParent; itemParent.transform.localPosition = new Vector3((float)0, (float)0, (float)0); AudioSource.PlayClipAtPoint(this.FalconPunchVoice, this.transform.position + Vector3.up); this.CharacterAnimation["f02_falconPunch_00"].time = (float)0; this.CharacterAnimation.Play("f02_falconPunch_00"); this.FalconSpeed = (float)0; } this.Punching = true; this.CanMove = false; } } else if (!this.Xtan) { if (!this.CirnoHair.active) { this.LaughAnim = "f02_laugh_01"; this.LaughClip = this.Laugh1; this.LaughIntensity = this.LaughIntensity + (float)1; this.audio.clip = this.LaughClip; this.audio.time = (float)0; this.audio.Play(); } Object.Instantiate(this.GiggleDisc, this.transform.position + Vector3.up, Quaternion.identity); this.audio.volume = (float)1; this.LaughTimer = 0.5f; this.Laughing = true; this.CanMove = false; } else if (!this.LongHair[0].gameObject.active) { this.LongHair[0].gameObject.active = true; this.SlenderHair[0].active = false; this.SlenderHair[1].active = false; this.BlackEyePatch.active = true; } else { this.LongHair[0].gameObject.active = false; this.SlenderHair[0].active = true; this.SlenderHair[1].active = true; this.BlackEyePatch.active = false; } } this.YandereTimer = (float)0; } } if (!Input.GetButton("LB")) { if (this.Crouching || this.Crawling) { if (this.Crouching) { if (Input.GetButton("RS") && !this.CameFromCrouch) { this.CrawlTimer = this.CrawlTimer + Time.deltaTime; } if (this.CrawlTimer > 0.5f) { this.EmptyHands(); this.Obscurance.enabled = false; this.YandereVision = false; this.Crouching = false; this.Crawling = true; this.CrawlTimer = (float)0; this.Uncrouch(); } else if (Input.GetButtonUp("RS") && !this.CrouchButtonDown && !this.CameFromCrouch) { this.Crouching = false; this.CrawlTimer = (float)0; this.Uncrouch(); } } else if (Input.GetButtonDown("RS")) { this.CameFromCrouch = true; this.Crouching = true; this.Crawling = false; this.Crouch(); } if (Input.GetButtonUp("RS")) { this.CrouchButtonDown = false; this.CameFromCrouch = false; this.CrawlTimer = (float)0; } } else if (Input.GetButtonDown("RS")) { this.Obscurance.enabled = false; this.CrouchButtonDown = true; this.YandereVision = false; this.Crouching = true; this.Crouch(); this.EmptyHands(); } } } if (this.Aiming) { this.CharacterAnimation["f02_cameraPose_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_cameraPose_00"].weight, (float)1, Time.deltaTime * (float)10); if (this.ClubAccessories[7].active && (Input.GetAxis("DpadY") != (float)0 || Input.GetAxis("Mouse ScrollWheel") != (float)0)) { this.Smartphone.fieldOfView = this.Smartphone.fieldOfView - Input.GetAxis("DpadY"); this.Smartphone.fieldOfView = this.Smartphone.fieldOfView - Input.GetAxis("Mouse ScrollWheel") * (float)10; if (this.Smartphone.fieldOfView > (float)60) { this.Smartphone.fieldOfView = (float)60; } if (this.Smartphone.fieldOfView < (float)30) { this.Smartphone.fieldOfView = (float)30; } } if (Input.GetAxis("RT") != (float)0 || Input.GetMouseButtonDown(0) || Input.GetButtonDown("RB")) { this.FixCamera(); this.PauseScreen.CorrectingTime = false; Time.timeScale = (float)0; this.CanMove = false; this.Shutter.Snap(); } if (Time.timeScale > (float)0 && (this.UsingController && Input.GetAxis("LT") < 0.5f || !this.UsingController && !Input.GetMouseButton(1))) { this.StopAiming(); } if (!Input.GetKey("left alt")) { this.CinematicTimer = (float)0; } else if (!this.CinematicCamera.active) { if (this.CinematicTimer > (float)0) { this.CinematicCamera.transform.eulerAngles = this.Smartphone.transform.eulerAngles; this.CinematicCamera.transform.position = this.Smartphone.transform.position; this.CinematicCamera.active = true; this.CinematicTimer = (float)0; this.StopAiming(); } this.CinematicTimer = this.CinematicTimer + (float)1; } } if (this.Gloved) { if (this.InputDevice.Type == 1) { if (Input.GetAxis("DpadY") >= -0.5f) { this.GloveTimer = (float)0; } else { this.GloveTimer = this.GloveTimer + Time.deltaTime; if (this.GloveTimer > 0.5f) { this.CharacterAnimation.CrossFade("f02_removeGloves_00"); this.Degloving = true; this.CanMove = false; } } } else if (!Input.GetKey("1")) { this.GloveTimer = (float)0; } else { this.GloveTimer = this.GloveTimer + Time.deltaTime; if (this.GloveTimer > 0.1f) { this.CharacterAnimation.CrossFade("f02_removeGloves_00"); this.Degloving = true; this.CanMove = false; } } } if (this.Weapon[1] != null && this.DropTimer[2] == (float)0) { if (this.InputDevice.Type == 1) { if (Input.GetAxis("DpadX") >= -0.5f) { this.DropTimer[1] = (float)0; } else { this.DropWeapon(1); } } else if (!Input.GetKey("2")) { this.DropTimer[1] = (float)0; } else { this.DropWeapon(1); } } if (this.Weapon[2] != null && this.DropTimer[1] == (float)0) { if (this.InputDevice.Type == 1) { if (Input.GetAxis("DpadX") <= 0.5f) { this.DropTimer[2] = (float)0; } else { this.DropWeapon(2); } } else if (!Input.GetKey("3")) { this.DropTimer[2] = (float)0; } else { this.DropWeapon(2); } } if (Input.GetButtonDown("LS") || Input.GetKeyDown("t")) { if (this.NewTrail != null) { Object.Destroy(this.NewTrail); } this.NewTrail = (GameObject)Object.Instantiate(this.Trail, (this.transform.position + (this.transform.forward * 0.5f)) + (Vector3.up * 0.1f), Quaternion.identity); ((AIPath)this.NewTrail.GetComponent(typeof(AIPath))).target = this.Homeroom; } if (!this.Armed) { this.ID = 0; while (this.ID < Extensions[this.ArmedAnims]) { this.CharacterAnimation[this.ArmedAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.ArmedAnims[this.ID]].weight, (float)0, Time.deltaTime * (float)10); this.ID = this.ID + 1; } } else { this.ID = 0; while (this.ID < Extensions[this.ArmedAnims]) { if (this.Weapon[this.Equipped].AnimID != this.ID) { this.CharacterAnimation[this.ArmedAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.ArmedAnims[this.ID]].weight, (float)0, Time.deltaTime * (float)10); } else { this.CharacterAnimation[this.ArmedAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.ArmedAnims[this.ID]].weight, (float)1, Time.deltaTime * (float)10); } this.ID = this.ID + 1; } } } if (!this.Laughing) { this.audio.volume = this.audio.volume - Time.deltaTime * (float)2; } if (this.Mopping) { this.CharacterAnimation["f02_mopping_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_mopping_00"].weight, (float)1, Time.deltaTime * (float)10); if (Input.GetButtonUp("A") || Input.GetKeyDown("escape")) { this.Mopping = false; } } else { this.CharacterAnimation["f02_mopping_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_mopping_00"].weight, (float)0, Time.deltaTime * (float)10); } if (this.LaughIntensity < (float)10) { this.ID = 0; while (this.ID < Extensions[this.CarryAnims]) { if (!(this.PickUp != null) || this.CarryAnimID != this.ID || this.Mopping || this.Dipping || this.Pouring || this.BucketDropping || this.Digging || this.Burying) { this.CharacterAnimation[this.CarryAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.CarryAnims[this.ID]].weight, (float)0, Time.deltaTime * (float)10); } else { this.CharacterAnimation[this.CarryAnims[this.ID]].weight = Mathf.Lerp(this.CharacterAnimation[this.CarryAnims[this.ID]].weight, (float)1, Time.deltaTime * (float)10); } this.ID = this.ID + 1; } } else if (this.Armed) { this.CharacterAnimation["f02_mopCarry_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_mopCarry_00"].weight, (float)1, Time.deltaTime * (float)10); } if (this.Noticed && !this.Attacking) { if (!this.Collapse) { this.CharacterAnimation.CrossFade("f02_scaredIdle_00"); this.targetRotation = Quaternion.LookRotation(this.Senpai.position - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); int num4 = 0; int num5 = num4; Vector3 vector339 = this.transform.localEulerAngles; Vector3 vector340 = vector339; float single29 = (float)num5; float single30 = single29; vector340.x = single29; Vector3 vector341 = vector340; Vector3 vector342 = vector341; this.transform.localEulerAngles = vector341; } else if (this.CharacterAnimation["f02_down_22"].time >= this.CharacterAnimation["f02_down_22"].length) { this.CharacterAnimation.CrossFade("f02_down_23"); } } if (!this.Attacking && !this.Lost && this.CanMove) { if (Vector3.Distance(this.transform.position, this.Senpai.position) >= (float)2) { this.NearSenpai = false; } else if (!this.Talking) { if (!this.NearSenpai) { this.DepthOfField.focalSize = (float)150; this.NearSenpai = true; } if (this.Laughing) { this.StopLaughing(); } this.Obscurance.enabled = false; this.YandereVision = false; this.Crouching = false; this.Crawling = false; this.Mopping = false; this.Uncrouch(); this.YandereTimer = (float)0; this.EmptyHands(); if (this.Aiming) { this.StopAiming(); } } } if (this.NearSenpai && !this.Noticed) { this.DepthOfField.enabled = true; this.DepthOfField.focalSize = Mathf.Lerp(this.DepthOfField.focalSize, (float)0, Time.deltaTime * (float)10); this.DepthOfField.focalZStartCurve = Mathf.Lerp(this.DepthOfField.focalZStartCurve, (float)20, Time.deltaTime * (float)10); this.DepthOfField.focalZEndCurve = Mathf.Lerp(this.DepthOfField.focalZEndCurve, (float)20, Time.deltaTime * (float)10); this.DepthOfField.objectFocus = this.Senpai.transform; this.ColorCorrection.enabled = true; this.SenpaiFade = Mathf.Lerp(this.SenpaiFade, (float)0, Time.deltaTime * (float)10); this.SenpaiTint = (float)1 - this.SenpaiFade / (float)100; this.ColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, 0.5f + this.SenpaiTint * 0.5f)); this.ColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, 0.5f - this.SenpaiTint * 0.5f)); this.ColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, 0.5f + this.SenpaiTint * 0.5f)); this.ColorCorrection.redChannel.SmoothTangents(1, (float)0); this.ColorCorrection.greenChannel.SmoothTangents(1, (float)0); this.ColorCorrection.blueChannel.SmoothTangents(1, (float)0); this.ColorCorrection.UpdateTextures(); if (!this.Attacking) { this.CharacterAnimation["f02_shy_00"].weight = this.SenpaiTint; } this.HeartBeat.volume = this.SenpaiTint; this.Sanity = this.Sanity + Time.deltaTime * (float)10; this.UpdateSanity(); } else if (this.SenpaiFade < (float)99) { this.DepthOfField.focalSize = Mathf.Lerp(this.DepthOfField.focalSize, (float)150, Time.deltaTime * (float)10); this.DepthOfField.focalZStartCurve = Mathf.Lerp(this.DepthOfField.focalZStartCurve, (float)0, Time.deltaTime * (float)10); this.DepthOfField.focalZEndCurve = Mathf.Lerp(this.DepthOfField.focalZEndCurve, (float)0, Time.deltaTime * (float)10); this.SenpaiFade = Mathf.Lerp(this.SenpaiFade, (float)100, Time.deltaTime * (float)10); this.SenpaiTint = this.SenpaiFade / (float)100; this.ColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, (float)1 - this.SenpaiTint * 0.5f)); this.ColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, this.SenpaiTint * 0.5f)); this.ColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, (float)1 - this.SenpaiTint * 0.5f)); this.ColorCorrection.redChannel.SmoothTangents(1, (float)0); this.ColorCorrection.greenChannel.SmoothTangents(1, (float)0); this.ColorCorrection.blueChannel.SmoothTangents(1, (float)0); this.ColorCorrection.UpdateTextures(); this.CharacterAnimation["f02_shy_00"].weight = (float)1 - this.SenpaiTint; this.HeartBeat.volume = (float)1 - this.SenpaiTint; } else if (this.SenpaiFade < (float)100) { this.ResetSenpaiEffects(); } if (!this.YandereVision) { if (this.HighlightingR.enabled) { this.HighlightingR.enabled = false; this.HighlightingB.enabled = false; } if (this.YandereFade < (float)99) { if (!this.Aiming) { Time.timeScale = Mathf.Lerp(Time.timeScale, (float)1, 0.166666672f); } this.YandereFade = Mathf.Lerp(this.YandereFade, (float)100, Time.deltaTime * (float)10); this.YandereTint = this.YandereFade / (float)100; this.YandereColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, this.YandereTint * 0.5f)); this.YandereColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, this.YandereTint * 0.5f)); this.YandereColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, (float)1 - this.YandereTint * 0.5f)); this.YandereColorCorrection.redChannel.SmoothTangents(1, (float)0); this.YandereColorCorrection.greenChannel.SmoothTangents(1, (float)0); this.YandereColorCorrection.blueChannel.SmoothTangents(1, (float)0); this.YandereColorCorrection.UpdateTextures(); this.Vignette.intensity = Mathf.Lerp(this.Vignette.intensity, (float)0, Time.deltaTime * (float)10); this.Vignette.blur = Mathf.Lerp(this.Vignette.blur, (float)0, Time.deltaTime * (float)10); this.Vignette.chromaticAberration = Mathf.Lerp(this.Vignette.chromaticAberration, (float)0, Time.deltaTime * (float)10); } else if (this.YandereFade < (float)100) { this.ResetYandereEffects(); } } else { if (!this.HighlightingR.enabled) { this.YandereColorCorrection.enabled = true; this.HighlightingR.enabled = true; this.HighlightingB.enabled = true; this.Obscurance.enabled = true; this.Vignette.enabled = true; } Time.timeScale = Mathf.Lerp(Time.timeScale, 0.5f, 0.166666672f); this.YandereFade = Mathf.Lerp(this.YandereFade, (float)0, Time.deltaTime * (float)10); this.YandereTint = (float)1 - this.YandereFade / (float)100; this.YandereColorCorrection.redChannel.MoveKey(1, new Keyframe(0.5f, 0.5f - this.YandereTint * 0.25f)); this.YandereColorCorrection.greenChannel.MoveKey(1, new Keyframe(0.5f, 0.5f - this.YandereTint * 0.25f)); this.YandereColorCorrection.blueChannel.MoveKey(1, new Keyframe(0.5f, 0.5f + this.YandereTint * 0.25f)); this.YandereColorCorrection.redChannel.SmoothTangents(1, (float)0); this.YandereColorCorrection.greenChannel.SmoothTangents(1, (float)0); this.YandereColorCorrection.blueChannel.SmoothTangents(1, (float)0); this.YandereColorCorrection.UpdateTextures(); this.Vignette.intensity = Mathf.Lerp(this.Vignette.intensity, this.YandereTint * (float)5, Time.deltaTime * (float)10); this.Vignette.blur = Mathf.Lerp(this.Vignette.blur, this.YandereTint, Time.deltaTime * (float)10); this.Vignette.chromaticAberration = Mathf.Lerp(this.Vignette.chromaticAberration, this.YandereTint * (float)5, Time.deltaTime * (float)10); } float yandereFade = (float)1 - this.YandereFade / (float)100; float single31 = yandereFade; Color rightRedEye = this.RightRedEye.material.color; Color color = rightRedEye; float single32 = single31; float single33 = single32; color.a = single32; Color color1 = color; Color color2 = color1; this.RightRedEye.material.color = color1; float yandereFade1 = (float)1 - this.YandereFade / (float)100; float single34 = yandereFade1; Color leftRedEye = this.LeftRedEye.material.color; Color color3 = leftRedEye; float single35 = single34; float single36 = single35; color3.a = single35; Color color4 = color3; Color color5 = color4; this.LeftRedEye.material.color = color4; float yandereFade2 = this.YandereFade / (float)100; float single37 = yandereFade2; Color rightYandereEye = this.RightYandereEye.material.color; Color color6 = rightYandereEye; float single38 = single37; float single39 = single38; color6.g = single38; Color color7 = color6; Color color8 = color7; this.RightYandereEye.material.color = color7; float yandereFade3 = this.YandereFade / (float)100; float single40 = yandereFade3; Color rightYandereEye1 = this.RightYandereEye.material.color; Color color9 = rightYandereEye1; float single41 = single40; float single42 = single41; color9.b = single41; Color color10 = color9; Color color11 = color10; this.RightYandereEye.material.color = color10; float yandereFade4 = this.YandereFade / (float)100; float single43 = yandereFade4; Color leftYandereEye = this.LeftYandereEye.material.color; Color color12 = leftYandereEye; float single44 = single43; float single45 = single44; color12.g = single44; Color color13 = color12; Color color14 = color13; this.LeftYandereEye.material.color = color13; float yandereFade5 = this.YandereFade / (float)100; float single46 = yandereFade5; Color leftYandereEye1 = this.LeftYandereEye.material.color; Color color15 = leftYandereEye1; float single47 = single46; float single48 = single47; color15.b = single47; Color color16 = color15; Color color17 = color16; this.LeftYandereEye.material.color = color16; if (this.Talking) { if (this.TargetStudent != null) { float targetStudent = this.TargetStudent.transform.position.x; float single49 = this.transform.position.y; Vector3 targetStudent1 = this.TargetStudent.transform.position; this.targetRotation = Quaternion.LookRotation(new Vector3(targetStudent, single49, targetStudent1.z) - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); } if (this.Interaction == 0) { this.CharacterAnimation.CrossFade(this.IdleAnim); } else if (this.Interaction == 1) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_00"].time >= this.CharacterAnimation["f02_greet_00"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 1; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_00"); if (this.TargetStudent.Witnessed == "Insanity" || this.TargetStudent.Witnessed == "Weapon and Blood and Insanity" || this.TargetStudent.Witnessed == "Weapon and Insanity" || this.TargetStudent.Witnessed == "Blood and Insanity") { this.Subtitle.UpdateLabel("Insanity Apology", 0, (float)3); } else if (this.TargetStudent.Witnessed == "Weapon and Blood") { this.Subtitle.UpdateLabel("Weapon and Blood Apology", 0, (float)3); } else if (this.TargetStudent.Witnessed == "Weapon") { this.Subtitle.UpdateLabel("Weapon Apology", 0, (float)3); } else if (this.TargetStudent.Witnessed == "Blood") { this.Subtitle.UpdateLabel("Blood Apology", 0, (float)3); } else if (this.TargetStudent.Witnessed == "Lewd") { this.Subtitle.UpdateLabel("Lewd Apology", 0, (float)3); } else if (this.TargetStudent.Witnessed == "Accident") { this.Subtitle.UpdateLabel("Accident Apology", 0, (float)3); } } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 2) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 2; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_01"); this.Subtitle.UpdateLabel("Player Compliment", 0, (float)3); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 3) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_lookdown_00"].time >= this.CharacterAnimation["f02_lookdown_00"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 3; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_lookdown_00"); this.Subtitle.UpdateLabel("Player Gossip", 0, (float)3); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 4) { if (this.TalkTimer != (float)2) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_00"].time >= this.CharacterAnimation["f02_greet_00"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 4; this.TargetStudent.TalkTimer = (float)2; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_00"); this.Subtitle.UpdateLabel("Player Farewell", 0, (float)2); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 6) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 6; this.TargetStudent.TalkTimer = (float)2; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_01"); this.Subtitle.UpdateLabel("Player Follow", 0, (float)3); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 7) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_lookdown_00"].time >= this.CharacterAnimation["f02_lookdown_00"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 7; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_lookdown_00"); this.Subtitle.UpdateLabel("Player Leave", 0, (float)3); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 8) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_lookdown_00"].time >= this.CharacterAnimation["f02_lookdown_00"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 8; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_lookdown_00"); this.Subtitle.UpdateLabel("Player Distract", 0, (float)3); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 17) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 17; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_01"); this.Subtitle.UpdateLabel("Player Love", 0, (float)3); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 18) { if (this.TalkTimer != (float)3) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 18; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_01"); this.Subtitle.UpdateLabel("Player Love", 2, (float)3); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 19) { if (this.TalkTimer != (float)5) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 19; this.TargetStudent.TalkTimer = (float)3; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_01"); if (this.TargetStudent.Male) { this.Subtitle.UpdateLabel("Player Love", 4, (float)5); } else { this.Subtitle.UpdateLabel("Player Love", 3, (float)5); } } this.TalkTimer = this.TalkTimer - Time.deltaTime; } else if (this.Interaction == 20) { if (this.TalkTimer != (float)5) { if (Input.GetButtonDown("A")) { this.TalkTimer = (float)0; } if (this.CharacterAnimation["f02_greet_01"].time >= this.CharacterAnimation["f02_greet_01"].length) { this.CharacterAnimation.CrossFade(this.IdleAnim); } if (this.TalkTimer <= (float)0) { this.TargetStudent.Interaction = 20; this.TargetStudent.TalkTimer = (float)5; this.Interaction = 0; } } else { this.CharacterAnimation.CrossFade("f02_greet_01"); this.Subtitle.UpdateLabel("Player Love", 5, (float)5); } this.TalkTimer = this.TalkTimer - Time.deltaTime; } } if (this.Attacking) { if (this.TargetStudent != null) { float targetStudent2 = this.TargetStudent.transform.position.x; float single50 = this.transform.position.y; Vector3 targetStudent3 = this.TargetStudent.transform.position; this.targetRotation = Quaternion.LookRotation(new Vector3(targetStudent2, single50, targetStudent3.z) - this.transform.position); this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10); } if (this.Drown) { this.MoveTowardsTarget(this.TargetStudent.transform.position + (this.TargetStudent.transform.forward * -0.0001f)); this.CharacterAnimation.CrossFade(this.DrownAnim); if (this.CharacterAnimation[this.DrownAnim].time > this.CharacterAnimation[this.DrownAnim].length) { this.TargetStudent.Dead = true; this.Attacking = false; this.CanMove = true; this.Drown = false; if (PlayerPrefs.GetInt("PantiesEquipped") != 10) { this.Sanity = this.Sanity - (float)20 * this.Numbness; } else { this.Sanity = this.Sanity - (float)10 * this.Numbness; } } } else if (this.RoofPush) { Transform transforms1 = this.CameraTarget; Vector3 cameraTarget3 = this.CameraTarget.position; float hips6 = this.Hips.position.x; float single51 = this.transform.position.y + (float)1; Vector3 hips7 = this.Hips.position; transforms1.position = Vector3.MoveTowards(cameraTarget3, new Vector3(hips6, single51, hips7.z), Time.deltaTime * (float)10); this.MoveTowardsTarget(this.TargetStudent.transform.position + (this.TargetStudent.transform.forward * (float)-1)); this.CharacterAnimation.CrossFade("f02_roofPushA_00"); if (this.CharacterAnimation["f02_roofPushA_00"].time > 4.33333349f) { if (this.Shoes[0].active) { GameObject gameObject3 = (GameObject)Object.Instantiate(this.ShoePair, this.transform.position + new Vector3(-1.6f, 0.045f, (float)0), Quaternion.identity); int num6 = -90; int num7 = num6; Vector3 vector343 = gameObject3.transform.eulerAngles; Vector3 vector344 = vector343; float single52 = (float)num7; float single53 = single52; vector344.y = single52; Vector3 vector345 = vector344; Vector3 vector346 = vector345; gameObject3.transform.eulerAngles = vector345; this.Shoes[0].active = false; this.Shoes[1].active = false; } } else if (this.CharacterAnimation["f02_roofPushA_00"].time > 2.16666675f && !this.Shoes[0].active) { this.TargetStudent.RemoveShoes(); this.Shoes[0].active = true; this.Shoes[1].active = true; } if (this.CharacterAnimation["f02_roofPushA_00"].time > this.CharacterAnimation["f02_roofPushA_00"].length) { this.CameraTarget.localPosition = new Vector3((float)0, (float)1, (float)0); this.TargetStudent.Dead = true; this.Attacking = false; this.RoofPush = false; this.CanMove = true; this.Sanity = this.Sanity - (float)20 * this.Numbness; } if (Input.GetButtonDown("B")) { this.SplashCamera.Show = true; this.SplashCamera.MyCamera.enabled = true; this.SplashCamera.transform.position = new Vector3((float)-33, 1.35f, (float)30); this.SplashCamera.transform.eulerAngles = new Vector3((float)0, (float)135, (float)0); } } else if (this.TargetStudent.Teacher) { this.CharacterAnimation.CrossFade("f02_counterA_00"); float targetStudent4 = this.TargetStudent.transform.position.y; float single54 = targetStudent4; Vector3 character = this.Character.transform.position; Vector3 vector347 = character; float single55 = single54; float single56 = single55; vector347.y = single55; Vector3 vector348 = vector347; Vector3 vector349 = vector348; this.Character.transform.position = vector348; } else if (!this.SanityBased) { if (this.Weapon[this.Equipped].WeaponID == 11) { this.CharacterAnimation.CrossFade("CyborgNinja_Slash"); if (this.CharacterAnimation["CyborgNinja_Slash"].time == (float)0) { this.TargetStudent.CharacterAnimation[this.TargetStudent.PhoneAnim].weight = (float)0; this.Weapon[this.Equipped].gameObject.audio.Play(); } if (this.CharacterAnimation["CyborgNinja_Slash"].time >= this.CharacterAnimation["CyborgNinja_Slash"].length) { this.Bloodiness = this.Bloodiness + (float)20; this.UpdateBlood(); this.StainWeapon(); this.CharacterAnimation["CyborgNinja_Slash"].time = (float)0; this.CharacterAnimation.Stop("CyborgNinja_Slash"); this.CharacterAnimation.CrossFade(this.IdleAnim); this.Attacking = false; if (this.Noticed) { this.Weapon[this.Equipped].Drop(); } else { this.CanMove = true; } } } else if (this.Weapon[this.Equipped].WeaponID == 7) { this.CharacterAnimation.CrossFade("f02_buzzSawKill_A_00"); if (this.CharacterAnimation["f02_buzzSawKill_A_00"].time == (float)0) { this.TargetStudent.CharacterAnimation[this.TargetStudent.PhoneAnim].weight = (float)0; this.Weapon[this.Equipped].gameObject.audio.Play(); } if (this.AttackPhase == 1) { if (this.CharacterAnimation["f02_buzzSawKill_A_00"].time > 0.33333f) { this.TargetStudent.LiquidProjector.enabled = true; this.Weapon[this.Equipped].Effect(); this.StainWeapon(); this.TargetStudent.LiquidProjector.material.mainTexture = this.BloodTextures[1]; this.Bloodiness = this.Bloodiness + (float)20; this.UpdateBlood(); this.AttackPhase = this.AttackPhase + 1; } } else if (this.AttackPhase < 6 && this.CharacterAnimation["f02_buzzSawKill_A_00"].time > 0.33333f * (float)this.AttackPhase) { this.TargetStudent.LiquidProjector.material.mainTexture = this.BloodTextures[this.AttackPhase]; this.Bloodiness = this.Bloodiness + (float)20; this.UpdateBlood(); this.AttackPhase = this.AttackPhase + 1; } if (this.CharacterAnimation["f02_buzzSawKill_A_00"].time > this.CharacterAnimation["f02_buzzSawKill_A_00"].length) { if (this.TargetStudent == this.StudentManager.Reporter) { this.StudentManager.Reporter = null; } this.CharacterAnimation["f02_buzzSawKill_A_00"].time = (float)0; this.CharacterAnimation.Stop("f02_buzzSawKill_A_00"); this.CharacterAnimation.CrossFade(this.IdleAnim); this.MyController.radius = 0.2f; this.Attacking = false; this.AttackPhase = 1; this.Sanity = this.Sanity - (float)20 * this.Numbness; this.UpdateSanity(); this.TargetStudent.Dead = true; this.TargetStudent.BecomeRagdoll(); if (this.Noticed) { this.Weapon[this.Equipped].Drop(); } else { this.CanMove = true; } } } else if (this.Weapon[this.Equipped].Concealable) { if (this.AttackPhase != 1) { this.AttackTimer = this.AttackTimer + Time.deltaTime; if (this.AttackTimer > 0.3f) { if (!this.CanTranq) { this.StainWeapon(); } this.MyController.radius = 0.2f; this.Attacking = false; this.AttackPhase = 1; this.AttackTimer = (float)0; if (this.Noticed) { this.Weapon[this.Equipped].Drop(); } else { this.CanMove = true; } } } else { this.CharacterAnimation.CrossFade("f02_stab_00"); if (this.CharacterAnimation["f02_stab_00"].time > this.CharacterAnimation["f02_stab_00"].length * 0.35f) { this.CharacterAnimation.CrossFade(this.IdleAnim); if (!this.CanTranq) { this.TargetStudent.BloodSpray.active = true; this.TargetStudent.Dead = true; this.Bloodiness = this.Bloodiness + (float)20; this.UpdateBlood(); } else { this.TargetStudent.Tranquil = true; this.CanTranq = false; this.Followers = this.Followers - 1; } if (this.TargetStudent == this.StudentManager.Reporter) { this.StudentManager.Reporter = null; } AudioSource.PlayClipAtPoint(this.Stabs[Random.Range(0, Extensions[this.Stabs])], this.transform.position + Vector3.up); Object.Destroy(this.TargetStudent.DeathScream); this.AttackPhase = 2; this.Sanity = this.Sanity - (float)20 * this.Numbness; this.UpdateSanity(); if (this.Weapon[this.Equipped].WeaponID == 8) { this.TargetStudent.Ragdoll.Sacrifice = true; if (PlayerPrefs.GetInt("Paranormal") == 1) { this.Weapon[this.Equipped].Effect(); } } } } } else if (this.AttackPhase == 1) { this.CharacterAnimation.CrossFade("f02_swingA_00"); if (this.CharacterAnimation["f02_swingA_00"].time > this.CharacterAnimation["f02_swingA_00"].length * 0.3f) { if (this.TargetStudent == this.StudentManager.Reporter) { this.StudentManager.Reporter = null; } Object.Destroy(this.TargetStudent.DeathScream); this.Weapon[this.Equipped].Effect(); this.AttackPhase = 2; this.Bloodiness = this.Bloodiness + (float)20; this.UpdateBlood(); this.StainWeapon(); this.Sanity = this.Sanity - (float)20 * this.Numbness; this.UpdateSanity(); } } else if (this.CharacterAnimation["f02_swingA_00"].time >= this.CharacterAnimation["f02_swingA_00"].length * 0.9f) { this.CharacterAnimation.CrossFade(this.IdleAnim); this.TargetStudent.Dead = true; this.TargetStudent.BecomeRagdoll(); this.MyController.radius = 0.2f; this.Attacking = false; this.AttackPhase = 1; this.AttackTimer = (float)0; if (this.Noticed) { this.Weapon[this.Equipped].Drop(); } else { this.CanMove = true; } } } } if (!this.CanMove || this.Attacking || this.Dragging || !(this.PickUp == null) || this.Aiming || this.Crawling || this.Possessed || this.Carrying || this.CirnoWings.active || this.LaughIntensity >= (float)16) { this.CharacterAnimation["f02_yanderePose_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_yanderePose_00"].weight, (float)0, Time.deltaTime * (float)10); this.Slouch = Mathf.Lerp(this.Slouch, (float)0, Time.deltaTime * (float)10); } else { this.CharacterAnimation["f02_yanderePose_00"].weight = Mathf.Lerp(this.CharacterAnimation["f02_yanderePose_00"].weight, (float)1 - this.Sanity / (float)100, Time.deltaTime * (float)10); if (this.Hairstyle != 2 || !this.Crouching) { this.Slouch = Mathf.Lerp(this.Slouch, (float)5 * ((float)1 - this.Sanity / (float)100), Time.deltaTime * (float)10); } else { this.Slouch = Mathf.Lerp(this.Slouch, (float)0, Time.deltaTime * (float)20); } } if (!this.Noticed) { float sanity = (float)1 - this.Sanity / (float)100; float single57 = sanity; Color rightYandereEye2 = this.RightYandereEye.material.color; Color color18 = rightYandereEye2; float single58 = single57; float single59 = single58; color18.a = single58; Color color19 = color18; Color color20 = color19; this.RightYandereEye.material.color = color19; float sanity1 = (float)1 - this.Sanity / (float)100; float single60 = sanity1; Color leftYandereEye2 = this.LeftYandereEye.material.color; Color color21 = leftYandereEye2; float single61 = single60; float single62 = single61; color21.a = single61; Color color22 = color21; Color color23 = color22; this.LeftYandereEye.material.color = color22; this.EyeShrink = Mathf.Lerp(this.EyeShrink, 0.5f * ((float)1 - this.Sanity / (float)100), Time.deltaTime * (float)10); } if (this.Sanity < (float)100) { this.TwitchTimer = this.TwitchTimer + Time.deltaTime; if (this.TwitchTimer > this.NextTwitch) { this.Twitch.x = ((float)1 - this.Sanity / (float)100) * Random.Range(-10f, 10f); this.Twitch.y = ((float)1 - this.Sanity / (float)100) * Random.Range(-10f, 10f); this.Twitch.z = ((float)1 - this.Sanity / (float)100) * Random.Range(-10f, 10f); this.NextTwitch = Random.Range((float)0, 1f); this.TwitchTimer = (float)0; } this.Twitch = Vector3.Lerp(this.Twitch, new Vector3((float)0, (float)0, (float)0), Time.deltaTime * (float)10); } if (this.NearBodies > 0) { if (!this.CorpseWarning) { this.NotificationManager.DisplayNotification("Body"); this.StudentManager.UpdateStudents(); this.CorpseWarning = true; } } else if (this.CorpseWarning) { this.StudentManager.UpdateStudents(); this.CorpseWarning = false; } if (!this.Aiming && Time.timeScale > (float)0 && Input.GetKeyDown("escape")) { this.PauseScreen.JumpToQuit(); } if (Input.GetKeyDown("p")) { this.CyborgParts[1].active = false; this.KONGlasses.active = false; this.EyepatchR.active = false; this.EyepatchL.active = false; this.EyewearID = this.EyewearID + 1; if (this.EyewearID == 1) { this.EyepatchR.active = true; } else if (this.EyewearID == 2) { this.EyepatchL.active = true; } else if (this.EyewearID == 3) { this.EyepatchR.active = true; this.EyepatchL.active = true; } else if (this.EyewearID == 4) { this.KONGlasses.active = true; } else if (this.EyewearID != 5) { this.EyewearID = 0; } else if (!this.CyborgParts[2].active) { this.EyewearID = 0; } else { this.CyborgParts[1].active = true; } } if (Input.GetKeyDown("h")) { this.Hairstyle = this.Hairstyle + 1; this.UpdateHair(); } if (Input.GetKeyDown("o") && !this.EasterEggMenu.active) { if (this.AccessoryGroup != null) { this.AccessoryGroup.DeactivateParts(); } if (this.AccessoryID > 0) { this.Accessories[this.AccessoryID].active = false; } this.AccessoryID = this.AccessoryID + 1; if (this.AccessoryID > this.Accessories.Length - 1) { this.AccessoryID = 0; } if (this.AccessoryID > 0) { this.Accessories[this.AccessoryID].active = true; this.AccessoryGroup = (AccessoryGroupScript)this.Accessories[this.AccessoryID].GetComponent(typeof(AccessoryGroupScript)); if (this.AccessoryGroup != null) { this.AccessoryGroup.ActivateParts(); } } } if (!this.DebugMenu.active) { if (Input.GetKeyDown("-")) { if (Time.timeScale >= (float)6) { Time.timeScale = Time.timeScale - (float)5; } else { Time.timeScale = (float)1; } } if (Input.GetKeyDown("=")) { if (Time.timeScale >= (float)5) { Time.timeScale = Time.timeScale + (float)5; if (Time.timeScale > (float)25) { Time.timeScale = (float)25; } } else { Time.timeScale = (float)5; } } } if (Input.GetKey(".")) { this.BreastSize = this.BreastSize + Time.deltaTime; if (this.BreastSize > (float)2) { this.BreastSize = (float)2; } this.RightBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize); this.LeftBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize); } if (Input.GetKey(",")) { this.BreastSize = this.BreastSize - Time.deltaTime; if (this.BreastSize < 0.5f) { this.BreastSize = 0.5f; } this.RightBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize); this.LeftBreast.localScale = new Vector3(this.BreastSize, this.BreastSize, this.BreastSize); } if (this.CanMove && !this.Egg && this.transform.position.y < (float)1000) { if (Input.GetKeyDown("/")) { this.DebugMenu.active = false; if (this.EasterEggMenu.active) { this.EasterEggMenu.active = false; } else { this.EasterEggMenu.active = true; } } if (this.EasterEggMenu.active && !this.Egg) { if (Input.GetKeyDown("p")) { this.Punish(); } else if (Input.GetKeyDown("z")) { this.Slend(); } else if (Input.GetKeyDown("b")) { this.Sukeban(); } else if (Input.GetKeyDown("c")) { this.Cirno(); } else if (Input.GetKeyDown("h")) { this.EmptyHands(); this.Hate(); } else if (Input.GetKeyDown("t")) { this.StudentManager.AttackOnTitan(); this.AttackOnTitan(); } else if (Input.GetKeyDown("g")) { this.GaloSengen(); } else if (Input.GetKeyDown("j")) { this.Jojo(); } else if (Input.GetKeyDown("k")) { this.EasterEggMenu.active = false; this.StudentManager.Kong(); this.DK = true; } else if (Input.GetKeyDown("l")) { this.Agent(); } else if (Input.GetKeyDown("n")) { this.Nude(); } else if (Input.GetKeyDown("s")) { this.EasterEggMenu.active = false; this.Egg = true; this.StudentManager.Spook(); } else if (Input.GetKeyDown("f")) { this.EasterEggMenu.active = false; this.Falcon(); } else if (Input.GetKeyDown("x")) { this.EasterEggMenu.active = false; this.X(); } else if (Input.GetKeyDown("o")) { this.EasterEggMenu.active = false; this.Punch(); } else if (Input.GetKeyDown("v")) { this.EasterEggMenu.active = false; this.Long(); } else if (Input.GetKeyDown("u")) { this.EasterEggMenu.active = false; this.BadTime(); } else if (Input.GetKeyDown("y")) { this.EasterEggMenu.active = false; this.CyborgNinja(); } else if (Input.GetKeyDown("e")) { this.EasterEggMenu.active = false; this.Ebola(); } else if (Input.GetKeyDown("q")) { this.EasterEggMenu.active = false; this.Samus(); } else if (Input.GetKeyDown("w")) { this.EasterEggMenu.active = false; this.Witch(); } else if (Input.GetKeyDown("r")) { this.EasterEggMenu.active = false; this.Pose(); } if (Input.GetKeyDown("d")) { if (!this.Copyrights.active) { this.Jukebox.MuteCopyrights = false; this.Copyrights.active = true; } else { this.Jukebox.MuteCopyrights = true; this.Copyrights.active = false; } } } } if (this.transform.position.y < (float)0) { int num8 = 0; int num9 = num8; Vector3 vector350 = this.transform.position; Vector3 vector351 = vector350; float single63 = (float)num9; float single64 = single63; vector351.y = single63; Vector3 vector352 = vector351; Vector3 vector353 = vector352; this.transform.position = vector352; } if (this.transform.position.z < -99.5f) { float single65 = -99.5f; float single66 = single65; Vector3 vector354 = this.transform.position; Vector3 vector355 = vector354; float single67 = single66; float single68 = single67; vector355.z = single67; Vector3 vector356 = vector355; Vector3 vector357 = vector356; this.transform.position = vector356; } int num10 = 0; int num11 = num10; Vector3 vector358 = this.transform.eulerAngles; Vector3 vector359 = vector358; float single69 = (float)num11; float single70 = single69; vector359.x = single69; Vector3 vector360 = vector359; Vector3 vector361 = vector360; this.transform.eulerAngles = vector360; int num12 = 0; int num13 = num12; Vector3 vector362 = this.transform.eulerAngles; Vector3 vector363 = vector362; float single71 = (float)num13; float single72 = single71; vector363.z = single71; Vector3 vector364 = vector363; Vector3 vector365 = vector364; this.transform.eulerAngles = vector364; } if (Input.GetKeyDown(KeyCode.Keypad5)) { this.CharacterAnimation.CrossFade("f02_bucketTrip_00"); this.Tripping = true; this.CanMove = false; } }