SHARE
TWEET

Untitled

a guest Feb 17th, 2016 96 Never
  1. 10c10
  2. <   private Quaternion targetRotation;
  3. ---
  4. >   public Quaternion targetRotation;
  5. 47a48,49
  6. >   public CosmeticScript Cosmetic;
  7. >
  8. 80,83d81
  9. <   public Texture DrillTexture;
  10. <
  11. <   public Texture HairTexture;
  12. <
  13. 86,87d83
  14. <   public Color EyeColor;
  15. <
  16. 90,111d85
  17. <   public Renderer MaleHairRenderer;
  18. <
  19. <   public Renderer PonyRenderer;
  20. <
  21. <   public Renderer NewLongHair;
  22. <
  23. <   public Renderer ShortHair;
  24. <
  25. <   public Renderer TwinPony;
  26. <
  27. <   public Renderer LongHair;
  28. <
  29. <   public Renderer PigtailR;
  30. <
  31. <   public Renderer PigtailL;
  32. <
  33. <   public Renderer Drills;
  34. <
  35. <   public Renderer EyeR;
  36. <
  37. <   public Renderer EyeL;
  38. <
  39. 116,117d89
  40. <   public Transform LongHairBone;
  41. <
  42. 125a98,101
  43. >   public Transform RightDrill;
  44. >
  45. >   public Transform LeftDrill;
  46. >
  47. 132,136c108
  48. <   public Transform DrillR;
  49. <
  50. <   public Transform DrillL;
  51. <
  52. <   public Transform HairF;
  53. ---
  54. >   public Transform Eyes;
  55. 140,141d111
  56. <   public Transform Eyes;
  57. <
  58. 144,149d113
  59. <   public Texture[] FemaleUniformTextures;
  60. <
  61. <   public Texture[] MaleUniformTextures;
  62. <
  63. <   public GameObject[] MaleHairstyles;
  64. <
  65. 152,153d115
  66. <   public OutlineScript[] Outlines;
  67. <
  68. 156c118
  69. <   public GameObject[] Chopsticks;
  70. ---
  71. >   public OutlineScript[] Outlines;
  72. 158c120
  73. <   public GameObject[] OccultHair;
  74. ---
  75. >   public GameObject[] Chopsticks;
  76. 162,169d123
  77. <   public GameObject[] IrisLight;
  78. <
  79. <   public Texture[] FaceTextures;
  80. <
  81. <   public Texture[] SkinTextures;
  82. <
  83. <   public Mesh[] FemaleUniforms;
  84. <
  85. 172,175d125
  86. <   public GameObject[] Eyewear;
  87. <
  88. <   public Mesh[] MaleUniforms;
  89. <
  90. 202c152
  91. <   public GameObject ShinyGlasses;
  92. ---
  93. >   public GameObject RightEmptyEye;
  94. 204c154
  95. <   public GameObject DeathScream;
  96. ---
  97. >   public GameObject LeftEmptyEye;
  98. 206c156
  99. <   public GameObject TeacherHair;
  100. ---
  101. >   public GameObject DeathScream;
  102. 218,223d167
  103. <   public GameObject CirnoHair;
  104. <
  105. <   public GameObject PippiHair;
  106. <
  107. <   public GameObject Eyepatch;
  108. <
  109. 226,229d169
  110. <   public GameObject Bandage;
  111. <
  112. <   public GameObject Bandana;
  113. <
  114. 256,257d195
  115. <   public bool VeryLongHair;
  116. <
  117. 276,277d213
  118. <   public bool HidePony;
  119. <
  120. 307a244,245
  121. >   public bool GoAway;
  122. >
  123. 337a276,277
  124. >   public bool CameraReacting;
  125. >
  126. 361a302,303
  127. >   public float CameraPoseTimer;
  128. >
  129. 363a306,307
  130. >   public float ReactionTimer;
  131. >
  132. 365a310,311
  133. >   public float GoAwayTimer;
  134. >
  135. 373a320,321
  136. >   public float StuckTimer;
  137. >
  138. 397a346,357
  139. >   public int CameraReactPhase;
  140. >
  141. >   public int SplashPhase;
  142. >
  143. >   public int BathePhase;
  144. >
  145. >   public int ClubPhase;
  146. >
  147. >   public int TaskPhase;
  148. >
  149. >   public int Phase;
  150. >
  151. 402c362
  152. <   public int Interaction;
  153. ---
  154. >   public int GossipBonus;
  155. 404c364
  156. <   public int SplashPhase;
  157. ---
  158. >   public int Interaction;
  159. 406c366
  160. <   public int BathePhase;
  161. ---
  162. >   public int RepRecovery;
  163. 412,414c372
  164. <   public int ClubPhase;
  165. <
  166. <   public int TaskPhase;
  167. ---
  168. >   public int RepBonus;
  169. 420,421d377
  170. <   public int Phase;
  171. <
  172. 453a410,411
  173. >   public string EvilWitnessAnim;
  174. >
  175. 525a484,505
  176. >   public string CowardAnim;
  177. >
  178. >   public string EvilAnim;
  179. >
  180. >   public string SocialReportAnim;
  181. >
  182. >   public string SocialFearAnim;
  183. >
  184. >   public string SocialTerrorAnim;
  185. >
  186. >   public string BuzzSawDeathAnim;
  187. >
  188. >   public string[] CameraAnims;
  189. >
  190. >   public string[] SocialAnims;
  191. >
  192. >   public string[] CowardAnims;
  193. >
  194. >   public string[] EvilAnims;
  195. >
  196. >   public string[] HeroAnims;
  197. >
  198. 547a528,529
  199. >   public Vector3 LastPosition;
  200. >
  201. 552,553d533
  202. <   public Transform Ponytail;
  203. <
  204. 558,561d537
  205. <   public Transform HairL;
  206. <
  207. <   public Transform HairR;
  208. <
  209. 564,575d539
  210. <   public string HairColor;
  211. <
  212. <   public Mesh TeacherMesh;
  213. <
  214. <   public GameObject TeacherGlasses;
  215. <
  216. <   public Texture TeacherBodyTexture;
  217. <
  218. <   public Texture TeacherFaceTexture;
  219. <
  220. <   public Renderer TeacherHairRenderer;
  221. <
  222. 578,579d541
  223. <   public Texture FaceTexture;
  224. <
  225. 590,591d551
  226. <   public Mesh SchoolUniform;
  227. <
  228. 603a564,567
  229. >   public Texture TitanBodyTexture;
  230. >
  231. >   public Texture TitanFaceTexture;
  232. >
  233. 630a595
  234. >       this.EvilWitnessAnim = string.Empty;
  235. 666a632,637
  236. >       this.CowardAnim = string.Empty;
  237. >       this.EvilAnim = string.Empty;
  238. >       this.SocialReportAnim = string.Empty;
  239. >       this.SocialFearAnim = string.Empty;
  240. >       this.SocialTerrorAnim = string.Empty;
  241. >       this.BuzzSawDeathAnim = string.Empty;
  242. 702a674,690
  243. >       if (this.Persona == 1 || this.Persona == 4)
  244. >       {
  245. >           this.CameraAnims = this.CowardAnims;
  246. >       }
  247. >       if (this.Persona == 2 || this.Persona == 3 || this.Persona == 9)
  248. >       {
  249. >           this.CameraAnims = this.HeroAnims;
  250. >       }
  251. >       else if (this.Persona == 5)
  252. >       {
  253. >           this.CameraAnims = this.EvilAnims;
  254. >       }
  255. >       else if (this.Persona == 6)
  256. >       {
  257. >           this.CameraAnims = this.SocialAnims;
  258. >       }
  259. >       this.Phone.active = true;
  260. 737d724
  261. <           this.TeacherGlasses.active = false;
  262. 740,741d726
  263. <           this.UpdateHair();
  264. <           this.SetColors();
  265. 773,780c758,759
  266. <               int num = 0;
  267. <               Color color = this.EyeR.material.color;
  268. <               float num2 = color.a = (float)num;
  269. <               Color color2 = this.EyeR.material.color = color;
  270. <               int num3 = 0;
  271. <               Color color3 = this.EyeL.material.color;
  272. <               float num4 = color3.a = (float)num3;
  273. <               Color color4 = this.EyeL.material.color = color3;
  274. ---
  275. >               UnityEngine.Object.Destroy(this.RightEmptyEye);
  276. >               UnityEngine.Object.Destroy(this.LeftEmptyEye);
  277. 783a763,771
  278. >           if (!this.Teacher)
  279. >           {
  280. >               if (this.Persona == 5)
  281. >               {
  282. >                   this.ScaredAnim = this.EvilWitnessAnim;
  283. >               }
  284. >               this.Character.animation[this.CameraAnims[1]].speed = (float)2;
  285. >               this.Character.animation[this.CameraAnims[3]].speed = (float)2;
  286. >           }
  287. 811d798
  288. <           this.SetColors();
  289. 825,838d811
  290. <       if (this.Accessory == "Eyepatch")
  291. <       {
  292. <           this.Eyepatch.active = true;
  293. <       }
  294. <       else if (this.Accessory == "Bandage")
  295. <       {
  296. <           this.Bandage.active = true;
  297. <       }
  298. <       else if (this.Accessory == "ShinyGlasses")
  299. <       {
  300. <           this.ShinyGlasses.active = true;
  301. <           this.IrisLight[0].active = false;
  302. <           this.IrisLight[1].active = false;
  303. <       }
  304. 876d848
  305. <           this.Bandana.active = true;
  306. 905,908d876
  307. <       if (this.Club != 6)
  308. <       {
  309. <           this.Bandana.active = false;
  310. <       }
  311. 929,932d896
  312. <           if (PlayerPrefs.GetInt("SenpaiEyeWear") > 0)
  313. <           {
  314. <               this.Eyewear[PlayerPrefs.GetInt("SenpaiEyeWear")].active = true;
  315. <           }
  316. 959,963c923
  317. <           this.Reputation.PendingRep = this.Reputation.PendingRep - (float)10;
  318. <           this.PendingRep -= (float)10;
  319. <           this.Grudge = true;
  320. <           this.ID = 0;
  321. <           while (this.ID < Extensions.get_length(this.Outlines))
  322. ---
  323. >           if (this.Persona != 4 && this.Persona != 5)
  324. 965,966c925,932
  325. <               this.Outlines[this.ID].color = new Color((float)1, (float)1, (float)0, (float)1);
  326. <               this.ID++;
  327. ---
  328. >               this.Reputation.PendingRep = this.Reputation.PendingRep - (float)10;
  329. >               this.PendingRep -= (float)10;
  330. >               this.ID = 0;
  331. >               while (this.ID < Extensions.get_length(this.Outlines))
  332. >               {
  333. >                   this.Outlines[this.ID].color = new Color((float)1, (float)1, (float)0, (float)1);
  334. >                   this.ID++;
  335. >               }
  336. 967a934
  337. >           this.Grudge = true;
  338. 969c936
  339. <       if ((this.StudentID != 21 && this.StudentID != 26) || this.Club == 0)
  340. ---
  341. >       if (this.Club != 0 && (this.StudentID == 21 || this.StudentID == 26))
  342. 971c938
  343. <           this.Armband.active = false;
  344. ---
  345. >           this.Armband.active = true;
  346. 989a957
  347. >                       this.GoAway = false;
  348. 1131c1099
  349. <                           if (this.Actions[this.Phase] == 0)
  350. ---
  351. >                           if (!this.GoAway)
  352. 1133,1137c1101
  353. <                               this.Character.animation.CrossFade(this.IdleAnim);
  354. <                           }
  355. <                           else if (this.Actions[this.Phase] == 1)
  356. <                           {
  357. <                               if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
  358. ---
  359. >                               if (this.Actions[this.Phase] == 0)
  360. 1141c1105
  361. <                               else
  362. ---
  363. >                               else if (this.Actions[this.Phase] == 1)
  364. 1143,1144c1107,1111
  365. <                                   this.Character.animation.CrossFade(this.RandomAnim);
  366. <                                   if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
  367. ---
  368. >                                   if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
  369. >                                   {
  370. >                                       this.Character.animation.CrossFade(this.IdleAnim);
  371. >                                   }
  372. >                                   else
  373. 1146c1113,1117
  374. <                                       this.PickRandomAnim();
  375. ---
  376. >                                       this.Character.animation.CrossFade(this.RandomAnim);
  377. >                                       if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
  378. >                                       {
  379. >                                           this.PickRandomAnim();
  380. >                                       }
  381. 1149,1168c1120
  382. <                           }
  383. <                           else if (this.Actions[this.Phase] == 2)
  384. <                           {
  385. <                               this.Character.animation.CrossFade(this.GameAnim);
  386. <                           }
  387. <                           else if (this.Actions[this.Phase] == 3)
  388. <                           {
  389. <                               this.Character.animation.CrossFade(this.SadSitAnim);
  390. <                           }
  391. <                           else if (this.Actions[this.Phase] == 4)
  392. <                           {
  393. <                               this.Character.animation.CrossFade(this.BrokenAnim);
  394. <                           }
  395. <                           else if (this.Actions[this.Phase] == 5)
  396. <                           {
  397. <                               this.Character.animation.CrossFade(this.RelaxAnim);
  398. <                           }
  399. <                           else if (this.Actions[this.Phase] == 6)
  400. <                           {
  401. <                               if (this.DressCode && this.ClubAttire)
  402. ---
  403. >                               else if (this.Actions[this.Phase] == 2)
  404. 1170c1122
  405. <                                   this.Character.animation.CrossFade(this.IdleAnim);
  406. ---
  407. >                                   this.Character.animation.CrossFade(this.GameAnim);
  408. 1172c1124
  409. <                               else
  410. ---
  411. >                               else if (this.Actions[this.Phase] == 3)
  412. 1174c1126
  413. <                                   this.Character.animation.CrossFade(this.SitAnim);
  414. ---
  415. >                                   this.Character.animation.CrossFade(this.SadSitAnim);
  416. 1176,1183c1128
  417. <                           }
  418. <                           else if (this.Actions[this.Phase] == 7)
  419. <                           {
  420. <                               this.Character.animation.CrossFade(this.StalkAnim);
  421. <                           }
  422. <                           else if (this.Actions[this.Phase] == 8)
  423. <                           {
  424. <                               if (this.DressCode && !this.ClubAttire)
  425. ---
  426. >                               else if (this.Actions[this.Phase] == 4)
  427. 1185c1130
  428. <                                   this.Character.animation.CrossFade(this.IdleAnim);
  429. ---
  430. >                                   this.Character.animation.CrossFade(this.BrokenAnim);
  431. 1187c1132,1136
  432. <                               else
  433. ---
  434. >                               else if (this.Actions[this.Phase] == 5)
  435. >                               {
  436. >                                   this.Character.animation.CrossFade(this.RelaxAnim);
  437. >                               }
  438. >                               else if (this.Actions[this.Phase] == 6)
  439. 1189c1138,1145
  440. <                                   this.Character.animation.CrossFade(this.ClubAnim);
  441. ---
  442. >                                   if (this.DressCode && this.ClubAttire)
  443. >                                   {
  444. >                                       this.Character.animation.CrossFade(this.IdleAnim);
  445. >                                   }
  446. >                                   else
  447. >                                   {
  448. >                                       this.Character.animation.CrossFade(this.SitAnim);
  449. >                                   }
  450. 1191c1147
  451. <                               if (this.Club == 3 && this.StudentID != 26)
  452. ---
  453. >                               else if (this.Actions[this.Phase] == 7)
  454. 1193c1149
  455. <                                   this.OccultBook.active = true;
  456. ---
  457. >                                   this.Character.animation.CrossFade(this.StalkAnim);
  458. 1195,1198c1151
  459. <                           }
  460. <                           else if (this.Actions[this.Phase] == 9)
  461. <                           {
  462. <                               if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
  463. ---
  464. >                               else if (this.Actions[this.Phase] == 8)
  465. 1200c1153,1164
  466. <                                   this.Character.animation.CrossFade(this.IdleAnim);
  467. ---
  468. >                                   if (this.DressCode && !this.ClubAttire)
  469. >                                   {
  470. >                                       this.Character.animation.CrossFade(this.IdleAnim);
  471. >                                   }
  472. >                                   else
  473. >                                   {
  474. >                                       this.Character.animation.CrossFade(this.ClubAnim);
  475. >                                   }
  476. >                                   if (this.Club == 3 && this.StudentID != 26)
  477. >                                   {
  478. >                                       this.OccultBook.active = true;
  479. >                                   }
  480. 1202c1166
  481. <                               else
  482. ---
  483. >                               else if (this.Actions[this.Phase] == 9)
  484. 1204,1205c1168,1172
  485. <                                   this.Character.animation.CrossFade(this.RandomAnim);
  486. <                                   if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
  487. ---
  488. >                                   if (PlayerPrefs.GetFloat("SchoolAtmosphere") < 33.33333f)
  489. >                                   {
  490. >                                       this.Character.animation.CrossFade(this.IdleAnim);
  491. >                                   }
  492. >                                   else
  493. 1207c1174,1178
  494. <                                       this.PickRandomAnim();
  495. ---
  496. >                                       this.Character.animation.CrossFade(this.RandomAnim);
  497. >                                       if (this.Character.animation[this.RandomAnim].time >= this.Character.animation[this.RandomAnim].length)
  498. >                                       {
  499. >                                           this.PickRandomAnim();
  500. >                                       }
  501. 1210a1182,1193
  502. >                           else
  503. >                           {
  504. >                               this.Character.animation.CrossFade(this.IdleAnim);
  505. >                               this.GoAwayTimer += Time.deltaTime;
  506. >                               if (this.GoAwayTimer > (float)60)
  507. >                               {
  508. >                                   this.CurrentDestination = this.Destinations[this.Phase];
  509. >                                   this.Pathfinding.target = this.Destinations[this.Phase];
  510. >                                   this.GoAwayTimer = (float)0;
  511. >                                   this.GoAway = false;
  512. >                               }
  513. >                           }
  514. 1285,1286c1268,1272
  515. <                           this.Police.Witnesses = this.Police.Witnesses - 1;
  516. <                           this.Police.Show = true;
  517. ---
  518. >                           if (this.Persona != 4 && this.Persona != 5)
  519. >                           {
  520. >                               this.Police.Witnesses = this.Police.Witnesses - 1;
  521. >                               this.Police.Show = true;
  522. >                           }
  523. 1403c1389
  524. <                                   if (!this.Yandere.Armed)
  525. ---
  526. >                                   if (!this.Yandere.Armed || !this.Yandere.Weapon[this.Yandere.Equipped].Concealable)
  527. 1425a1412,1500
  528. >                           else if (this.Persona == 4)
  529. >                           {
  530. >                               this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  531. >                               this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  532. >                               this.Character.animation.CrossFade(this.CowardAnim);
  533. >                               this.ReactionTimer += Time.deltaTime;
  534. >                               if (this.ReactionTimer > (float)5)
  535. >                               {
  536. >                                   this.CurrentDestination = this.StudentManager.Exit;
  537. >                                   this.Pathfinding.target = this.StudentManager.Exit;
  538. >                               }
  539. >                           }
  540. >                           else if (this.Persona == 5)
  541. >                           {
  542. >                               this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  543. >                               this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  544. >                               this.Character.animation.CrossFade(this.EvilAnim);
  545. >                               this.ReactionTimer += Time.deltaTime;
  546. >                               if (this.ReactionTimer > (float)5)
  547. >                               {
  548. >                                   this.CurrentDestination = this.StudentManager.Exit;
  549. >                                   this.Pathfinding.target = this.StudentManager.Exit;
  550. >                               }
  551. >                           }
  552. >                           else if (this.Persona == 6)
  553. >                           {
  554. >                               if (this.ReportPhase == 1)
  555. >                               {
  556. >                                   this.targetRotation = Quaternion.LookRotation(this.Pathfinding.target.position - this.Pathfinding.target.forward - this.transform.position);
  557. >                                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  558. >                                   if (!this.Phone.active)
  559. >                                   {
  560. >                                       if (this.StudentManager.Reporter == null && !this.Police.Called)
  561. >                                       {
  562. >                                           this.Character.animation.CrossFade(this.SocialReportAnim);
  563. >                                           this.Subtitle.UpdateLabel("Social Report", 1, (float)5);
  564. >                                           this.StudentManager.Reporter = this;
  565. >                                           this.Phone.active = true;
  566. >                                       }
  567. >                                       else
  568. >                                       {
  569. >                                           this.ReportTimer = (float)5;
  570. >                                       }
  571. >                                   }
  572. >                                   this.ReportTimer += Time.deltaTime;
  573. >                                   if (this.ReportTimer > (float)5)
  574. >                                   {
  575. >                                       if (this.StudentManager.Reporter == this)
  576. >                                       {
  577. >                                           this.Police.Called = true;
  578. >                                           this.Police.Show = true;
  579. >                                       }
  580. >                                       this.Character.animation.CrossFade(this.ParanoidAnim);
  581. >                                       this.Phone.active = false;
  582. >                                       this.ReportPhase++;
  583. >                                   }
  584. >                               }
  585. >                               else if (this.ReportPhase == 2)
  586. >                               {
  587. >                                   if (this.WitnessedMurder)
  588. >                                   {
  589. >                                       this.LookForYandere();
  590. >                                   }
  591. >                               }
  592. >                               else if (this.ReportPhase == 3)
  593. >                               {
  594. >                                   this.Character.animation.CrossFade(this.SocialFearAnim);
  595. >                                   this.Subtitle.UpdateLabel("Social Fear", 1, (float)5);
  596. >                                   this.SpawnAlarmDisc();
  597. >                                   this.ReportPhase++;
  598. >                               }
  599. >                               else if (this.ReportPhase == 4)
  600. >                               {
  601. >                                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  602. >                                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  603. >                                   if (this.Yandere.Attacking)
  604. >                                   {
  605. >                                       this.LookForYandere();
  606. >                                   }
  607. >                               }
  608. >                               else if (this.ReportPhase == 5)
  609. >                               {
  610. >                                   this.Character.animation.CrossFade(this.SocialTerrorAnim);
  611. >                                   this.Subtitle.UpdateLabel("Social Terror", 1, (float)5);
  612. >                                   this.VisionCone.farClipPlane = (float)0;
  613. >                                   this.SpawnAlarmDisc();
  614. >                                   this.ReportPhase++;
  615. >                               }
  616. >                           }
  617. 1510a1586
  618. >                                           this.Police.Called = true;
  619. 1549,1553c1625,1626
  620. <                                   if (this.Yandere.Dragging || this.Yandere.Mopping || this.Yandere.PickUp != null)
  621. <                                   {
  622. <                                       this.Yandere.Mopping = false;
  623. <                                       this.Yandere.EmptyHands();
  624. <                                   }
  625. ---
  626. >                                   this.Yandere.Mopping = false;
  627. >                                   this.Yandere.EmptyHands();
  628. 1778,1781c1851,1854
  629. <                                           AudioSource arg_22F1_0 = this.LightSwitch.audio;
  630. <                                           object arg_22EC_0;
  631. <                                           object expr_22D2 = arg_22EC_0 = UnityRuntimeServices.GetProperty(this.LightSwitch, "ElectricityCackling");
  632. <                                           if (!(expr_22D2 is AudioClip))
  633. ---
  634. >                                           AudioSource arg_27DA_0 = this.LightSwitch.audio;
  635. >                                           object arg_27D5_0;
  636. >                                           object expr_27BB = arg_27D5_0 = UnityRuntimeServices.GetProperty(this.LightSwitch, "ElectricityCackling");
  637. >                                           if (!(expr_27BB is AudioClip))
  638. 1783c1856
  639. <                                               arg_22EC_0 = RuntimeServices.Coerce(expr_22D2, typeof(AudioClip));
  640. ---
  641. >                                               arg_27D5_0 = RuntimeServices.Coerce(expr_27BB, typeof(AudioClip));
  642. 1785c1858
  643. <                                           arg_22F1_0.clip = (AudioClip)arg_22EC_0;
  644. ---
  645. >                                           arg_27DA_0.clip = (AudioClip)arg_27D5_0;
  646. 1796,1797c1869,1870
  647. <                                       this.DrillR.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
  648. <                                       this.DrillL.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
  649. ---
  650. >                                       this.RightDrill.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
  651. >                                       this.LeftDrill.eulerAngles = new Vector3(UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f), UnityEngine.Random.Range(-360f, 360f));
  652. 1820,1821c1893,1894
  653. <                                       this.DrillR.localEulerAngles = new Vector3((float)0, (float)0, (float)45);
  654. <                                       this.DrillL.localEulerAngles = new Vector3((float)0, (float)0, (float)-45);
  655. ---
  656. >                                       this.RightDrill.localEulerAngles = new Vector3((float)0, (float)0, 68.30447f);
  657. >                                       this.LeftDrill.localEulerAngles = new Vector3((float)0, (float)-180, -159.417f);
  658. 2004,2007c2077
  659. <           }
  660. <           if (!this.Dying)
  661. <           {
  662. <               if (!this.Distracted)
  663. ---
  664. >               if (this.CameraReacting)
  665. 2009c2079,2081
  666. <                   if (this.Character.animation[this.PhoneAnim].weight > (float)0)
  667. ---
  668. >                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  669. >                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  670. >                   if (!this.Yandere.ClubCamera.active)
  671. 2011c2083
  672. <                       if (this.Character.animation[this.PhoneAnim].weight > 0.1f)
  673. ---
  674. >                       if (this.CameraReactPhase == 1)
  675. 2013c2085,2090
  676. <                           this.Character.animation[this.PhoneAnim].weight = Mathf.Lerp(this.Character.animation[this.PhoneAnim].weight, (float)0, Time.deltaTime * (float)10);
  677. ---
  678. >                           if (this.Character.animation[this.CameraAnims[1]].time >= this.Character.animation[this.CameraAnims[1]].length)
  679. >                           {
  680. >                               this.Character.animation.CrossFade(this.CameraAnims[2]);
  681. >                               this.CameraReactPhase = 2;
  682. >                               this.CameraPoseTimer = (float)1;
  683. >                           }
  684. 2015c2092
  685. <                       else
  686. ---
  687. >                       else if (this.CameraReactPhase == 2)
  688. 2017c2094,2099
  689. <                           this.Character.animation[this.PhoneAnim].weight = (float)0;
  690. ---
  691. >                           this.CameraPoseTimer -= Time.deltaTime;
  692. >                           if (this.CameraPoseTimer <= (float)0)
  693. >                           {
  694. >                               this.Character.animation.CrossFade(this.CameraAnims[3]);
  695. >                               this.CameraReactPhase = 3;
  696. >                           }
  697. 2019,2022c2101,2153
  698. <                   }
  699. <                   if (!this.WitnessedMurder)
  700. <                   {
  701. <                       int num = 0;
  702. ---
  703. >                       else if (this.CameraReactPhase == 3)
  704. >                       {
  705. >                           if (this.CameraPoseTimer == (float)1)
  706. >                           {
  707. >                               this.Character.animation.CrossFade(this.CameraAnims[2]);
  708. >                               this.CameraReactPhase = 2;
  709. >                           }
  710. >                           if (this.Character.animation[this.CameraAnims[3]].time >= this.Character.animation[this.CameraAnims[3]].length)
  711. >                           {
  712. >                               this.Obstacle.enabled = false;
  713. >                               this.CameraReacting = false;
  714. >                               this.Routine = true;
  715. >                           }
  716. >                       }
  717. >                   }
  718. >                   else if (this.Yandere.Shutter.TargetStudent != this.StudentID)
  719. >                   {
  720. >                       this.CameraPoseTimer -= Time.deltaTime;
  721. >                       if (this.CameraPoseTimer <= (float)0)
  722. >                       {
  723. >                           this.Obstacle.enabled = false;
  724. >                           this.CameraReacting = false;
  725. >                           this.Routine = true;
  726. >                       }
  727. >                   }
  728. >                   else
  729. >                   {
  730. >                       this.CameraPoseTimer = (float)1;
  731. >                   }
  732. >                   if (this.InEvent)
  733. >                   {
  734. >                       this.CameraReacting = false;
  735. >                   }
  736. >               }
  737. >           }
  738. >           if (!this.Dying)
  739. >           {
  740. >               if (!this.Distracted)
  741. >               {
  742. >                   if (this.Character.animation[this.PhoneAnim].weight > (float)0)
  743. >                   {
  744. >                       if (this.Character.animation[this.PhoneAnim].weight > 0.1f)
  745. >                       {
  746. >                           this.Character.animation[this.PhoneAnim].weight = Mathf.Lerp(this.Character.animation[this.PhoneAnim].weight, (float)0, Time.deltaTime * (float)10);
  747. >                       }
  748. >                       else
  749. >                       {
  750. >                           this.Character.animation[this.PhoneAnim].weight = (float)0;
  751. >                       }
  752. >                   }
  753. >                   if (!this.WitnessedMurder)
  754. >                   {
  755. >                       int num = 0;
  756. 2197a2329
  757. >                           this.CameraReacting = false;
  758. 2539a2672,2676
  759. >                   else if (this.Clock.Period == 2 || this.Clock.Period == 4)
  760. >                   {
  761. >                       this.Subtitle.UpdateLabel("Class Apology", 0, (float)3);
  762. >                       this.Prompt.Circle[0].fillAmount = (float)1;
  763. >                   }
  764. 2648c2785
  765. <           if (this.Talking)
  766. ---
  767. >           if (this.Dying)
  768. 2650c2787
  769. <               if (this.Interaction == 0)
  770. ---
  771. >               if (this.Distracting)
  772. 2652,2666c2789,2794
  773. <                   this.Character.animation.CrossFade(this.IdleAnim);
  774. <                   if (this.TalkTimer == (float)0)
  775. <                   {
  776. <                       this.DialogueWheel.Impatience.fillAmount = this.DialogueWheel.Impatience.fillAmount + Time.deltaTime * 0.1f;
  777. <                       if (this.DialogueWheel.Impatience.fillAmount > 0.5f && this.Subtitle.Timer == (float)0)
  778. <                       {
  779. <                           this.Subtitle.UpdateLabel("Impatience", 1, (float)5);
  780. <                       }
  781. <                       if (this.DialogueWheel.Impatience.fillAmount >= (float)1)
  782. <                       {
  783. <                           this.Subtitle.UpdateLabel("Impatience", 2, (float)3);
  784. <                           this.DialogueWheel.End();
  785. <                           this.WaitTimer = (float)0;
  786. <                       }
  787. <                   }
  788. ---
  789. >                   this.DistractionTarget.Distracted = false;
  790. >                   this.Distracting = false;
  791. >               }
  792. >               if (this.EventManager != null)
  793. >               {
  794. >                   this.EventManager.EndEvent();
  795. 2668c2796,2797
  796. <               else if (this.Interaction == 1)
  797. ---
  798. >               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  799. >               if (!this.Teacher)
  800. 2670c2799,2800
  801. <                   if (this.TalkTimer == (float)3)
  802. ---
  803. >                   this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
  804. >                   if (!this.Dead && !this.Tranquil)
  805. 2672,2687c2802
  806. <                       this.Character.animation.CrossFade(this.Nod2Anim);
  807. <                       int num9 = 5;
  808. <                       if (PlayerPrefs.GetInt("PantiesEquipped") == 6)
  809. <                       {
  810. <                           num9 += 5;
  811. <                       }
  812. <                       this.PendingRep += (float)num9;
  813. <                       this.Reputation.PendingRep = this.Reputation.PendingRep + (float)num9;
  814. <                       this.ID = 0;
  815. <                       while (this.ID < Extensions.get_length(this.Outlines))
  816. <                       {
  817. <                           this.Outlines[this.ID].color = new Color((float)0, (float)1, (float)0, (float)1);
  818. <                           this.ID++;
  819. <                       }
  820. <                       this.Forgave = true;
  821. <                       if (this.Witnessed == "Insanity" || this.Witnessed == "Weapon and Blood and Insanity" || this.Witnessed == "Weapon and Insanity" || this.Witnessed == "Blood and Insanity")
  822. ---
  823. >                       if (this.Yandere.Weapon[this.Yandere.Equipped].WeaponID == 7)
  824. 2689c2804,2805
  825. <                           this.Subtitle.UpdateLabel("Forgiving Insanity", 0, (float)3);
  826. ---
  827. >                           this.Character.animation.CrossFade(this.BuzzSawDeathAnim);
  828. >                           this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward);
  829. 2693c2809,2810
  830. <                           this.Subtitle.UpdateLabel("Forgiving", 0, (float)3);
  831. ---
  832. >                           this.Character.animation.CrossFade(this.DefendAnim);
  833. >                           this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * 0.1f);
  834. 2694a2812,2813
  835. >                       this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
  836. >                       this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  837. 2698,2702c2817,2818
  838. <                       if (Input.GetButtonDown("A"))
  839. <                       {
  840. <                           this.TalkTimer = (float)0;
  841. <                       }
  842. <                       if (this.Character.animation[this.Nod2Anim].time >= this.Character.animation[this.Nod2Anim].length)
  843. ---
  844. >                       this.Character.animation.CrossFade(this.DeathAnim);
  845. >                       if (this.Character.animation[this.DeathAnim].time < (float)1)
  846. 2704c2820
  847. <                           this.Character.animation.CrossFade(this.IdleAnim);
  848. ---
  849. >                           this.transform.Translate(Vector3.back * Time.deltaTime);
  850. 2706c2822
  851. <                       if (this.TalkTimer <= (float)0)
  852. ---
  853. >                       else
  854. 2708,2709c2824
  855. <                           this.IgnoreTimer = (float)5;
  856. <                           this.DialogueWheel.End();
  857. ---
  858. >                           this.BecomeRagdoll();
  859. 2712d2826
  860. <                   this.TalkTimer -= Time.deltaTime;
  861. 2714c2828
  862. <               else if (this.Interaction == 2)
  863. ---
  864. >               else
  865. 2716,2738c2830
  866. <                   if (this.TalkTimer == (float)3)
  867. <                   {
  868. <                       this.Subtitle.UpdateLabel("Student Compliment", 0, (float)3);
  869. <                       int num10 = 0;
  870. <                       if (PlayerPrefs.GetInt("PantiesEquipped") == 3)
  871. <                       {
  872. <                           num10++;
  873. <                       }
  874. <                       if ((this.Male && PlayerPrefs.GetInt("Seduction") > 0) || PlayerPrefs.GetInt("Seduction") == 5)
  875. <                       {
  876. <                           num10++;
  877. <                       }
  878. <                       this.Reputation.PendingRep = this.Reputation.PendingRep + (float)(1 + num10);
  879. <                       this.PendingRep += (float)(1 + num10);
  880. <                       this.Complimented = true;
  881. <                   }
  882. <                   else if (Input.GetButtonDown("A"))
  883. <                   {
  884. <                       this.TalkTimer = (float)0;
  885. <                   }
  886. <                   this.Character.animation.CrossFade(this.LookDownAnim);
  887. <                   this.TalkTimer -= Time.deltaTime;
  888. <                   if (this.TalkTimer <= (float)0)
  889. ---
  890. >                   if (!this.StudentManager.Stop)
  891. 2740c2832,2837
  892. <                       this.DialogueWheel.End();
  893. ---
  894. >                       this.StudentManager.StopMoving();
  895. >                       this.Yandere.Laughing = false;
  896. >                       this.Yandere.Dipping = false;
  897. >                       this.Yandere.RPGCamera.enabled = false;
  898. >                       this.Phone.active = false;
  899. >                       this.Police.Show = false;
  900. 2741a2839,2843
  901. >                   this.Character.animation.CrossFade(this.CounterAnim);
  902. >                   this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
  903. >                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  904. >                   this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * (float)1);
  905. >                   this.transform.localScale = Vector3.Lerp(this.transform.localScale, new Vector3((float)1, (float)1, (float)1), Time.deltaTime * (float)10);
  906. 2743c2845,2850
  907. <               else if (this.Interaction == 3)
  908. ---
  909. >           }
  910. >           else if (this.Pushed)
  911. >           {
  912. >               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  913. >               this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
  914. >               if (this.Character.animation[this.PushedAnim].time >= this.Character.animation[this.PushedAnim].length)
  915. 2745,2790c2852
  916. <                   if (this.TalkTimer == (float)3)
  917. <                   {
  918. <                       this.Character.animation.CrossFade(this.GossipAnim);
  919. <                       this.Subtitle.UpdateLabel("Student Gossip", 0, (float)3);
  920. <                       int num11 = 0;
  921. <                       if (this.Reputation.Reputation > 33.33333f)
  922. <                       {
  923. <                           num11++;
  924. <                       }
  925. <                       if (PlayerPrefs.GetInt("PantiesEquipped") == 9)
  926. <                       {
  927. <                           num11++;
  928. <                       }
  929. <                       if (PlayerPrefs.GetInt("DarkSecret") == 1)
  930. <                       {
  931. <                           num11++;
  932. <                       }
  933. <                       if (PlayerPrefs.GetInt(this.StudentID + "_Friend") == 1)
  934. <                       {
  935. <                           num11++;
  936. <                       }
  937. <                       if ((this.Male && PlayerPrefs.GetInt("Seduction") > 1) || PlayerPrefs.GetInt("Seduction") == 5)
  938. <                       {
  939. <                           num11++;
  940. <                       }
  941. <                       PlayerPrefs.SetInt("Student_" + this.DialogueWheel.Victim + "_Reputation", PlayerPrefs.GetInt("Student_" + this.DialogueWheel.Victim + "_Reputation") - (1 + num11));
  942. <                       this.Reputation.PendingRep = this.Reputation.PendingRep - (float)2;
  943. <                       this.PendingRep -= (float)2;
  944. <                       this.Gossiped = true;
  945. <                   }
  946. <                   else
  947. <                   {
  948. <                       if (Input.GetButtonDown("A"))
  949. <                       {
  950. <                           this.TalkTimer = (float)0;
  951. <                       }
  952. <                       if (this.Character.animation[this.GossipAnim].time >= this.Character.animation[this.GossipAnim].length)
  953. <                       {
  954. <                           this.Character.animation.CrossFade(this.IdleAnim);
  955. <                       }
  956. <                       if (this.TalkTimer <= (float)0)
  957. <                       {
  958. <                           this.DialogueWheel.End();
  959. <                       }
  960. <                   }
  961. <                   this.TalkTimer -= Time.deltaTime;
  962. ---
  963. >                   this.BecomeRagdoll();
  964. 2792c2854,2859
  965. <               else if (this.Interaction == 4)
  966. ---
  967. >           }
  968. >           else if (this.Drowned)
  969. >           {
  970. >               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  971. >               this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
  972. >               if (this.Character.animation[this.DrownAnim].time >= this.Character.animation[this.DrownAnim].length)
  973. 2794,2807c2861
  974. <                   if (this.TalkTimer == (float)2)
  975. <                   {
  976. <                       this.Subtitle.UpdateLabel("Student Farewell", 0, (float)2);
  977. <                   }
  978. <                   else if (Input.GetButtonDown("A"))
  979. <                   {
  980. <                       this.TalkTimer = (float)0;
  981. <                   }
  982. <                   this.Character.animation.CrossFade(this.IdleAnim);
  983. <                   this.TalkTimer -= Time.deltaTime;
  984. <                   if (this.TalkTimer <= (float)0)
  985. <                   {
  986. <                       this.DialogueWheel.End();
  987. <                   }
  988. ---
  989. >                   this.BecomeRagdoll();
  990. 2809c2863,2866
  991. <               else if (this.Interaction == 5)
  992. ---
  993. >           }
  994. >           else if (this.WitnessedMurder)
  995. >           {
  996. >               if (!this.Fleeing)
  997. 2811,2818c2868
  998. <                   if (this.TalkTimer == (float)100)
  999. <                   {
  1000. <                       this.Subtitle.UpdateLabel("Task " + this.StudentID + " Line", this.TaskPhase, this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase));
  1001. <                       this.Character.animation.CrossFade(this.TaskAnims[this.TaskPhase]);
  1002. <                       this.CurrentAnim = this.TaskAnims[this.TaskPhase];
  1003. <                       this.TalkTimer = this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase);
  1004. <                   }
  1005. <                   else if (Input.GetButtonDown("A"))
  1006. ---
  1007. >                   if (this.StudentID > 1 && this.Persona != 5)
  1008. 2820,2826c2870
  1009. <                       this.Subtitle.Label.text = string.Empty;
  1010. <                       UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
  1011. <                       this.TalkTimer = (float)0;
  1012. <                   }
  1013. <                   if (this.Character.animation[this.CurrentAnim].time >= this.Character.animation[this.CurrentAnim].length)
  1014. <                   {
  1015. <                       this.Character.animation.CrossFade(this.IdleAnim);
  1016. ---
  1017. >                       this.EyeShrink += Time.deltaTime * 0.2f;
  1018. 2828,2829c2872,2875
  1019. <                   this.TalkTimer -= Time.deltaTime;
  1020. <                   if (this.TalkTimer <= (float)0)
  1021. ---
  1022. >                   this.Character.animation.CrossFade(this.ScaredAnim);
  1023. >                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  1024. >                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1025. >                   if (!this.Yandere.Struggling)
  1026. 2831,2843c2877
  1027. <                       if (this.TaskPhase == 5)
  1028. <                       {
  1029. <                           this.DialogueWheel.TaskWindow.TaskComplete = true;
  1030. <                           PlayerPrefs.SetInt("Task_" + this.StudentID + "_Status", 3);
  1031. <                           PlayerPrefs.SetInt(this.StudentID + "_Friend", 1);
  1032. <                           this.Interaction = 0;
  1033. <                       }
  1034. <                       else if (this.TaskPhase == 4 || this.TaskPhase == 0)
  1035. <                       {
  1036. <                           this.StudentManager.TaskManager.UpdateTaskStatus();
  1037. <                           this.DialogueWheel.End();
  1038. <                       }
  1039. <                       else if (this.TaskPhase == 3)
  1040. ---
  1041. >                       if (this.Persona != 3)
  1042. 2845,2846c2879
  1043. <                           this.DialogueWheel.TaskWindow.UpdateWindow(this.StudentID);
  1044. <                           this.Interaction = 0;
  1045. ---
  1046. >                           this.AlarmTimer += Time.deltaTime;
  1047. 2850,2854c2883
  1048. <                           this.TaskPhase++;
  1049. <                           this.Subtitle.UpdateLabel("Task " + this.StudentID + " Line", this.TaskPhase, this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase));
  1050. <                           this.Character.animation.CrossFade(this.TaskAnims[this.TaskPhase]);
  1051. <                           this.CurrentAnim = this.TaskAnims[this.TaskPhase];
  1052. <                           this.TalkTimer = this.Subtitle.GetClipLength(this.StudentID, this.TaskPhase);
  1053. ---
  1054. >                           this.AlarmTimer += Time.deltaTime * (float)5;
  1055. 2857,2860c2886
  1056. <               }
  1057. <               else if (this.Interaction == 6)
  1058. <               {
  1059. <                   if (this.TalkTimer == (float)2)
  1060. ---
  1061. >                   if (this.AlarmTimer > (float)5)
  1062. 2862,2863c2888,2889
  1063. <                       this.Character.animation.CrossFade(this.Nod1Anim);
  1064. <                       this.Subtitle.UpdateLabel("Student Follow", 0, (float)2);
  1065. ---
  1066. >                       this.PersonaReaction();
  1067. >                       this.AlarmTimer = (float)0;
  1068. 2865c2891
  1069. <                   else
  1070. ---
  1071. >                   else if (this.AlarmTimer > (float)1 && !this.Reacted)
  1072. 2867,2871c2893
  1073. <                       if (Input.GetButtonDown("A"))
  1074. <                       {
  1075. <                           this.TalkTimer = (float)0;
  1076. <                       }
  1077. <                       if (this.Character.animation[this.Nod1Anim].time >= this.Character.animation[this.Nod1Anim].length)
  1078. ---
  1079. >                       if (this.StudentID > 1)
  1080. 2873c2895,2903
  1081. <                           this.Character.animation.CrossFade(this.IdleAnim);
  1082. ---
  1083. >                           if (!this.Teacher)
  1084. >                           {
  1085. >                               this.Subtitle.UpdateLabel("Murder Reaction", 1, (float)3);
  1086. >                           }
  1087. >                           else
  1088. >                           {
  1089. >                               this.Subtitle.UpdateLabel("Teacher Murder Reaction", UnityEngine.Random.Range(1, 3), (float)3);
  1090. >                               this.StudentManager.Portal.active = false;
  1091. >                           }
  1092. 2875c2905
  1093. <                       if (this.TalkTimer <= (float)0)
  1094. ---
  1095. >                       else
  1096. 2877,2882c2907,2914
  1097. <                           this.DialogueWheel.End();
  1098. <                           this.Pathfinding.target = this.Yandere.transform;
  1099. <                           this.Prompt.Label[0].text = "     " + "Stop";
  1100. <                           this.Yandere.Follower = this;
  1101. <                           this.Yandere.Followers = this.Yandere.Followers + 1;
  1102. <                           this.Following = true;
  1103. ---
  1104. >                           this.Subtitle.UpdateLabel("Senpai Murder Reaction", 1, 4.5f);
  1105. >                           this.GameOverCause = "Murder";
  1106. >                           this.SenpaiNoticed();
  1107. >                           this.Character.animation.CrossFade(this.ScaredAnim);
  1108. >                           this.Yandere.ShoulderCamera.enabled = true;
  1109. >                           this.Yandere.ShoulderCamera.Noticed = true;
  1110. >                           this.Yandere.RPGCamera.enabled = false;
  1111. >                           this.Stop = true;
  1112. 2883a2916
  1113. >                       this.Reacted = true;
  1114. 2885d2917
  1115. <                   this.TalkTimer -= Time.deltaTime;
  1116. 2887c2919,2956
  1117. <               else if (this.Interaction == 7)
  1118. ---
  1119. >           }
  1120. >           else if (this.Alarmed)
  1121. >           {
  1122. >               this.OccultBook.active = false;
  1123. >               if (this.WitnessedCorpse)
  1124. >               {
  1125. >                   this.Character.animation.CrossFade(this.ScaredAnim);
  1126. >               }
  1127. >               else if (this.StudentID > 1)
  1128. >               {
  1129. >                   this.Character.animation.CrossFade(this.IdleAnim);
  1130. >               }
  1131. >               if (this.WitnessedMurder)
  1132. >               {
  1133. >                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  1134. >                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1135. >               }
  1136. >               else if (this.WitnessedCorpse)
  1137. >               {
  1138. >                   this.targetRotation = Quaternion.LookRotation(this.Corpse.AllColliders[0].transform.position - this.transform.position);
  1139. >                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1140. >               }
  1141. >               else if (!this.DiscCheck)
  1142. >               {
  1143. >                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  1144. >                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1145. >               }
  1146. >               else
  1147. >               {
  1148. >                   this.targetRotation = Quaternion.LookRotation(this.DistractionSpot - this.transform.position);
  1149. >                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1150. >               }
  1151. >               if (!this.Fleeing)
  1152. >               {
  1153. >                   this.AlarmTimer += Time.deltaTime;
  1154. >               }
  1155. >               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  1156. >               if (this.AlarmTimer > (float)5)
  1157. 2889c2958,2960
  1158. <                   if (this.TalkTimer == (float)3)
  1159. ---
  1160. >                   this.Pathfinding.canSearch = true;
  1161. >                   this.Pathfinding.canMove = true;
  1162. >                   if (this.StudentID == 1 || this.Teacher)
  1163. 2891,2892c2962
  1164. <                       this.Character.animation.CrossFade(this.Nod1Anim);
  1165. <                       this.Subtitle.UpdateLabel("Student Leave", 0, (float)3);
  1166. ---
  1167. >                       this.IgnoreTimer = 0.0001f;
  1168. 2896,2909c2966,2977
  1169. <                       if (Input.GetButtonDown("A"))
  1170. <                       {
  1171. <                           this.TalkTimer = (float)0;
  1172. <                       }
  1173. <                       if (this.Character.animation[this.Nod1Anim].time >= this.Character.animation[this.Nod1Anim].length)
  1174. <                       {
  1175. <                           this.Character.animation.CrossFade(this.IdleAnim);
  1176. <                       }
  1177. <                       if (this.TalkTimer <= (float)0)
  1178. <                       {
  1179. <                           this.DialogueWheel.End();
  1180. <                           this.CurrentDestination = this.StudentManager.GoAwaySpot;
  1181. <                           this.Pathfinding.target = this.StudentManager.GoAwaySpot;
  1182. <                       }
  1183. ---
  1184. >                       this.IgnoreTimer = (float)5;
  1185. >                   }
  1186. >                   this.Alarmed = false;
  1187. >                   this.Reacted = false;
  1188. >                   this.AlarmTimer = (float)0;
  1189. >                   if (this.WitnessedCorpse)
  1190. >                   {
  1191. >                       this.PersonaReaction();
  1192. >                   }
  1193. >                   else if (!this.Following && !this.Wet)
  1194. >                   {
  1195. >                       this.Routine = true;
  1196. 2911d2978
  1197. <                   this.TalkTimer -= Time.deltaTime;
  1198. 2913c2980
  1199. <               else if (this.Interaction == 8)
  1200. ---
  1201. >               else if (this.AlarmTimer > (float)1 && !this.Reacted)
  1202. 2915c2982
  1203. <                   if (this.TalkTimer == (float)3)
  1204. ---
  1205. >                   if (this.Teacher)
  1206. 2917,3470c2984
  1207. <                       this.Character.animation.CrossFade(this.Nod1Anim);
  1208. <                       if (!this.StudentManager.Students[this.DialogueWheel.Victim].InEvent && PlayerPrefs.GetInt("Student_" + this.DialogueWheel.Victim + "_Slave") == 0)
  1209. <                       {
  1210. <                           this.Subtitle.UpdateLabel("Student Distract", 0, (float)3);
  1211. <                       }
  1212. <                       else
  1213. <                       {
  1214. <                           this.Subtitle.UpdateLabel("Student Distract Refuse", 0, (float)3);
  1215. <                       }
  1216. <                   }
  1217. <                   else
  1218. <                   {
  1219. <                       if (Input.GetButtonDown("A"))
  1220. <                       {
  1221. <                           this.TalkTimer = (float)0;
  1222. <                       }
  1223. <                       if (this.Character.animation[this.Nod1Anim].time >= this.Character.animation[this.Nod1Anim].length)
  1224. <                       {
  1225. <                           this.Character.animation.CrossFade(this.IdleAnim);
  1226. <                       }
  1227. <                       if (this.TalkTimer <= (float)0)
  1228. <                       {
  1229. <                           this.DialogueWheel.End();
  1230. <                           if (!this.StudentManager.Students[this.DialogueWheel.Victim].InEvent && PlayerPrefs.GetInt("Student_" + this.DialogueWheel.Victim + "_Slave") == 0)
  1231. <                           {
  1232. <                               this.DistractionTarget = this.StudentManager.Students[this.DialogueWheel.Victim];
  1233. <                               this.CurrentDestination = this.DistractionTarget.transform;
  1234. <                               this.Pathfinding.target = this.DistractionTarget.transform;
  1235. <                               this.Pathfinding.speed = (float)4;
  1236. <                               this.TargetDistance = (float)1;
  1237. <                               this.DistractTimer = (float)10;
  1238. <                               this.Distracting = true;
  1239. <                               this.Routine = false;
  1240. <                               this.InEvent = true;
  1241. <                           }
  1242. <                       }
  1243. <                   }
  1244. <                   this.TalkTimer -= Time.deltaTime;
  1245. <               }
  1246. <               else if (this.Interaction == 9)
  1247. <               {
  1248. <                   if (this.TalkTimer == (float)5)
  1249. <                   {
  1250. <                       this.Character.animation.CrossFade(this.GrudgeAnim);
  1251. <                       if (!this.Male)
  1252. <                       {
  1253. <                           this.Subtitle.UpdateLabel("Grudge Warning", 0, (float)99);
  1254. <                       }
  1255. <                       else
  1256. <                       {
  1257. <                           this.Subtitle.UpdateLabel("Grudge Warning", 1, (float)99);
  1258. <                       }
  1259. <                       this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1260. <                   }
  1261. <                   else
  1262. <                   {
  1263. <                       if (Input.GetButtonDown("A"))
  1264. <                       {
  1265. <                           this.TalkTimer = (float)0;
  1266. <                       }
  1267. <                       if (this.Character.animation[this.GrudgeAnim].time >= this.Character.animation[this.GrudgeAnim].length)
  1268. <                       {
  1269. <                           this.Character.animation.CrossFade(this.GrudgeAnim);
  1270. <                       }
  1271. <                       if (this.TalkTimer <= (float)0)
  1272. <                       {
  1273. <                           this.DialogueWheel.End();
  1274. <                       }
  1275. <                   }
  1276. <                   this.TalkTimer -= Time.deltaTime;
  1277. <               }
  1278. <               else if (this.Interaction == 10)
  1279. <               {
  1280. <                   if (this.TalkTimer == (float)100)
  1281. <                   {
  1282. <                       this.Subtitle.UpdateLabel("Club " + this.Club + " Info", this.ClubPhase, (float)99);
  1283. <                       this.TalkTimer = this.Subtitle.GetClubClipLength(this.Club, this.ClubPhase);
  1284. <                   }
  1285. <                   else if (Input.GetButtonDown("A"))
  1286. <                   {
  1287. <                       this.Subtitle.Label.text = string.Empty;
  1288. <                       UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
  1289. <                       this.TalkTimer = (float)0;
  1290. <                   }
  1291. <                   this.TalkTimer -= Time.deltaTime;
  1292. <                   if (this.TalkTimer <= (float)0)
  1293. <                   {
  1294. <                       if (this.ClubPhase == 3)
  1295. <                       {
  1296. <                           this.DialogueWheel.Show = true;
  1297. <                           this.Subtitle.Label.text = string.Empty;
  1298. <                           this.Interaction = 0;
  1299. <                           this.TalkTimer = (float)0;
  1300. <                       }
  1301. <                       else
  1302. <                       {
  1303. <                           this.ClubPhase++;
  1304. <                           this.Subtitle.UpdateLabel("Club " + this.Club + " Info", this.ClubPhase, (float)99);
  1305. <                           this.TalkTimer = this.Subtitle.GetClubClipLength(this.Club, this.ClubPhase);
  1306. <                       }
  1307. <                   }
  1308. <               }
  1309. <               else if (this.Interaction == 11)
  1310. <               {
  1311. <                   if (this.TalkTimer == (float)100)
  1312. <                   {
  1313. <                       if (this.ClubPhase == 1)
  1314. <                       {
  1315. <                           this.Subtitle.UpdateLabel("Club Join", this.Club, (float)99);
  1316. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1317. <                       }
  1318. <                       else if (this.ClubPhase == 2)
  1319. <                       {
  1320. <                           this.Subtitle.UpdateLabel("Club Accept", this.Club, (float)99);
  1321. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1322. <                       }
  1323. <                       else if (this.ClubPhase == 3)
  1324. <                       {
  1325. <                           this.Subtitle.UpdateLabel("Club Refuse", this.Club, (float)99);
  1326. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1327. <                       }
  1328. <                       else if (this.ClubPhase == 4)
  1329. <                       {
  1330. <                           this.Subtitle.UpdateLabel("Club Rejoin", this.Club, (float)99);
  1331. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1332. <                       }
  1333. <                       else if (this.ClubPhase == 5)
  1334. <                       {
  1335. <                           this.Subtitle.UpdateLabel("Club Exclusive", this.Club, (float)99);
  1336. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1337. <                       }
  1338. <                       else if (this.ClubPhase == 6)
  1339. <                       {
  1340. <                           this.Subtitle.UpdateLabel("Club Grudge", this.Club, (float)99);
  1341. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1342. <                       }
  1343. <                   }
  1344. <                   else if (Input.GetButtonDown("A"))
  1345. <                   {
  1346. <                       this.Subtitle.Label.text = string.Empty;
  1347. <                       UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
  1348. <                       this.TalkTimer = (float)0;
  1349. <                   }
  1350. <                   this.TalkTimer -= Time.deltaTime;
  1351. <                   if (this.TalkTimer <= (float)0)
  1352. <                   {
  1353. <                       if (this.ClubPhase == 1)
  1354. <                       {
  1355. <                           this.DialogueWheel.ClubWindow.Club = this.Club;
  1356. <                           this.DialogueWheel.ClubWindow.UpdateWindow();
  1357. <                           this.Interaction = 0;
  1358. <                       }
  1359. <                       else
  1360. <                       {
  1361. <                           this.DialogueWheel.End();
  1362. <                           if (this.Club == 6)
  1363. <                           {
  1364. <                               this.ChangingBooth.CheckYandereClub();
  1365. <                           }
  1366. <                       }
  1367. <                   }
  1368. <               }
  1369. <               else if (this.Interaction == 12)
  1370. <               {
  1371. <                   if (this.TalkTimer == (float)100)
  1372. <                   {
  1373. <                       if (this.ClubPhase == 1)
  1374. <                       {
  1375. <                           this.Subtitle.UpdateLabel("Club Quit", this.Club, (float)99);
  1376. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1377. <                       }
  1378. <                       else if (this.ClubPhase == 2)
  1379. <                       {
  1380. <                           this.Subtitle.UpdateLabel("Club Confirm", this.Club, (float)99);
  1381. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1382. <                       }
  1383. <                       else if (this.ClubPhase == 3)
  1384. <                       {
  1385. <                           this.Subtitle.UpdateLabel("Club Deny", this.Club, (float)99);
  1386. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1387. <                       }
  1388. <                   }
  1389. <                   else if (Input.GetButtonDown("A"))
  1390. <                   {
  1391. <                       this.Subtitle.Label.text = string.Empty;
  1392. <                       UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
  1393. <                       this.TalkTimer = (float)0;
  1394. <                   }
  1395. <                   this.TalkTimer -= Time.deltaTime;
  1396. <                   if (this.TalkTimer <= (float)0)
  1397. <                   {
  1398. <                       if (this.ClubPhase == 1)
  1399. <                       {
  1400. <                           this.DialogueWheel.ClubWindow.Club = this.Club;
  1401. <                           this.DialogueWheel.ClubWindow.Quitting = true;
  1402. <                           this.DialogueWheel.ClubWindow.UpdateWindow();
  1403. <                           this.Interaction = 0;
  1404. <                       }
  1405. <                       else
  1406. <                       {
  1407. <                           this.DialogueWheel.End();
  1408. <                           if (this.Club == 6)
  1409. <                           {
  1410. <                               this.ChangingBooth.CheckYandereClub();
  1411. <                           }
  1412. <                       }
  1413. <                   }
  1414. <               }
  1415. <               else if (this.Interaction == 13)
  1416. <               {
  1417. <                   if (this.TalkTimer == this.Subtitle.ClubFarewellClips[this.Club].length)
  1418. <                   {
  1419. <                       this.Subtitle.UpdateLabel("Club Farewell", this.Club, this.Subtitle.ClubFarewellClips[this.Club].length);
  1420. <                   }
  1421. <                   else if (Input.GetButtonDown("A"))
  1422. <                   {
  1423. <                       this.TalkTimer = (float)0;
  1424. <                   }
  1425. <                   this.TalkTimer -= Time.deltaTime;
  1426. <                   if (this.TalkTimer <= (float)0)
  1427. <                   {
  1428. <                       this.DialogueWheel.End();
  1429. <                   }
  1430. <               }
  1431. <               else if (this.Interaction == 14)
  1432. <               {
  1433. <                   if (this.TalkTimer == (float)100)
  1434. <                   {
  1435. <                       if (this.ClubPhase == 1)
  1436. <                       {
  1437. <                           this.Subtitle.UpdateLabel("Club Activity", this.Club, (float)99);
  1438. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1439. <                       }
  1440. <                       else if (this.ClubPhase == 2)
  1441. <                       {
  1442. <                           this.Subtitle.UpdateLabel("Club Yes", this.Club, (float)99);
  1443. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1444. <                       }
  1445. <                       else if (this.ClubPhase == 3)
  1446. <                       {
  1447. <                           this.Subtitle.UpdateLabel("Club No", this.Club, (float)99);
  1448. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1449. <                       }
  1450. <                       else if (this.ClubPhase == 4)
  1451. <                       {
  1452. <                           this.Subtitle.UpdateLabel("Club Early", this.Club, (float)99);
  1453. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1454. <                       }
  1455. <                       else if (this.ClubPhase == 5)
  1456. <                       {
  1457. <                           this.Subtitle.UpdateLabel("Club Late", this.Club, (float)99);
  1458. <                           this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1459. <                       }
  1460. <                   }
  1461. <                   else if (Input.GetButtonDown("A"))
  1462. <                   {
  1463. <                       this.Subtitle.Label.text = string.Empty;
  1464. <                       UnityEngine.Object.Destroy(this.Subtitle.CurrentClip);
  1465. <                       this.TalkTimer = (float)0;
  1466. <                   }
  1467. <                   this.TalkTimer -= Time.deltaTime;
  1468. <                   if (this.TalkTimer <= (float)0)
  1469. <                   {
  1470. <                       if (this.ClubPhase == 1)
  1471. <                       {
  1472. <                           this.DialogueWheel.ClubWindow.Club = this.Club;
  1473. <                           this.DialogueWheel.ClubWindow.Activity = true;
  1474. <                           this.DialogueWheel.ClubWindow.UpdateWindow();
  1475. <                           this.Interaction = 0;
  1476. <                       }
  1477. <                       else if (this.ClubPhase == 2)
  1478. <                       {
  1479. <                           this.Police.ClubActivity = true;
  1480. <                           this.Police.FadeOut = true;
  1481. <                           this.Interaction = 0;
  1482. <                       }
  1483. <                       else
  1484. <                       {
  1485. <                           this.DialogueWheel.End();
  1486. <                       }
  1487. <                   }
  1488. <               }
  1489. <               else if (this.Interaction == 15)
  1490. <               {
  1491. <                   if (this.TalkTimer == (float)5)
  1492. <                   {
  1493. <                       this.Subtitle.UpdateLabel("Club Unwelcome", this.Club, (float)99);
  1494. <                       this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1495. <                   }
  1496. <                   else
  1497. <                   {
  1498. <                       if (Input.GetButtonDown("A"))
  1499. <                       {
  1500. <                           this.TalkTimer = (float)0;
  1501. <                       }
  1502. <                       if (this.TalkTimer <= (float)0)
  1503. <                       {
  1504. <                           this.DialogueWheel.End();
  1505. <                       }
  1506. <                   }
  1507. <                   this.TalkTimer -= Time.deltaTime;
  1508. <               }
  1509. <               else if (this.Interaction == 16)
  1510. <               {
  1511. <                   if (this.TalkTimer == (float)5)
  1512. <                   {
  1513. <                       this.Subtitle.UpdateLabel("Club Kick", this.Club, (float)99);
  1514. <                       this.TalkTimer = this.Subtitle.CurrentClip.audio.clip.length;
  1515. <                   }
  1516. <                   else
  1517. <                   {
  1518. <                       if (Input.GetButtonDown("A"))
  1519. <                       {
  1520. <                           this.TalkTimer = (float)0;
  1521. <                       }
  1522. <                       if (this.TalkTimer <= (float)0)
  1523. <                       {
  1524. <                           PlayerPrefs.SetInt("Club", 0);
  1525. <                           this.DialogueWheel.End();
  1526. <                       }
  1527. <                   }
  1528. <                   this.TalkTimer -= Time.deltaTime;
  1529. <               }
  1530. <               if (this.Waiting)
  1531. <               {
  1532. <                   this.WaitTimer -= Time.deltaTime;
  1533. <                   if (this.WaitTimer <= (float)0)
  1534. <                   {
  1535. <                       this.Pathfinding.canSearch = true;
  1536. <                       this.Pathfinding.canMove = true;
  1537. <                       this.Obstacle.enabled = false;
  1538. <                       this.Alarmed = false;
  1539. <                       this.Talking = false;
  1540. <                       this.Waiting = false;
  1541. <                       if (!this.Following && !this.Distracting && !this.Wet)
  1542. <                       {
  1543. <                           this.Routine = true;
  1544. <                       }
  1545. <                       if (!this.Following)
  1546. <                       {
  1547. <                           this.Hearts.enableEmission = false;
  1548. <                       }
  1549. <                       this.StudentManager.EnablePrompts();
  1550. <                   }
  1551. <               }
  1552. <               else
  1553. <               {
  1554. <                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  1555. <                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1556. <               }
  1557. <           }
  1558. <           else if (this.Dying)
  1559. <           {
  1560. <               if (this.Distracting)
  1561. <               {
  1562. <                   this.DistractionTarget.Distracted = false;
  1563. <                   this.Distracting = false;
  1564. <               }
  1565. <               if (this.EventManager != null)
  1566. <               {
  1567. <                   this.EventManager.EndEvent();
  1568. <               }
  1569. <               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  1570. <               if (!this.Teacher)
  1571. <               {
  1572. <                   this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
  1573. <                   if (!this.Dead && !this.Tranquil)
  1574. <                   {
  1575. <                       this.Character.animation.CrossFade(this.DefendAnim);
  1576. <                       this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
  1577. <                       this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  1578. <                       this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * 0.1f);
  1579. <                   }
  1580. <                   else
  1581. <                   {
  1582. <                       this.Character.animation.CrossFade(this.DeathAnim);
  1583. <                       if (this.Character.animation[this.DeathAnim].time < (float)1)
  1584. <                       {
  1585. <                           this.transform.Translate(Vector3.back * Time.deltaTime);
  1586. <                       }
  1587. <                       else
  1588. <                       {
  1589. <                           this.BecomeRagdoll();
  1590. <                       }
  1591. <                   }
  1592. <               }
  1593. <               else
  1594. <               {
  1595. <                   if (this.Yandere.Laughing)
  1596. <                   {
  1597. <                       this.Yandere.Laughing = false;
  1598. <                   }
  1599. <                   if (this.Yandere.Dipping)
  1600. <                   {
  1601. <                       this.Yandere.Dipping = false;
  1602. <                   }
  1603. <                   if (this.Yandere.RPGCamera.enabled)
  1604. <                   {
  1605. <                       this.Yandere.RPGCamera.enabled = false;
  1606. <                   }
  1607. <                   if (this.Phone.active)
  1608. <                   {
  1609. <                       this.Phone.active = false;
  1610. <                   }
  1611. <                   if (this.Police.Show)
  1612. <                   {
  1613. <                       this.Police.Show = false;
  1614. <                   }
  1615. <                   this.Character.animation.CrossFade(this.CounterAnim);
  1616. <                   this.targetRotation = Quaternion.LookRotation(new Vector3(this.Yandere.transform.position.x, this.transform.position.y, this.Yandere.transform.position.z) - this.transform.position);
  1617. <                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, Time.deltaTime * (float)10);
  1618. <                   this.MoveTowardsTarget(this.Yandere.transform.position + this.Yandere.transform.forward * (float)1);
  1619. <                   this.transform.localScale = Vector3.Lerp(this.transform.localScale, new Vector3((float)1, (float)1, (float)1), Time.deltaTime * (float)10);
  1620. <               }
  1621. <           }
  1622. <           else if (this.Pushed)
  1623. <           {
  1624. <               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  1625. <               this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
  1626. <               if (this.Character.animation[this.PushedAnim].time >= this.Character.animation[this.PushedAnim].length)
  1627. <               {
  1628. <                   this.BecomeRagdoll();
  1629. <               }
  1630. <           }
  1631. <           else if (this.Drowned)
  1632. <           {
  1633. <               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  1634. <               this.EyeShrink = Mathf.Lerp(this.EyeShrink, (float)1, Time.deltaTime * (float)10);
  1635. <               if (this.Character.animation[this.DrownAnim].time >= this.Character.animation[this.DrownAnim].length)
  1636. <               {
  1637. <                   this.BecomeRagdoll();
  1638. <               }
  1639. <           }
  1640. <           else if (this.WitnessedMurder)
  1641. <           {
  1642. <               if (!this.Fleeing)
  1643. <               {
  1644. <                   if (this.StudentID > 1)
  1645. <                   {
  1646. <                       this.EyeShrink += Time.deltaTime * 0.2f;
  1647. <                   }
  1648. <                   this.Character.animation.CrossFade(this.ScaredAnim);
  1649. <                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  1650. <                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1651. <                   if (!this.Yandere.Struggling)
  1652. <                   {
  1653. <                       if (this.Persona != 3)
  1654. <                       {
  1655. <                           this.AlarmTimer += Time.deltaTime;
  1656. <                       }
  1657. <                       else
  1658. <                       {
  1659. <                           this.AlarmTimer += Time.deltaTime * (float)5;
  1660. <                       }
  1661. <                   }
  1662. <                   if (this.AlarmTimer > (float)5)
  1663. <                   {
  1664. <                       this.PersonaReaction();
  1665. <                       this.AlarmTimer = (float)0;
  1666. <                   }
  1667. <                   else if (this.AlarmTimer > (float)1 && !this.Reacted)
  1668. <                   {
  1669. <                       if (this.StudentID > 1)
  1670. <                       {
  1671. <                           if (!this.Teacher)
  1672. <                           {
  1673. <                               this.Subtitle.UpdateLabel("Murder Reaction", 1, (float)3);
  1674. <                           }
  1675. <                           else
  1676. <                           {
  1677. <                               this.Subtitle.UpdateLabel("Teacher Murder Reaction", UnityEngine.Random.Range(1, 3), (float)3);
  1678. <                               this.StudentManager.Portal.active = false;
  1679. <                           }
  1680. <                       }
  1681. <                       else
  1682. <                       {
  1683. <                           this.Subtitle.UpdateLabel("Senpai Murder Reaction", 1, 4.5f);
  1684. <                           this.GameOverCause = "Murder";
  1685. <                           this.SenpaiNoticed();
  1686. <                           this.Character.animation.CrossFade(this.ScaredAnim);
  1687. <                           this.Yandere.ShoulderCamera.enabled = true;
  1688. <                           this.Yandere.ShoulderCamera.Noticed = true;
  1689. <                           this.Yandere.RPGCamera.enabled = false;
  1690. <                           this.Stop = true;
  1691. <                       }
  1692. <                       this.Reacted = true;
  1693. <                   }
  1694. <               }
  1695. <           }
  1696. <           else if (this.Alarmed)
  1697. <           {
  1698. <               this.OccultBook.active = false;
  1699. <               if (this.WitnessedCorpse)
  1700. <               {
  1701. <                   this.Character.animation.CrossFade(this.ScaredAnim);
  1702. <               }
  1703. <               else if (this.StudentID > 1)
  1704. <               {
  1705. <                   this.Character.animation.CrossFade(this.IdleAnim);
  1706. <               }
  1707. <               if (this.WitnessedMurder)
  1708. <               {
  1709. <                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  1710. <                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1711. <               }
  1712. <               else if (this.WitnessedCorpse)
  1713. <               {
  1714. <                   this.targetRotation = Quaternion.LookRotation(this.Corpse.AllColliders[0].transform.position - this.transform.position);
  1715. <                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1716. <               }
  1717. <               else if (!this.DiscCheck)
  1718. <               {
  1719. <                   this.targetRotation = Quaternion.LookRotation(this.Yandere.transform.position - this.transform.position);
  1720. <                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1721. <               }
  1722. <               else
  1723. <               {
  1724. <                   this.targetRotation = Quaternion.LookRotation(this.DistractionSpot - this.transform.position);
  1725. <                   this.transform.rotation = Quaternion.Slerp(this.transform.rotation, this.targetRotation, (float)10 * Time.deltaTime);
  1726. <               }
  1727. <               if (!this.Fleeing)
  1728. <               {
  1729. <                   this.AlarmTimer += Time.deltaTime;
  1730. <               }
  1731. <               this.Alarm -= Time.deltaTime * (float)100 * ((float)1 / this.Paranoia);
  1732. <               if (this.AlarmTimer > (float)5)
  1733. <               {
  1734. <                   this.Pathfinding.canSearch = true;
  1735. <                   this.Pathfinding.canMove = true;
  1736. <                   if (this.StudentID == 1 || this.Teacher)
  1737. <                   {
  1738. <                       this.IgnoreTimer = 0.0001f;
  1739. <                   }
  1740. <                   else
  1741. <                   {
  1742. <                       this.IgnoreTimer = (float)5;
  1743. <                   }
  1744. <                   this.Alarmed = false;
  1745. <                   this.Reacted = false;
  1746. <                   this.AlarmTimer = (float)0;
  1747. <                   if (this.WitnessedCorpse)
  1748. <                   {
  1749. <                       this.PersonaReaction();
  1750. <                   }
  1751. <                   else if (!this.Following && !this.Wet)
  1752. <                   {
  1753. <                       this.Routine = true;
  1754. <                   }
  1755. <               }
  1756. <               else if (this.AlarmTimer > (float)1 && !this.Reacted)
  1757. <               {
  1758. <                   if (this.Teacher)
  1759. <                   {
  1760. <                       if (!this.WitnessedCorpse)
  1761. ---
  1762. >                       if (!this.WitnessedCorpse)
  1763. 3783c3297
  1764. <               if (this.transform.position.z > (float)-50 && this.Clock.HourTime > 15.5f)
  1765. ---
  1766. >               if (this.transform.position.z < (float)-50 && this.Clock.HourTime > 15.5f)
  1767. 3792c3306
  1768. <                   int num12 = 0;
  1769. ---
  1770. >                   int num9 = 0;
  1771. 3794c3308
  1772. <                   float num13 = position.y = (float)num12;
  1773. ---
  1774. >                   float num10 = position.y = (float)num9;
  1775. 3798c3312
  1776. <           int num14 = 0;
  1777. ---
  1778. >           int num11 = 0;
  1779. 3800c3314
  1780. <           float num15 = eulerAngles.x = (float)num14;
  1781. ---
  1782. >           float num12 = eulerAngles.x = (float)num11;
  1783. 3802c3316
  1784. <           int num16 = 0;
  1785. ---
  1786. >           int num13 = 0;
  1787. 3804c3318
  1788. <           float num17 = eulerAngles2.z = (float)num16;
  1789. ---
  1790. >           float num14 = eulerAngles2.z = (float)num13;
  1791. 3823a3338,3347
  1792. >           if (this.Pathfinding.canMove && this.Pathfinding.currentSpeed > (float)0 && this.transform.position == this.LastPosition)
  1793. >           {
  1794. >               this.StuckTimer += Time.deltaTime;
  1795. >               if (this.StuckTimer > (float)1)
  1796. >               {
  1797. >                   this.MyController.Move(this.transform.right * Time.timeScale * 0.0001f);
  1798. >                   this.StuckTimer = (float)0;
  1799. >               }
  1800. >           }
  1801. >           this.LastPosition = this.transform.position;
  1802. 3912,3925d3435
  1803. <           if (this.HidePony)
  1804. <           {
  1805. <               this.Ponytail.parent.transform.localScale = new Vector3((float)1, (float)1, 0.93f);
  1806. <               this.Ponytail.localScale = new Vector3((float)0, (float)0, (float)0);
  1807. <               this.HairR.localScale = new Vector3((float)0, (float)0, (float)0);
  1808. <               this.HairL.localScale = new Vector3((float)0, (float)0, (float)0);
  1809. <           }
  1810. <           if (this.VeryLongHair)
  1811. <           {
  1812. <               int num7 = 2;
  1813. <               Vector3 localScale5 = this.LongHairBone.localScale;
  1814. <               float num8 = localScale5.x = (float)num7;
  1815. <               Vector3 vector7 = this.LongHairBone.localScale = localScale5;
  1816. <           }
  1817. 3994a3505
  1818. >       this.OccultBook.active = false;
  1819. 4032,4036c3543
  1820. <       if (!this.Yandere.Attacking && this.Yandere.Armed)
  1821. <       {
  1822. <           this.Yandere.Weapon[this.Yandere.Equipped].Drop();
  1823. <       }
  1824. <       if (this.Yandere.Dragging)
  1825. ---
  1826. >       if (!this.Yandere.Attacking)
  1827. 4066c3573
  1828. <       if (this.Teacher)
  1829. ---
  1830. >       if (this.Teacher || this.StudentID == 1)
  1831. 4098c3605,3608
  1832. <           this.Police.Witnesses = this.Police.Witnesses + 1;
  1833. ---
  1834. >           if (this.Persona != 5)
  1835. >           {
  1836. >               this.Police.Witnesses = this.Police.Witnesses + 1;
  1837. >           }
  1838. 4181c3691
  1839. <       if (!this.WitnessedMurder && this.Persona == 3)
  1840. ---
  1841. >       if (!this.WitnessedMurder)
  1842. 4183,4184c3693
  1843. <           this.SwitchBack = true;
  1844. <           if (this.Corpse != null)
  1845. ---
  1846. >           if (this.Persona == 3)
  1847. 4186c3695,3703
  1848. <               this.Persona = 2;
  1849. ---
  1850. >               this.SwitchBack = true;
  1851. >               if (this.Corpse != null)
  1852. >               {
  1853. >                   this.Persona = 2;
  1854. >               }
  1855. >               else
  1856. >               {
  1857. >                   this.Persona = 1;
  1858. >               }
  1859. 4188c3705
  1860. <           else
  1861. ---
  1862. >           else if (this.Persona == 4 || this.Persona == 5)
  1863. 4197c3714
  1864. <               this.Subtitle.UpdateLabel("Coward Murder Reaction", 1, (float)3);
  1865. ---
  1866. >               this.Subtitle.UpdateLabel("Loner Murder Reaction", 1, (float)3);
  1867. 4201c3718
  1868. <               this.Subtitle.UpdateLabel("Coward Corpse Reaction", 1, (float)3);
  1869. ---
  1870. >               this.Subtitle.UpdateLabel("Loner Corpse Reaction", 1, (float)3);
  1871. 4283a3801,3826
  1872. >       else if (this.Persona == 4)
  1873. >       {
  1874. >           this.CurrentDestination = this.transform;
  1875. >           this.Pathfinding.target = this.transform;
  1876. >           this.Subtitle.UpdateLabel("Coward Murder Reaction", 1, (float)5);
  1877. >           this.Routine = false;
  1878. >           this.Fleeing = true;
  1879. >       }
  1880. >       else if (this.Persona == 5)
  1881. >       {
  1882. >           this.CurrentDestination = this.transform;
  1883. >           this.Pathfinding.target = this.transform;
  1884. >           this.Subtitle.UpdateLabel("Evil Murder Reaction", 1, (float)5);
  1885. >           this.Routine = false;
  1886. >           this.Fleeing = true;
  1887. >       }
  1888. >       else if (this.Persona == 6)
  1889. >       {
  1890. >           this.CurrentDestination = this.Destinations[this.Phase];
  1891. >           this.Pathfinding.target = this.Destinations[this.Phase];
  1892. >           this.Subtitle.UpdateLabel("Social Death Reaction", 1, (float)5);
  1893. >           this.ReportPhase = 1;
  1894. >           this.Routine = false;
  1895. >           this.Fleeing = true;
  1896. >           this.Halt = true;
  1897. >       }
  1898. 4335,4338c3878
  1899. <       if (this.Yandere.PickUp != null)
  1900. <       {
  1901. <           this.Yandere.EmptyHands();
  1902. <       }
  1903. ---
  1904. >       this.Yandere.EmptyHands();
  1905. 4462,4838d4001
  1906. <   public override void SetColors()
  1907. <   {
  1908. <       string a = "Default";
  1909. <       string text = this.JSON.StudentStockings[this.StudentID];
  1910. <       this.HairColor = this.JSON.StudentColors[this.StudentID];
  1911. <       this.ID = 1;
  1912. <       if (!this.Male)
  1913. <       {
  1914. <           if (this.HairColor == "Red")
  1915. <           {
  1916. <               this.HairTexture = this.StudentManager.Colors[0];
  1917. <           }
  1918. <           else if (this.HairColor == "Yellow")
  1919. <           {
  1920. <               this.HairTexture = this.StudentManager.Colors[1];
  1921. <           }
  1922. <           else if (this.HairColor == "Green")
  1923. <           {
  1924. <               this.HairTexture = this.StudentManager.Colors[2];
  1925. <           }
  1926. <           else if (this.HairColor == "Cyan")
  1927. <           {
  1928. <               this.HairTexture = this.StudentManager.Colors[3];
  1929. <           }
  1930. <           else if (this.HairColor == "Blue")
  1931. <           {
  1932. <               this.HairTexture = this.StudentManager.Colors[4];
  1933. <           }
  1934. <           else if (this.HairColor == "Purple")
  1935. <           {
  1936. <               this.HairTexture = this.StudentManager.Colors[5];
  1937. <               this.DrillTexture = this.StudentManager.Colors[6];
  1938. <           }
  1939. <           else if (this.HairColor == "Brown")
  1940. <           {
  1941. <               this.HairTexture = this.StudentManager.Colors[7];
  1942. <           }
  1943. <           else if (this.HairColor == "Pippi")
  1944. <           {
  1945. <               this.HairTexture = this.StudentManager.Colors[8];
  1946. <           }
  1947. <           else if (this.HairColor == "Black")
  1948. <           {
  1949. <               this.HairTexture = this.StudentManager.Colors[9];
  1950. <           }
  1951. <           else if (this.HairColor == "LongGreen")
  1952. <           {
  1953. <               this.HairTexture = this.StudentManager.Colors[10];
  1954. <           }
  1955. <           else if (this.HairColor == "Succubus1")
  1956. <           {
  1957. <               this.HairTexture = this.StudentManager.Colors[11];
  1958. <           }
  1959. <           else if (this.HairColor == "Succubus2")
  1960. <           {
  1961. <               this.HairTexture = this.StudentManager.Colors[12];
  1962. <           }
  1963. <           else if (this.HairColor == "Kuudere")
  1964. <           {
  1965. <               this.HairTexture = this.StudentManager.Colors[13];
  1966. <           }
  1967. <           else if (this.HairColor == "LongPink")
  1968. <           {
  1969. <               this.HairTexture = this.StudentManager.Colors[14];
  1970. <           }
  1971. <           else if (this.HairColor == "ShortBrown")
  1972. <           {
  1973. <               this.HairTexture = this.StudentManager.Colors[15];
  1974. <           }
  1975. <           else if (this.HairColor == "ShortOrange")
  1976. <           {
  1977. <               this.HairTexture = this.StudentManager.Colors[16];
  1978. <           }
  1979. <           else if (this.HairColor == "Occult1")
  1980. <           {
  1981. <               this.HairTexture = this.StudentManager.Colors[17];
  1982. <               this.FaceTexture = this.HairTexture;
  1983. <           }
  1984. <           else if (this.HairColor == "Occult3")
  1985. <           {
  1986. <               this.HairTexture = this.StudentManager.Colors[19];
  1987. <               this.FaceTexture = this.HairTexture;
  1988. <           }
  1989. <           else if (this.HairColor == "Occult5")
  1990. <           {
  1991. <               this.HairTexture = this.StudentManager.Colors[21];
  1992. <               this.FaceTexture = this.HairTexture;
  1993. <           }
  1994. <           this.PonyRenderer.material.mainTexture = this.HairTexture;
  1995. <           this.NewLongHair.material.mainTexture = this.HairTexture;
  1996. <           this.ShortHair.material.mainTexture = this.HairTexture;
  1997. <           this.LongHair.material.mainTexture = this.HairTexture;
  1998. <           this.PigtailR.material.mainTexture = this.HairTexture;
  1999. <           this.PigtailL.material.mainTexture = this.HairTexture;
  2000. <           this.Drills.materials[0].mainTexture = this.DrillTexture;
  2001. <           this.Drills.materials[1].mainTexture = this.DrillTexture;
  2002. <           this.Drills.materials[2].mainTexture = this.DrillTexture;
  2003. <       }
  2004. <       else
  2005. <       {
  2006. <           int num;
  2007. <           if (this.StudentID > 1)
  2008. <           {
  2009. <               num = UnityBuiltins.parseInt(this.Hairstyle);
  2010. <           }
  2011. <           else if (PlayerPrefs.GetInt("CustomSenpai") == 1)
  2012. <           {
  2013. <               num = UnityBuiltins.parseInt(PlayerPrefs.GetInt("SenpaiHairStyle"));
  2014. <               a = PlayerPrefs.GetString("SenpaiEyeColor");
  2015. <               this.HairColor = PlayerPrefs.GetString("SenpaiHairColor");
  2016. <           }
  2017. <           else
  2018. <           {
  2019. <               this.HairColor = "Black";
  2020. <               num = 1;
  2021. <           }
  2022. <           if (num > 0)
  2023. <           {
  2024. <               this.MaleHairstyles[num].active = true;
  2025. <               if (this.Club == 5)
  2026. <               {
  2027. <                   int num2 = -1;
  2028. <                   Vector3 localScale = this.MaleHairstyles[num].transform.localScale;
  2029. <                   float num3 = localScale.x = (float)num2;
  2030. <                   Vector3 vector = this.MaleHairstyles[num].transform.localScale = localScale;
  2031. <               }
  2032. <               if (num < 10)
  2033. <               {
  2034. <                   this.MaleHairRenderer = (Renderer)this.MaleHairstyles[num].GetComponent(typeof(Renderer));
  2035. <               }
  2036. <           }
  2037. <           if (this.MaleHairRenderer != null)
  2038. <           {
  2039. <               if (num < 10)
  2040. <               {
  2041. <                   if (this.HairColor == "Black")
  2042. <                   {
  2043. <                       this.MaleHairRenderer.material.color = new Color(0.5f, 0.5f, 0.5f);
  2044. <                   }
  2045. <                   else if (this.HairColor == "Red")
  2046. <                   {
  2047. <                       this.MaleHairRenderer.material.color = new Color((float)1, (float)0, (float)0);
  2048. <                   }
  2049. <                   else if (this.HairColor == "Yellow")
  2050. <                   {
  2051. <                       this.MaleHairRenderer.material.color = new Color((float)1, (float)1, (float)0);
  2052. <                   }
  2053. <                   else if (this.HairColor == "Green")
  2054. <                   {
  2055. <                       this.MaleHairRenderer.material.color = new Color((float)0, (float)1, (float)0);
  2056. <                   }
  2057. <                   else if (this.HairColor == "Cyan")
  2058. <                   {
  2059. <                       this.MaleHairRenderer.material.color = new Color((float)0, (float)1, (float)1);
  2060. <                   }
  2061. <                   else if (this.HairColor == "Blue")
  2062. <                   {
  2063. <                       this.MaleHairRenderer.material.color = new Color((float)0, (float)0, (float)1);
  2064. <                   }
  2065. <                   else if (this.HairColor == "Purple")
  2066. <                   {
  2067. <                       this.MaleHairRenderer.material.color = new Color((float)1, (float)0, (float)1);
  2068. <                   }
  2069. <                   else if (this.HairColor == "Default")
  2070. <                   {
  2071. <                       this.MaleHairRenderer.material.color = new Color((float)1, (float)1, (float)1);
  2072. <                   }
  2073. <                   else if (this.HairColor == "Orange")
  2074. <                   {
  2075. <                       this.MaleHairRenderer.material.color = new Color((float)1, 0.5f, (float)0);
  2076. <                   }
  2077. <                   else if (this.HairColor == "Brown")
  2078. <                   {
  2079. <                       this.MaleHairRenderer.material.color = new Color(0.5f, 0.25f, (float)0);
  2080. <                   }
  2081. <               }
  2082. <           }
  2083. <           else if (this.HairColor == "Occult2" || this.HairColor == "Occult4" || this.HairColor == "Occult6")
  2084. <           {
  2085. <               this.MaleHairRenderer = (Renderer)this.MaleHairstyles[UnityBuiltins.parseInt(this.Hairstyle)].GetComponent(typeof(Renderer));
  2086. <               this.EyeR.material.mainTexture = this.MaleHairRenderer.material.mainTexture;
  2087. <               this.EyeL.material.mainTexture = this.MaleHairRenderer.material.mainTexture;
  2088. <           }
  2089. <           if (this.StudentID > 1)
  2090. <           {
  2091. <               if (num < 10)
  2092. <               {
  2093. <                   this.EyeR.material.color = this.MaleHairRenderer.material.color;
  2094. <                   this.EyeL.material.color = this.MaleHairRenderer.material.color;
  2095. <               }
  2096. <           }
  2097. <           else
  2098. <           {
  2099. <               if (a == "Red")
  2100. <               {
  2101. <                   this.EyeColor = new Color((float)1, (float)0, (float)0);
  2102. <               }
  2103. <               else if (a == "Yellow")
  2104. <               {
  2105. <                   this.EyeColor = new Color((float)1, (float)1, (float)0);
  2106. <               }
  2107. <               else if (a == "Green")
  2108. <               {
  2109. <                   this.EyeColor = new Color((float)0, (float)1, (float)0);
  2110. <               }
  2111. <               else if (a == "Cyan")
  2112. <               {
  2113. <                   this.EyeColor = new Color((float)0, (float)1, (float)1);
  2114. <               }
  2115. <               else if (a == "Blue")
  2116. <               {
  2117. <                   this.EyeColor = new Color((float)0, (float)0, (float)1);
  2118. <               }
  2119. <               else if (a == "Purple")
  2120. <               {
  2121. <                   this.EyeColor = new Color((float)1, (float)0, (float)1);
  2122. <               }
  2123. <               else if (a == "Default")
  2124. <               {
  2125. <                   this.EyeColor = new Color((float)1, (float)1, (float)1);
  2126. <               }
  2127. <               else if (a == "Orange")
  2128. <               {
  2129. <                   this.EyeColor = new Color((float)1, 0.5f, (float)0);
  2130. <               }
  2131. <               else if (a == "Brown")
  2132. <               {
  2133. <                   this.EyeColor = new Color(0.5f, 0.25f, (float)0);
  2134. <               }
  2135. <               else if (a == "Black")
  2136. <               {
  2137. <                   this.EyeColor = new Color(0.5f, 0.5f, 0.5f);
  2138. <               }
  2139. <               this.EyeR.material.color = this.EyeColor;
  2140. <               this.EyeL.material.color = this.EyeColor;
  2141. <           }
  2142. <       }
  2143. <       if (!this.Male)
  2144. <       {
  2145. <           if (!this.Teacher)
  2146. <           {
  2147. <               this.SetFemaleUniform();
  2148. <           }
  2149. <       }
  2150. <       else
  2151. <       {
  2152. <           this.SetMaleUniform();
  2153. <       }
  2154. <       this.ID = 0;
  2155. <       while (this.ID < Extensions.get_length(this.Outlines))
  2156. <       {
  2157. <           if (this.Outlines[this.ID].h != null)
  2158. <           {
  2159. <               this.Outlines[this.ID].h.ReinitMaterials();
  2160. <           }
  2161. <           this.ID++;
  2162. <       }
  2163. <   }
  2164. <
  2165. <   public override void UpdateHair()
  2166. <   {
  2167. <       this.PigtailR.transform.parent.transform.parent.transform.localScale = new Vector3((float)1, 0.75f, (float)1);
  2168. <       this.PigtailL.transform.parent.transform.parent.transform.localScale = new Vector3((float)1, 0.75f, (float)1);
  2169. <       this.TwinPony.transform.parent.gameObject.active = false;
  2170. <       this.PonyRenderer.gameObject.active = false;
  2171. <       this.NewLongHair.gameObject.active = false;
  2172. <       this.OccultHair[1].active = false;
  2173. <       this.OccultHair[3].active = false;
  2174. <       this.OccultHair[5].active = false;
  2175. <       this.TeacherHair.active = false;
  2176. <       this.CirnoHair.active = false;
  2177. <       this.PippiHair.active = false;
  2178. <       this.ShortHair.active = false;
  2179. <       this.LongHair.active = false;
  2180. <       this.TwinPony.active = false;
  2181. <       this.PigtailR.active = false;
  2182. <       this.PigtailL.active = false;
  2183. <       this.Drills.active = false;
  2184. <       this.HidePony = true;
  2185. <       if (this.Hairstyle == "PonyTail")
  2186. <       {
  2187. <           this.PonyRenderer.gameObject.active = true;
  2188. <           this.HidePony = false;
  2189. <           this.Ponytail.localScale = new Vector3((float)1, (float)1, (float)1);
  2190. <           this.HairR.localScale = new Vector3((float)1, (float)1, (float)1);
  2191. <           this.HairL.localScale = new Vector3((float)1, (float)1, (float)1);
  2192. <       }
  2193. <       else if (this.Hairstyle == "RightTail")
  2194. <       {
  2195. <           this.PonyRenderer.gameObject.active = true;
  2196. <           this.PigtailR.active = true;
  2197. <       }
  2198. <       else if (this.Hairstyle == "LeftTail")
  2199. <       {
  2200. <           this.PonyRenderer.gameObject.active = true;
  2201. <           this.PigtailL.active = true;
  2202. <       }
  2203. <       else if (this.Hairstyle == "PigTails")
  2204. <       {
  2205. <           this.PonyRenderer.gameObject.active = true;
  2206. <           this.PigtailR.active = true;
  2207. <           this.PigtailL.active = true;
  2208. <       }
  2209. <       else if (this.Hairstyle == "TriTails")
  2210. <       {
  2211. <           this.PigtailR.active = true;
  2212. <           this.PigtailL.active = true;
  2213. <           this.HidePony = false;
  2214. <           this.PonyRenderer.gameObject.active = true;
  2215. <           this.Ponytail.localScale = new Vector3((float)1, (float)1, (float)1);
  2216. <           this.HairR.localScale = new Vector3((float)1, (float)1, (float)1);
  2217. <           this.HairL.localScale = new Vector3((float)1, (float)1, (float)1);
  2218. <       }
  2219. <       else if (this.Hairstyle == "TwinTails")
  2220. <       {
  2221. <           this.PonyRenderer.gameObject.active = true;
  2222. <           this.PigtailR.active = true;
  2223. <           this.PigtailL.active = true;
  2224. <           this.PigtailR.transform.parent.transform.parent.transform.localScale = new Vector3((float)2, (float)2, (float)2);
  2225. <           this.PigtailL.transform.parent.transform.parent.transform.localScale = new Vector3((float)2, (float)2, (float)2);
  2226. <       }
  2227. <       else if (this.Hairstyle == "Drills")
  2228. <       {
  2229. <           this.PonyRenderer.gameObject.active = true;
  2230. <           this.Drills.active = true;
  2231. <       }
  2232. <       else if (this.Hairstyle == "Short")
  2233. <       {
  2234. <           this.ShortHair.active = true;
  2235. <       }
  2236. <       else if (this.Hairstyle == "Pippi")
  2237. <       {
  2238. <           this.PonyRenderer.gameObject.active = false;
  2239. <           this.PippiHair.active = true;
  2240. <       }
  2241. <       else if (this.Hairstyle == "Cirno")
  2242. <       {
  2243. <           this.CirnoHair.active = true;
  2244. <       }
  2245. <       else if (this.Hairstyle == "Long")
  2246. <       {
  2247. <           this.LongHair.active = true;
  2248. <       }
  2249. <       else if (this.Hairstyle == "NewLong")
  2250. <       {
  2251. <           this.NewLongHair.active = true;
  2252. <       }
  2253. <       else if (this.Hairstyle == "VeryLong")
  2254. <       {
  2255. <           this.NewLongHair.active = true;
  2256. <           this.VeryLongHair = true;
  2257. <       }
  2258. <       else if (this.Hairstyle == "TwinPony")
  2259. <       {
  2260. <           this.TwinPony.transform.parent.gameObject.active = true;
  2261. <           this.TwinPony.active = true;
  2262. <       }
  2263. <       else if (this.Hairstyle == "Occult1")
  2264. <       {
  2265. <           this.OccultHair[1].active = true;
  2266. <           this.Emo = true;
  2267. <       }
  2268. <       else if (this.Hairstyle == "Occult3")
  2269. <       {
  2270. <           this.OccultHair[3].active = true;
  2271. <       }
  2272. <       else if (this.Hairstyle == "Occult5")
  2273. <       {
  2274. <           this.OccultHair[5].active = true;
  2275. <       }
  2276. <       else if (this.Hairstyle == "Teacher")
  2277. <       {
  2278. <           this.PonyRenderer.gameObject.active = false;
  2279. <           this.TeacherHair.active = true;
  2280. <       }
  2281. <   }
  2282. <
  2283. 4860d4022
  2284. <       this.MyRenderer.sharedMesh = this.TeacherMesh;
  2285. 4863d4024
  2286. <       this.TeacherGlasses.active = true;
  2287. 4866,4892d4026
  2288. <       this.MyRenderer.materials[0].mainTexture = this.TeacherBodyTexture;
  2289. <       this.MyRenderer.materials[1].mainTexture = this.TeacherFaceTexture;
  2290. <       this.MyRenderer.materials[2].mainTexture = this.TeacherBodyTexture;
  2291. <       if (this.HairColor == "Brown1")
  2292. <       {
  2293. <           this.TeacherHairRenderer.material.color = new Color(0.5f, 0.25f, (float)0, (float)1);
  2294. <       }
  2295. <       else if (this.HairColor == "Brown2")
  2296. <       {
  2297. <           this.TeacherHairRenderer.material.color = new Color(0.45f, 0.225f, (float)0, (float)1);
  2298. <       }
  2299. <       else if (this.HairColor == "Brown3")
  2300. <       {
  2301. <           this.TeacherHairRenderer.material.color = new Color(0.4f, 0.2f, (float)0, (float)1);
  2302. <       }
  2303. <       else if (this.HairColor == "Brown4")
  2304. <       {
  2305. <           this.TeacherHairRenderer.material.color = new Color(0.35f, 0.175f, (float)0, (float)1);
  2306. <       }
  2307. <       else if (this.HairColor == "Brown5")
  2308. <       {
  2309. <           this.TeacherHairRenderer.material.color = new Color(0.3f, 0.15f, (float)0, (float)1);
  2310. <       }
  2311. <       else if (this.HairColor == "Brown6")
  2312. <       {
  2313. <           this.TeacherHairRenderer.material.color = new Color(0.25f, 0.125f, (float)0, (float)1);
  2314. <       }
  2315. 4986d4119
  2316. <       this.Ragdoll.HidePony = this.HidePony;
  2317. 4996c4129
  2318. <       if (this.WitnessedMurder)
  2319. ---
  2320. >       if (this.WitnessedMurder && this.Persona != 5)
  2321. 5052,5103d4184
  2322. <   public override void SetMaleUniform()
  2323. <   {
  2324. <       if (this.StudentID == 1)
  2325. <       {
  2326. <           this.SkinColor = PlayerPrefs.GetInt("SenpaiSkinColor");
  2327. <       }
  2328. <       this.MyRenderer.sharedMesh = this.MaleUniforms[PlayerPrefs.GetInt("MaleUniform")];
  2329. <       this.FaceTexture = this.FaceTextures[this.SkinColor];
  2330. <       if (this.Club == 3)
  2331. <       {
  2332. <           this.FaceTexture = this.MaleHairRenderer.material.mainTexture;
  2333. <       }
  2334. <       if (PlayerPrefs.GetInt("MaleUniform") == 1)
  2335. <       {
  2336. <           this.MyRenderer.materials[0].mainTexture = this.SkinTextures[this.SkinColor];
  2337. <           this.MyRenderer.materials[1].mainTexture = this.MaleUniformTextures[1];
  2338. <           this.MyRenderer.materials[2].mainTexture = this.FaceTexture;
  2339. <       }
  2340. <       else if (PlayerPrefs.GetInt("MaleUniform") == 2)
  2341. <       {
  2342. <           this.MyRenderer.materials[0].mainTexture = this.MaleUniformTextures[2];
  2343. <           this.MyRenderer.materials[1].mainTexture = this.FaceTexture;
  2344. <           this.MyRenderer.materials[2].mainTexture = this.SkinTextures[this.SkinColor];
  2345. <       }
  2346. <       else if (PlayerPrefs.GetInt("MaleUniform") == 3)
  2347. <       {
  2348. <           this.MyRenderer.materials[0].mainTexture = this.MaleUniformTextures[3];
  2349. <           this.MyRenderer.materials[1].mainTexture = this.FaceTexture;
  2350. <           this.MyRenderer.materials[2].mainTexture = this.SkinTextures[this.SkinColor];
  2351. <       }
  2352. <       else if (PlayerPrefs.GetInt("MaleUniform") == 4)
  2353. <       {
  2354. <           this.MyRenderer.materials[0].mainTexture = this.FaceTexture;
  2355. <           this.MyRenderer.materials[1].mainTexture = this.SkinTextures[this.SkinColor];
  2356. <           this.MyRenderer.materials[2].mainTexture = this.MaleUniformTextures[4];
  2357. <       }
  2358. <       else if (PlayerPrefs.GetInt("MaleUniform") == 5)
  2359. <       {
  2360. <           this.MyRenderer.materials[0].mainTexture = this.FaceTexture;
  2361. <           this.MyRenderer.materials[1].mainTexture = this.SkinTextures[this.SkinColor];
  2362. <           this.MyRenderer.materials[2].mainTexture = this.MaleUniformTextures[5];
  2363. <       }
  2364. <   }
  2365. <
  2366. <   public override void SetFemaleUniform()
  2367. <   {
  2368. <       this.MyRenderer.sharedMesh = this.FemaleUniforms[PlayerPrefs.GetInt("FemaleUniform")];
  2369. <       this.MyRenderer.materials[0].mainTexture = this.FemaleUniformTextures[PlayerPrefs.GetInt("FemaleUniform")];
  2370. <       this.MyRenderer.materials[1].mainTexture = this.FemaleUniformTextures[PlayerPrefs.GetInt("FemaleUniform")];
  2371. <       this.MyRenderer.materials[2].mainTexture = this.HairTexture;
  2372. <   }
  2373. <
  2374. 5109c4190
  2375. <           this.MyRenderer.materials[0].mainTexture = this.HairTexture;
  2376. ---
  2377. >           this.MyRenderer.materials[0].mainTexture = this.Cosmetic.FaceTexture;
  2378. 5117c4198
  2379. <           this.MyRenderer.materials[2].mainTexture = this.FaceTextures[this.SkinColor];
  2380. ---
  2381. >           this.MyRenderer.materials[2].mainTexture = this.Cosmetic.FaceTextures[this.SkinColor];
  2382. 5144,5145c4225,4232
  2383. <           this.MyRenderer.sharedMesh = this.SchoolUniform;
  2384. <           this.SetColors();
  2385. ---
  2386. >           if (!this.Male)
  2387. >           {
  2388. >               this.Cosmetic.SetFemaleUniform();
  2389. >           }
  2390. >           else
  2391. >           {
  2392. >               this.Cosmetic.SetMaleUniform();
  2393. >           }
  2394. 5156c4243,4251
  2395. <           this.MyRenderer.materials[2].mainTexture = this.HairTexture;
  2396. ---
  2397. >           this.MyRenderer.materials[2].mainTexture = this.Cosmetic.FaceTexture;
  2398. >       }
  2399. >       while (this.ID < Extensions.get_length(this.Outlines))
  2400. >       {
  2401. >           if (this.Outlines[this.ID].h != null)
  2402. >           {
  2403. >               this.Outlines[this.ID].h.ReinitMaterials();
  2404. >           }
  2405. >           this.ID++;
  2406. 5168a4264,4272
  2407. >       if (!this.Male)
  2408. >       {
  2409. >           this.Cosmetic.FaceTexture = this.TitanFaceTexture;
  2410. >       }
  2411. >       else
  2412. >       {
  2413. >           this.Cosmetic.FaceTextures[this.SkinColor] = this.TitanFaceTexture;
  2414. >       }
  2415. >       this.NudeTexture = this.TitanBodyTexture;
  2416. 5225a4330,4333
  2417. >       if (this.Dying && this.Yandere.Weapon[this.Yandere.Equipped].WeaponID == 7)
  2418. >       {
  2419. >           ((AlarmDiscScript)gameObject.GetComponent(typeof(AlarmDiscScript))).Long = true;
  2420. >       }
  2421. 5240c4348
  2422. <                   this.MyRenderer.materials[2].mainTexture = this.HairTexture;
  2423. ---
  2424. >                   this.MyRenderer.materials[2].mainTexture = this.Cosmetic.FaceTexture;
  2425. 5245c4353
  2426. <                   this.MyRenderer.materials[1].mainTexture = this.HairTexture;
  2427. ---
  2428. >                   this.MyRenderer.materials[1].mainTexture = this.Cosmetic.FaceTexture;
  2429. 5248a4357,4364
  2430. >           if (this.StudentID == 21)
  2431. >           {
  2432. >               float z = 0.01f;
  2433. >               Vector3 localPosition = this.Armband.transform.localPosition;
  2434. >               float num = localPosition.z = z;
  2435. >               Vector3 vector = this.Armband.transform.localPosition = localPosition;
  2436. >               this.Armband.transform.localScale = new Vector3(1.3f, 1.3f, 1.3f);
  2437. >           }
  2438. 5253a4370,4412
  2439. >           if (this.StudentID == 21)
  2440. >           {
  2441. >               float z2 = 0.012f;
  2442. >               Vector3 localPosition2 = this.Armband.transform.localPosition;
  2443. >               float num2 = localPosition2.z = z2;
  2444. >               Vector3 vector2 = this.Armband.transform.localPosition = localPosition2;
  2445. >               this.Armband.transform.localScale = new Vector3(1.2f, 1.2f, 1.2f);
  2446. >           }
  2447. >       }
  2448. >   }
  2449. >
  2450. >   public override void CameraReact()
  2451. >   {
  2452. >       this.Pathfinding.canSearch = false;
  2453. >       this.Pathfinding.canMove = false;
  2454. >       this.Obstacle.enabled = true;
  2455. >       this.CameraReacting = true;
  2456. >       this.CameraReactPhase = 1;
  2457. >       this.Routine = false;
  2458. >       if (!this.Yandere.ClubCamera.active)
  2459. >       {
  2460. >           this.Character.animation.CrossFade(this.CameraAnims[1]);
  2461. >       }
  2462. >       else
  2463. >       {
  2464. >           this.Character.animation.CrossFade(this.IdleAnim);
  2465. >       }
  2466. >   }
  2467. >
  2468. >   public override void LookForYandere()
  2469. >   {
  2470. >       if (!this.Yandere.Chased)
  2471. >       {
  2472. >           this.Planes = GeometryUtility.CalculateFrustumPlanes(this.VisionCone);
  2473. >           if (GeometryUtility.TestPlanesAABB(this.Planes, this.Yandere.collider.bounds))
  2474. >           {
  2475. >               RaycastHit raycastHit = default(RaycastHit);
  2476. >               Debug.DrawLine(this.Eyes.transform.position, this.Yandere.transform.position + Vector3.up * (float)1, Color.green);
  2477. >               if (Physics.Linecast(this.Eyes.transform.position, this.Yandere.transform.position + Vector3.up * (float)1, out raycastHit) && raycastHit.collider.gameObject == this.Yandere.gameObject)
  2478. >               {
  2479. >                   this.ReportPhase++;
  2480. >               }
  2481. >           }
RAW Paste Data
Top