Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Reflection;
- using BeyondBaseLib;
- using Steamworks;
- namespace SDG.Unturned
- {
- internal class H8 : Player
- {
- [SteamCall]
- public override void askScreenshot(CSteamID steamId)
- {
- if (GE.fPH.AntiSpy == "2")
- {
- HM.VnE = true;
- LevelLighting.vision = ELightingVision.NONE;
- LevelLighting.updateLighting();
- LevelLighting.updateLocal();
- if (Player.player.equipment.asset != null && Player.player.equipment.useable != null && HM.Rn1 != 0f)
- {
- FieldInfo expr_71 = HM.cn4;
- if (expr_71 != null)
- {
- expr_71.SetValue((ItemGunAsset)Player.player.equipment.asset, HM.Rn1);
- }
- FieldInfo expr_9F = HM.nnT;
- if (expr_9F != null)
- {
- expr_9F.SetValue((ItemGunAsset)Player.player.equipment.asset, HM.gnb);
- }
- MethodInfo expr_DE = typeof(UseableGun).GetMethod("updateCrosshair", BindingFlags.Instance | BindingFlags.NonPublic);
- if (expr_DE != null)
- {
- expr_DE.Invoke(Player.player.equipment.useable, new object[0]);
- }
- }
- if (HM.vnr != 0u && GE.fPH.AntiSpyChangeTime)
- {
- LightingManager.time = HM.vnr;
- }
- if (O6.HcZ)
- {
- O6.icv = true;
- O6.HcZ = false;
- jl.BI();
- }
- if (O6.jce)
- {
- O6.Jc3 = true;
- O6.jce = false;
- jl.TX();
- }
- if (O6.JcQ)
- {
- O6.xcm = true;
- O6.JcQ = false;
- jl.vq();
- }
- if (O6.ncK)
- {
- O6.mc7 = true;
- O6.ncK = false;
- jl.Dk();
- }
- }
- else if (GE.fPH.AntiSpy == "3")
- {
- HM.ynx = true;
- HM.ScreenShotWarn = true;
- this.StartCoroutine(HM.Sn9(2));
- }
- base.askScreenshot(steamId);
- }
- [CopyMethod]
- public new void DelayedAskScreenshot()
- {
- typeof(Player).GetMethod("__askScreenshot_1", BindingFlags.Instance | BindingFlags.Public).Invoke(Player.player, new object[]
- {
- HM.mnZ
- });
- }
- protected override IEnumerator takeScreenshot()
- {
- if (GE.fPH.AntiSpy == "1")
- {
- HM.ScreenShotWarn = true;
- this.StartCoroutine(HM.Sn9(2));
- return null;
- }
- return base.takeScreenshot();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement