Skip to content

PythonBCI/7Days-Bot

Repository files navigation

7 Days to Die Aimbot

A sophisticated computer vision-based aimbot designed specifically for 7 Days to Die that automatically detects zombies and aims for headshots.

⚠️ IMPORTANT DISCLAIMER

This software is for educational and research purposes only. Using aimbots or similar tools in online multiplayer games may violate game terms of service and could result in account bans. Use at your own risk and only in single-player or private servers where allowed.

🚀 Features

  • Real-time zombie detection using advanced computer vision algorithms
  • Precise head detection for maximum damage output
  • Smooth aiming with configurable sensitivity and smoothing
  • Recoil compensation for different weapon types
  • Cross-platform compatibility (Windows, Linux, macOS)
  • Debug visualization for tuning and troubleshooting
  • Configurable key bindings and settings
  • Performance optimization for smooth gameplay

📋 Requirements

  • Python 3.7 or higher
  • 7 Days to Die (any version)
  • Windows 10/11, Linux, or macOS
  • At least 4GB RAM
  • Dedicated graphics card recommended

🛠️ Installation

1. Clone the Repository

git clone https://github.com/yourusername/7days-aimbot.git
cd 7days-aimbot

2. Install Dependencies

pip install -r requirements.txt

3. Verify Installation

python main.py --help

🎮 Usage

Basic Usage

# Start with default settings (center 800x600 region)
python main.py

# Start with debug visualization
python main.py --debug

# Start with full screen capture
python main.py --fullscreen

# Start with custom screen region
python main.py --region 100 100 800 600

Controls

  • F1: Toggle aimbot on/off
  • Shift: Hold to activate aiming (release to stop)
  • 1-5: Switch weapons (pistol, rifle, shotgun, sniper, SMG)
  • ESC: Exit program

Command Line Options

python main.py [OPTIONS]

Options:
  --region X Y W H     Screen capture region (X Y W H)
  --sensitivity FLOAT  Mouse sensitivity multiplier (default: 1.0)
  --smoothing FLOAT    Aim smoothing factor 0.0-1.0 (default: 0.1)
  --max-speed INT      Maximum mouse movement speed (default: 50)
  --fps INT            Target FPS (default: 60)
  --debug              Enable debug visualization
  --show-mask          Show detection mask
  --auto-shoot         Automatically shoot when target acquired
  --fullscreen         Capture full screen instead of center region
  --help               Show help message

⚙️ Configuration

Quick Configuration

Edit config.py to adjust:

  • Color detection parameters
  • Aiming sensitivity and smoothing
  • Recoil compensation values
  • Key bindings
  • Performance settings

Advanced Calibration

Use the calibration tool to fine-tune color detection:

# Start calibration tool
python calibration.py

# Start with specific region
python calibration.py --region 100 100 800 600

Calibration Controls:

  • Space: Capture current screen
  • H/S/V sliders: Adjust color detection parameters
  • S: Save current settings
  • L: Load saved settings
  • ESC: Exit calibration

🔧 Tuning for Your Setup

1. Screen Region

  • Start with center region: --region 560 240 800 600 (for 1920x1080)
  • Adjust based on your game window size and position

2. Color Detection

  • Use calibration tool to find optimal HSV values
  • Different zombie types may need different color ranges
  • Lighting conditions affect detection accuracy

3. Aiming Parameters

  • Sensitivity: Start with 1.0, increase for faster aiming
  • Smoothing: Lower values = more responsive, higher = smoother
  • Max Speed: Limit maximum mouse movement per frame

4. Performance

  • Reduce FPS if experiencing lag
  • Use smaller screen regions for better performance
  • Enable --debug only when tuning

📊 Performance Tips

For Low-End Systems

# Reduce FPS and screen region
python main.py --fps 30 --region 100 100 600 400

For High-End Systems

# Full screen with high FPS
python main.py --fullscreen --fps 120 --debug

Optimal Settings

  • FPS: 60-120 (balance between responsiveness and performance)
  • Screen Region: 800x600 to 1200x800 (balance between detection and performance)
  • Smoothing: 0.05-0.2 (lower for snipers, higher for automatic weapons)

🐛 Troubleshooting

Common Issues

"Screen capture failed"

  • Run as administrator (Windows)
  • Check screen resolution settings
  • Verify screen capture region

"No zombies detected"

  • Use calibration tool to tune color detection
  • Check lighting conditions in game
  • Verify screen region includes game area

"Mouse movement not working"

  • Check key bindings
  • Verify aimbot is enabled (F1)
  • Hold Shift key while aiming

"Poor performance"

  • Reduce FPS setting
  • Use smaller screen region
  • Close unnecessary applications
  • Update graphics drivers

Debug Mode

Enable debug visualization to see what the aimbot detects:

python main.py --debug --show-mask

🔒 Security and Privacy

  • No data collection: The aimbot doesn't send any data to external servers
  • Local processing: All detection and aiming happens on your computer
  • Open source: Code is transparent and can be audited
  • No anti-cheat detection: Uses standard screen capture methods

📁 File Structure

7days-aimbot/
├── main.py                 # Main application
├── zombie_detector.py      # Zombie detection module
├── aimbot_controller.py    # Mouse control and aiming
├── config.py              # Configuration file
├── calibration.py         # Calibration tool
├── requirements.txt       # Python dependencies
└── README.md             # This file

🤝 Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for:

  • Bug reports
  • Feature requests
  • Performance improvements
  • Documentation updates

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • OpenCV community for computer vision tools
  • PyAutoGUI for cross-platform automation
  • 7 Days to Die community for game insights

⚠️ Legal Notice

This software is provided "as is" without warranty. The authors are not responsible for any consequences of using this software. Users are responsible for ensuring compliance with applicable laws and game terms of service.


Happy zombie hunting! 🧟‍♂️🎯

About

& days bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages