Update double input issues, pigman is no longer unbound, limit his weapon access too

This commit is contained in:
Michal Pikulski
2025-12-16 18:58:50 +01:00
parent 0055efaee2
commit a2eb27f8f3
9 changed files with 362 additions and 78 deletions

View File

@@ -51,11 +51,16 @@ namespace Minigames.FortFight.Projectiles
indicator.SetActive(true);
}
// Register with InputManager to capture tap-to-drop
if (Input.InputManager.Instance != null)
// Only register with InputManager if NOT AI-controlled
// AI projectiles should not accept player input
if (!IsAIControlled && Input.InputManager.Instance != null)
{
Input.InputManager.Instance.RegisterOverrideConsumer(this);
Logging.Debug("[CeilingFanProjectile] Tap-to-drop now available");
Logging.Debug("[CeilingFanProjectile] Tap-to-drop now available (Player controlled)");
}
else if (IsAIControlled)
{
Logging.Debug("[CeilingFanProjectile] AI-controlled projectile, input disabled");
}
}
}