Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. using System;
  2. using System.Collections;
  3. using System.Reflection;
  4. using BeyondBaseLib;
  5. using Steamworks;
  6.  
  7. namespace SDG.Unturned
  8. {
  9. internal class H8 : Player
  10. {
  11. [SteamCall]
  12. public override void askScreenshot(CSteamID steamId)
  13. {
  14. if (GE.fPH.AntiSpy == "2")
  15. {
  16. HM.VnE = true;
  17. LevelLighting.vision = ELightingVision.NONE;
  18. LevelLighting.updateLighting();
  19. LevelLighting.updateLocal();
  20. if (Player.player.equipment.asset != null && Player.player.equipment.useable != null && HM.Rn1 != 0f)
  21. {
  22. FieldInfo expr_71 = HM.cn4;
  23. if (expr_71 != null)
  24. {
  25. expr_71.SetValue((ItemGunAsset)Player.player.equipment.asset, HM.Rn1);
  26. }
  27. FieldInfo expr_9F = HM.nnT;
  28. if (expr_9F != null)
  29. {
  30. expr_9F.SetValue((ItemGunAsset)Player.player.equipment.asset, HM.gnb);
  31. }
  32. MethodInfo expr_DE = typeof(UseableGun).GetMethod("updateCrosshair", BindingFlags.Instance | BindingFlags.NonPublic);
  33. if (expr_DE != null)
  34. {
  35. expr_DE.Invoke(Player.player.equipment.useable, new object[0]);
  36. }
  37. }
  38. if (HM.vnr != 0u && GE.fPH.AntiSpyChangeTime)
  39. {
  40. LightingManager.time = HM.vnr;
  41. }
  42. if (O6.HcZ)
  43. {
  44. O6.icv = true;
  45. O6.HcZ = false;
  46. jl.BI();
  47. }
  48. if (O6.jce)
  49. {
  50. O6.Jc3 = true;
  51. O6.jce = false;
  52. jl.TX();
  53. }
  54. if (O6.JcQ)
  55. {
  56. O6.xcm = true;
  57. O6.JcQ = false;
  58. jl.vq();
  59. }
  60. if (O6.ncK)
  61. {
  62. O6.mc7 = true;
  63. O6.ncK = false;
  64. jl.Dk();
  65. }
  66. }
  67. else if (GE.fPH.AntiSpy == "3")
  68. {
  69. HM.ynx = true;
  70. HM.ScreenShotWarn = true;
  71. this.StartCoroutine(HM.Sn9(2));
  72. }
  73. base.askScreenshot(steamId);
  74. }
  75.  
  76. [CopyMethod]
  77. public new void DelayedAskScreenshot()
  78. {
  79. typeof(Player).GetMethod("__askScreenshot_1", BindingFlags.Instance | BindingFlags.Public).Invoke(Player.player, new object[]
  80. {
  81. HM.mnZ
  82. });
  83. }
  84.  
  85. protected override IEnumerator takeScreenshot()
  86. {
  87. if (GE.fPH.AntiSpy == "1")
  88. {
  89. HM.ScreenShotWarn = true;
  90. this.StartCoroutine(HM.Sn9(2));
  91. return null;
  92. }
  93. return base.takeScreenshot();
  94. }
  95. }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement