GithubHelp home page GithubHelp logo

fluffysnaff / fluffytw Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 4.0 84.05 MB

fluffytw: Free and open-source library for DDNet bots

License: GNU General Public License v3.0

CMake 3.04% C++ 96.96%
cpp teeworlds ddnet cheating game-hacking windows linux teeworlds-hack ddracenetwork

fluffytw's Introduction

fluffytw

fluffytw is a base for Teeworlds hacking.

Installation

Before you start, make sure to clone the DDNet repository.

# do this inside DDNet main directory
cd src/game/client
git submodule add https://github.com/fluffysnaff/fluffytw.git

Add this to CMakeLists.txt:

add_subdirectory(src/game/client/fluffytw)

It should be placed before:

set(CLIENT_SRC ${ENGINE_CLIENT} ${PLATFORM_CLIENT} ${GAME_CLIENT} ${GAME_EDITOR} ${GAME_GENERATED_CLIENT})

Initialization

Inside gameclient.cpp add this:

#include <memory.h>
#include "fluffytw/f_config.h"
#include "fluffytw/f_helper.h"
std::unique_ptr<FHelper> fHelper;
std::unique_ptr<FConfig> fConfig;

Now add this code to void CGameClient::OnConsoleInit():

void CGameClient::OnConsoleInit()
{
	// ...
	fHelper = std::make_unique<FHelper>(this);
	fConfig = std::make_unique<FConfig>();
	// ...
}

Usage

  1. Visuals
    Inside players.cpp include:

    #include "game/client/fluffytw/f_config.h"
    #include "game/client/fluffytw/f_helper.h"

    Then in RenderPlayer() add:

    // ...
    fConfig->espCfg.enabled = g_Config.m_ClEspEnable; // This is an example
    fHelper->m_pVisuals->Run(ClientID, Angle, Position); // Make sure to call this
  2. Helper
    Add this in CColision class:

    // inside collision.h
    public:
        // ...
        CTile *GetTiles() const { return m_pTiles; }
  3. Bots
    Inside controls.cpp include:

    #include "game/client/fluffytw/f_helper.h"
    #include "game/client/fluffytw/f_config.h"

    Then in SnapInput(); add:

    // ...
    fConfig->aimbotCfg.enabled = false; // Set what variables you need using fConfig
    fHelper->m_pBots->Run();
    // ...

    It should be placed after:

    if(!m_aInputDirectionLeft[g_Config.m_ClDummy] && m_aInputDirectionRight[g_Config.m_ClDummy])
    	m_aInputData[g_Config.m_ClDummy].m_Direction = 1;

Possible problems

  1. If something isn't working, make sure that configs are setup right and everything is executing.
  2. Aimbot isn't working - Debug it. For example set m_CanAim always to true and see if it works.

Showcase

  1. Hitpoint scan
  2. Hook prediction & Without hook prediction

fluffytw's People

Contributors

fluffysnaff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fluffytw's Issues

2

Hello pro, I'm a newbie with zero programming background. According to your readme file, I have completed most of the operations. However, I cannot find the second item "collision.h" in the file. Can you tell me where it is located? Also, would it be possible for you to provide the compiled file if possible? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.