// Token: 0x0600014F RID: 335 RVA: 0x0000EDA0 File Offset: 0x0000CFA0 private void Update() { if (!HotkeyOptions.UnorganizedHotkeys.ContainsKey("_Menu")) { HotkeyUtilities.AddHotkey("Misc", "Menu", "_Menu", new KeyCode[] { KeyCode.F1 }); } if ((HotkeyOptions.UnorganizedHotkeys["_Menu"].Keys.Length == 0 && Input.GetKeyDown(MenuComponent.MenuKey)) || HotkeyUtilities.IsHotkeyDown("_Menu")) { MenuComponent.IsInMenu = !MenuComponent.IsInMenu; if (MenuComponent.IsInMenu) { SectionTab.CurrentSectionTab = null; } } }
// Token: 0x0600009F RID: 159 RVA: 0x00009C0C File Offset: 0x00007E0C public static void LoadConfig(Dictionary <string, object> Config) { if (!File.Exists(ConfigManager.ConfigPath)) { return; } foreach (Type type in Assembly.GetExecutingAssembly().GetTypes()) { foreach (FieldInfo fieldInfo in from f in type.GetFields() where Attribute.IsDefined(f, typeof(SaveAttribute)) select f) { string key = string.Format("{0}_{1}", type.Name, fieldInfo.Name); Type fieldType = fieldInfo.FieldType; object value = fieldInfo.GetValue(null); if (!Config.ContainsKey(key)) { Config.Add(key, value); } try { if (Config[key].GetType() == typeof(JArray)) { Config[key] = ((JArray)Config[key]).ToObject(fieldInfo.FieldType); } if (Config[key].GetType() == typeof(JObject)) { Config[key] = ((JObject)Config[key]).ToObject(fieldInfo.FieldType); } fieldInfo.SetValue(null, fieldInfo.FieldType.IsEnum ? Enum.ToObject(fieldInfo.FieldType, Config[key]) : Convert.ChangeType(Config[key], fieldInfo.FieldType)); } catch { Config[key] = value; } } } HotkeyUtilities.Initialize(); ColorUtilities.LoadDict(); ConfigManager.SaveConfig(); }
// Token: 0x06000171 RID: 369 RVA: 0x0000FAF8 File Offset: 0x0000DCF8 public static void VehicleFlight() { InteractableVehicle vehicle = Player.player.movement.getVehicle(); if (vehicle == null) { return; } Rigidbody component = vehicle.GetComponent <Rigidbody>(); if (component == null) { return; } if (!vehicle.isDriver) { return; } if (!MiscOptions.VehicleFly) { if (MiscComponent.fly) { MiscComponent.fly = false; component.isKinematic = false; } return; } MiscComponent.fly = true; component.isKinematic = true; float num = MiscOptions.VehicleUseMaxSpeed ? (vehicle.asset.speedMax * Time.fixedDeltaTime) : (MiscOptions.SpeedMultiplier / 3f); num *= 0.98f; Transform transform = component.transform; Vector3 zero = Vector3.zero; Vector3 vector = Vector3.zero; if (HotkeyUtilities.IsHotkeyHeld("_VFRotateRight")) { zero.y += 2f; } if (HotkeyUtilities.IsHotkeyHeld("_VFRotateLeft")) { zero.y += -2f; } if (HotkeyUtilities.IsHotkeyHeld("_VFRollLeft")) { zero.z += 2f; } if (HotkeyUtilities.IsHotkeyHeld("_VFRollRight")) { zero.z += -2f; } if (HotkeyUtilities.IsHotkeyHeld("_VFRotateUp")) { zero.x += -1.5f; } if (HotkeyUtilities.IsHotkeyHeld("_VFRotateDown")) { zero.x += 1.5f; } if (HotkeyUtilities.IsHotkeyHeld("_VFStrafeUp")) { vector.y += 0.6f; } if (HotkeyUtilities.IsHotkeyHeld("_VFStrafeDown")) { vector.y -= 0.6f; } if (HotkeyUtilities.IsHotkeyHeld("_VFStrafeLeft")) { vector -= transform.right; } if (HotkeyUtilities.IsHotkeyHeld("_VFStrafeRight")) { vector += transform.right; } if (HotkeyUtilities.IsHotkeyHeld("_VFMoveForward")) { vector += transform.forward; } if (HotkeyUtilities.IsHotkeyHeld("_VFMoveBackward")) { vector -= transform.forward; } vector = vector * num + transform.position; if (!MiscOptions.VehicleRigibody) { transform.position = vector; transform.Rotate(zero); return; } component.MovePosition(vector); component.MoveRotation(transform.localRotation * Quaternion.Euler(zero)); }
public static void Initialize() { HotkeyUtilities.AddHotkey("Aimbot", "Аимбот Вкл/Выкл", "_ToggleAimbot", new KeyCode[] { KeyCode.Keypad3 }); HotkeyUtilities.AddHotkey("Aimbot", "Аимбот Клавиша", "_AimbotKey", new KeyCode[] { KeyCode.LeftControl }); HotkeyUtilities.AddHotkey("Aimbot", "Аимбот Silent Вкл/Выкл", "_ToggleSilent", new KeyCode[] { KeyCode.KeypadPlus }); HotkeyUtilities.AddHotkey("Misc", "Автоподбор", "_AutoPickup", new KeyCode[] { KeyCode.Keypad1 }); HotkeyUtilities.AddHotkey("Misc", "Выключить визуалы (Паник кей)", "_PanicButton", new KeyCode[] { KeyCode.Keypad0 }); HotkeyUtilities.AddHotkey("Misc", "Свободная камера", "_ToggleFreecam", new KeyCode[] { KeyCode.Keypad2 }); HotkeyUtilities.AddHotkey("Misc", "Медленное падение Вкл/Выкл", "_ToggleSlowFall", new KeyCode[] { KeyCode.Keypad4 }); HotkeyUtilities.AddHotkey("Misc", "Меню", "_Menu", new KeyCode[] { KeyCode.F1 }); HotkeyUtilities.AddHotkey("Weapons", "Триггербот", "_ToggleTriggerbot", new KeyCode[] { KeyCode.Keypad5 }); HotkeyUtilities.AddHotkey("Weapons", "Нет Отдачи", "_ToggleNoRecoil", new KeyCode[] { KeyCode.Keypad6 }); HotkeyUtilities.AddHotkey("Weapons", "Нет Разброса", "_ToggleNoSpread", new KeyCode[] { KeyCode.Keypad7 }); HotkeyUtilities.AddHotkey("Weapons", "Нет увода", "_ToggleNoSway", new KeyCode[] { KeyCode.Keypad8 }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Полёт на машине", "_VFToggle", new KeyCode[] { KeyCode.End }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Движение Вверх", "_VFStrafeUp", new KeyCode[] { KeyCode.Space }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Движение Вниз", "_VFStrafeDown", new KeyCode[] { KeyCode.LeftControl }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Движение Влево", "_VFStrafeLeft", new KeyCode[] { KeyCode.LeftBracket }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Движение Вправо", "_VFStrafeRight", new KeyCode[] { KeyCode.RightBracket }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Движение Вперёд", "_VFMoveForward", new KeyCode[] { KeyCode.W }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Движение Назад", "_VFMoveBackward", new KeyCode[] { KeyCode.S }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Поворот Влево", "_VFRotateLeft", new KeyCode[] { KeyCode.A }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Поворот Вправо", "_VFRotateRight", new KeyCode[] { KeyCode.D }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Поворот Вверх", "_VFRotateUp", new KeyCode[] { KeyCode.UpArrow }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Поворот Вниз", "_VFRotateDown", new KeyCode[] { KeyCode.DownArrow }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Вращать Влево", "_VFRollLeft", new KeyCode[] { KeyCode.LeftArrow }); HotkeyUtilities.AddHotkey("Vehicle Flight", "Вращать Вправо", "_VFRollRight", new KeyCode[] { KeyCode.RightArrow }); }
// Token: 0x060000FC RID: 252 RVA: 0x0000CE8C File Offset: 0x0000B08C public void Update() { if (HotkeyComponent.NeedsKeys) { List <KeyCode> currentKeys = HotkeyComponent.CurrentKeys.ToList <KeyCode>(); HotkeyComponent.CurrentKeys.Clear(); foreach (KeyCode keyCode in HotkeyComponent.Keys) { if (Input.GetKey(keyCode)) { HotkeyComponent.CurrentKeys.Add(keyCode); } } if (HotkeyComponent.CurrentKeys.Count < HotkeyComponent.CurrentKeyCount && HotkeyComponent.CurrentKeyCount > 0) { HotkeyComponent.CurrentKeys = currentKeys; HotkeyComponent.StopKeys = true; } HotkeyComponent.CurrentKeyCount = HotkeyComponent.CurrentKeys.Count; } if (MenuComponent.IsInMenu) { return; } foreach (KeyValuePair <string, Newtonsoft.Json.Serialization.Action> keyValuePair in HotkeyComponent.ActionDict) { if ((!MiscOptions.PanicMode || keyValuePair.Key == "_PanicButton") && HotkeyUtilities.IsHotkeyDown(keyValuePair.Key)) { keyValuePair.Value(); } } }