private static ExfiltrationPoint[] GetExfiltrationPoints(EPlayerSide side, GameWorld world) { var ect = world.ExfiltrationController; // ReSharper disable once CoVariantArrayConversion return(side == EPlayerSide.Savage ? ect.ScavExfiltrationPoints : ect.ExfiltrationPoints); }
private Color GetPlayerColor(EPlayerSide side) { switch (side) { case EPlayerSide.Bear: return(Color.red); case EPlayerSide.Usec: return(Color.blue); case EPlayerSide.Savage: return(Color.yellow); default: return(Color.white); /* * case EPlayerSide.Bear: * return ColorUtility.TryParseHtmlString(_bearColor); * case EPlayerSide.Usec: * return ColorUtility.TryParseHtmlString(_usecColor); * case EPlayerSide.Savage: * return ColorUtility.TryParseHtmlString(_scavColor); * default: * return Color.white; */ } }
private Color GetPlayerColor(EPlayerSide side) { ESPColor.r = r; ESPColor.g = g; ESPColor.b = b; ESPColor.a = 1; MarineBoy.r = rm; MarineBoy.g = gm; MarineBoy.b = bm; MarineBoy.a = 1; ScavBoy.r = rs; ScavBoy.g = gs; ScavBoy.b = bs; ScavBoy.a = 1; switch (side) { case EPlayerSide.Bear: return(ESPColor); case EPlayerSide.Usec: return(MarineBoy); case EPlayerSide.Savage: return(ScavBoy); default: return(ScavBoy); } }
static bool PatchPrefix(ref bool __result, object __instance) { EPlayerSide playerSide = (EPlayerSide)PrivateValueAccessor.GetPrivateFieldValue(__instance.GetType(), "side", __instance); if (playerSide == EPlayerSide.Savage) { __result = true; return(false); } return(true); }
private Color GetPlayerColor(EPlayerSide side) { switch (side) { case EPlayerSide.Bear: return(Color.red); case EPlayerSide.Usec: return(Color.blue); case EPlayerSide.Savage: return(Color.white); default: return(Color.white); } }
private static ExfiltrationPoint[] GetEligibleExfiltrationPoints(EPlayerSide side, GameWorld world, Profile profile) { var ect = world.ExfiltrationController; if (side != EPlayerSide.Savage) { return(ect.EligiblePoints(profile)); } var mask = ect.GetScavExfiltrationMask(profile.Id); var result = new List <ExfiltrationPoint>(); var points = ect.ScavExfiltrationPoints; for (int i = 0; i < 31; i++) { if ((mask & (1 << i)) != 0) { result.Add(points[i]); } } return(result.ToArray()); }
private Color GetPlayerColor(EPlayerSide side, Player player) { Bear.r = r; Bear.g = g; Bear.b = b; Bear.a = 1; USEC.r = rm; USEC.g = gm; USEC.b = bm; USEC.a = 1; Scav.r = rs; Scav.g = gs; Scav.b = bs; Scav.a = 1; if (IsVisible(player.gameObject, getBonePos(player))) { return(Color.magenta); } else { switch (side) { case EPlayerSide.Bear: return(Bear); case EPlayerSide.Usec: return(USEC); case EPlayerSide.Savage: return(Scav); default: return(Color.white); } } }