feat: Add ghost mode
This commit is contained in:
1 parent
6b3dcccc7c
commit
7d5115ded4
7 files changed
+18
-2
No files matched your search
@@ -31,6 +31,7 @@ public static class Hotkeys
|
||||
new(InterfaceGroup, "NpcSpawner", "NPC Spawner", () => WindowManager.Toggle(WindowManager.Npcs)),
|
||||
|
||||
Toggle("Player", "GodMode", "God Mode", () => Settings.GodMode, v => Settings.GodMode = v),
|
||||
Toggle("Player", "GhostMode", "Ghost Mode", () => Settings.GhostMode, v => Settings.GhostMode = v),
|
||||
Toggle("Player", "AutoHeal", "Auto Heal", () => Settings.AutoHeal, v => Settings.AutoHeal = v),
|
||||
Toggle("Player", "AutoMana", "Auto Mana", () => Settings.AutoMana, v => Settings.AutoMana = v),
|
||||
new("Player", "FullHeal", "Full Heal", PlayerFeatures.FullHeal),
|
||||
|
||||
@@ -17,6 +17,7 @@ public static partial class Settings
|
||||
[nameof(AutoMana)] = "Player.AutoMana.Enabled",
|
||||
[nameof(AutoManaAt)] = "Player.AutoMana.Threshold",
|
||||
[nameof(BuffMinutes)] = "Player.Buffs.Minutes",
|
||||
[nameof(GhostMode)] = "Player.GhostMode",
|
||||
|
||||
[nameof(Fly)] = "Movement.Fly.Enabled",
|
||||
[nameof(FlySpeed)] = "Movement.Fly.Speed",
|
||||
|
||||
@@ -23,7 +23,7 @@ public enum EspBoxStyle
|
||||
public static partial class Settings
|
||||
{
|
||||
public static bool GodMode, InfHealth, InfMana, InfBreath, InfFlight, InstantRespawn;
|
||||
public static bool AutoHeal, AutoMana;
|
||||
public static bool AutoHeal, AutoMana, GhostMode;
|
||||
public static float AutoHealAt = 40f, AutoManaAt = 25f, BuffMinutes = 10f;
|
||||
|
||||
public static bool Fly, SuperSpeed, HighJump, NoFallDamage, LavaImmune, WaterWalk, NoKnockback, GravityFlip, ExtendedReach;
|
||||
|
||||
@@ -92,9 +92,21 @@ public static class PlayerFeatures
|
||||
Player.tileRangeY = Settings.ReachY;
|
||||
}
|
||||
|
||||
if (Settings.GhostMode)
|
||||
ApplyGhost(player);
|
||||
|
||||
ApplyVision(player);
|
||||
}
|
||||
|
||||
// ResetEffects clears both every tick; NPC.TargetClosest and SetTargetTrackingValues read them.
|
||||
static void ApplyGhost(Player player)
|
||||
{
|
||||
player.aggro = -10000;
|
||||
bool[] passive = player.npcTypeNoAggro;
|
||||
for (int i = 0; i < passive.Length; i++)
|
||||
passive[i] = true;
|
||||
}
|
||||
|
||||
static void ApplyVision(Player player)
|
||||
{
|
||||
if (Settings.Spelunker)
|
||||
|
||||
@@ -19,6 +19,7 @@ public sealed partial class MainWindow
|
||||
{
|
||||
Group("Survival");
|
||||
Toggle("God Mode", ref Settings.GodMode);
|
||||
Toggle("Ghost Mode", ref Settings.GhostMode);
|
||||
Toggle("Infinite Breath", ref Settings.InfBreath);
|
||||
Toggle("Infinite Flight", ref Settings.InfFlight);
|
||||
Toggle("Infinite Health", ref Settings.InfHealth);
|
||||
|
||||
@@ -12,6 +12,7 @@ public sealed partial class MainWindow
|
||||
["Infinite Flight"] = "Unlimited wing and rocket boot flight time.",
|
||||
["Auto Heal"] = "Uses Quick Heal below the set health level. Waits for potion sickness to end.",
|
||||
["Auto Mana"] = "Uses Quick Mana below the set mana level.",
|
||||
["Ghost Mode"] = "Enemies stop chasing you. Bosses and some flying enemies still attack.",
|
||||
["Fly"] = "Move through blocks with your movement keys. Up or Jump rises; Down descends.",
|
||||
["Gravity Flip"] = "Walk on the ceiling.",
|
||||
["Lava Immune"] = "Also protects against hot blocks.",
|
||||
|
||||
@@ -30,7 +30,7 @@ public sealed partial class MainWindow : Window
|
||||
Open = true;
|
||||
_pages =
|
||||
[
|
||||
new Page("Player", PlayerPage, () => Count(Settings.GodMode, Settings.InfHealth, Settings.InfMana, Settings.InfBreath, Settings.InfFlight, Settings.InstantRespawn, Settings.AutoHeal, Settings.AutoMana)),
|
||||
new Page("Player", PlayerPage, () => Count(Settings.GodMode, Settings.InfHealth, Settings.InfMana, Settings.InfBreath, Settings.InfFlight, Settings.InstantRespawn, Settings.AutoHeal, Settings.AutoMana, Settings.GhostMode)),
|
||||
new Page("Movement", MovementPage, () => Count(Settings.Fly, Settings.SuperSpeed, Settings.HighJump, Settings.GravityFlip, Settings.NoFallDamage, Settings.LavaImmune, Settings.WaterWalk, Settings.NoKnockback, Settings.ExtendedReach)),
|
||||
new Page("Combat", CombatPage, () => Count(Settings.RapidAttack, Settings.AutoSwing, Settings.DamageBoost, Settings.NoManaCost, Settings.NoSpread, Settings.Aimbot, Settings.AutoAttack, Settings.KillAura, Settings.HitMagnet, Settings.FreezeEnemies, Settings.WeakenEnemies)),
|
||||
new Page("Items", ItemsPage, () => Count(Settings.InstantBreak, Settings.InfItems, Settings.ItemVacuum, Settings.AutoFish, Settings.Sonar)),
|
||||
|
||||
Reference in new issue
Block a user