feat: Add ghost mode

This commit is contained in:
VAC committed 2026-10-16 00:38:47 -03:00
1 parent 6b3dcccc7c
commit 7d5115ded4
7 files changed
+18 -2

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ public static class Hotkeys
new(InterfaceGroup, "NpcSpawner", "NPC Spawner", () => WindowManager.Toggle(WindowManager.Npcs)), new(InterfaceGroup, "NpcSpawner", "NPC Spawner", () => WindowManager.Toggle(WindowManager.Npcs)),
Toggle("Player", "GodMode", "God Mode", () => Settings.GodMode, v => Settings.GodMode = v), 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", "AutoHeal", "Auto Heal", () => Settings.AutoHeal, v => Settings.AutoHeal = v),
Toggle("Player", "AutoMana", "Auto Mana", () => Settings.AutoMana, v => Settings.AutoMana = v), Toggle("Player", "AutoMana", "Auto Mana", () => Settings.AutoMana, v => Settings.AutoMana = v),
new("Player", "FullHeal", "Full Heal", PlayerFeatures.FullHeal), new("Player", "FullHeal", "Full Heal", PlayerFeatures.FullHeal),
+1
View File
@@ -17,6 +17,7 @@ public static partial class Settings
[nameof(AutoMana)] = "Player.AutoMana.Enabled", [nameof(AutoMana)] = "Player.AutoMana.Enabled",
[nameof(AutoManaAt)] = "Player.AutoMana.Threshold", [nameof(AutoManaAt)] = "Player.AutoMana.Threshold",
[nameof(BuffMinutes)] = "Player.Buffs.Minutes", [nameof(BuffMinutes)] = "Player.Buffs.Minutes",
[nameof(GhostMode)] = "Player.GhostMode",
[nameof(Fly)] = "Movement.Fly.Enabled", [nameof(Fly)] = "Movement.Fly.Enabled",
[nameof(FlySpeed)] = "Movement.Fly.Speed", [nameof(FlySpeed)] = "Movement.Fly.Speed",
+1 -1
View File
@@ -23,7 +23,7 @@ public enum EspBoxStyle
public static partial class Settings public static partial class Settings
{ {
public static bool GodMode, InfHealth, InfMana, InfBreath, InfFlight, InstantRespawn; 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 float AutoHealAt = 40f, AutoManaAt = 25f, BuffMinutes = 10f;
public static bool Fly, SuperSpeed, HighJump, NoFallDamage, LavaImmune, WaterWalk, NoKnockback, GravityFlip, ExtendedReach; public static bool Fly, SuperSpeed, HighJump, NoFallDamage, LavaImmune, WaterWalk, NoKnockback, GravityFlip, ExtendedReach;
+12
View File
@@ -92,9 +92,21 @@ public static class PlayerFeatures
Player.tileRangeY = Settings.ReachY; Player.tileRangeY = Settings.ReachY;
} }
if (Settings.GhostMode)
ApplyGhost(player);
ApplyVision(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) static void ApplyVision(Player player)
{ {
if (Settings.Spelunker) if (Settings.Spelunker)
+1
View File
@@ -19,6 +19,7 @@ public sealed partial class MainWindow
{ {
Group("Survival"); Group("Survival");
Toggle("God Mode", ref Settings.GodMode); Toggle("God Mode", ref Settings.GodMode);
Toggle("Ghost Mode", ref Settings.GhostMode);
Toggle("Infinite Breath", ref Settings.InfBreath); Toggle("Infinite Breath", ref Settings.InfBreath);
Toggle("Infinite Flight", ref Settings.InfFlight); Toggle("Infinite Flight", ref Settings.InfFlight);
Toggle("Infinite Health", ref Settings.InfHealth); Toggle("Infinite Health", ref Settings.InfHealth);
+1
View File
@@ -12,6 +12,7 @@ public sealed partial class MainWindow
["Infinite Flight"] = "Unlimited wing and rocket boot flight time.", ["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 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.", ["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.", ["Fly"] = "Move through blocks with your movement keys. Up or Jump rises; Down descends.",
["Gravity Flip"] = "Walk on the ceiling.", ["Gravity Flip"] = "Walk on the ceiling.",
["Lava Immune"] = "Also protects against hot blocks.", ["Lava Immune"] = "Also protects against hot blocks.",
+1 -1
View File
@@ -30,7 +30,7 @@ public sealed partial class MainWindow : Window
Open = true; Open = true;
_pages = _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("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("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)), new Page("Items", ItemsPage, () => Count(Settings.InstantBreak, Settings.InfItems, Settings.ItemVacuum, Settings.AutoFish, Settings.Sonar)),