Skip to content

Commit

Permalink
+ flanne.GunData
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoigorr committed Jul 22, 2022
1 parent 513989f commit 3b541d9
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 14 deletions.
33 changes: 26 additions & 7 deletions Addresses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,43 @@

void Addresses::calcAddresses()
{
// flanne.Health
cHealth->maxHP = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->maxHP);
cHealth->HP = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->HP);
cHealth->isInvincible = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->isInvincible);
// flanne.Ammo
cAmmo->Ammo = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->Ammo);
cAmmo->infiniteAmmo = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->infiniteAmmo);
// flanne.PlayerController
cPlayerController->movementSpeed = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->movementSpeed);
// flanne.Player.PlayerXP
cPlayerXP->level = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->level);
cPlayerXP->xp = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->xp);
// flanne.StatMod
cStatMod->flatBonus = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->flatBonus);
cStatMod->multiplierBonus = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->multiplierBonus);
cStatMod->multiplierReduction = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->multiplierReduction);
//cAmmo->maxAmmo = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->damage);
// flanne.GunData
cGunData->damage = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->damage);
cGunData->shootCooldown = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->shootCooldown);
cGunData->maxAmmo = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->maxAmmo);
cGunData->reloadDuration = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->reloadDuration);
cGunData->numOfProjectiles = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->numOfProjectiles);
cGunData->spread = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->spread);
cGunData->knockback = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->spread);
cGunData->projectileSpeed = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->projectileSpeed);
cGunData->bounce = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->bounce);
cGunData->piercing = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->piercing);
cGunData->burnChance = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->burnChance);
cGunData->inaccuracy = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->inaccuracy);
cGunData->isSummonGun = (uintptr_t*)mem::FindDMAAddy(localPlayer, offsets->isSummonGun);
}

extern Addresses* addr = new Addresses;
extern flanne::Health* cHealth = new flanne::Health();
extern flanne::Ammo* cAmmo = new flanne::Ammo();
extern flanne::PlayerController* cPlayerController = new flanne::PlayerController();
extern flanne::Player::PlayerXP* cPlayerXP = new flanne::Player::PlayerXP();
extern flanne::StatMod* cStatMod = new flanne::StatMod();
Addresses* addr = new Addresses;
flanne::Health* cHealth = new flanne::Health();
flanne::Ammo* cAmmo = new flanne::Ammo();
flanne::PlayerController* cPlayerController = new flanne::PlayerController();
flanne::Player::PlayerXP* cPlayerXP = new flanne::Player::PlayerXP();
flanne::StatMod* cStatMod = new flanne::StatMod();
flanne::GunData* cGunData = new flanne::GunData();

20 changes: 19 additions & 1 deletion Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ namespace flanne
class Ammo
{
public:
uintptr_t* maxAmmo;
uintptr_t* Ammo;
uintptr_t* infiniteAmmo;
};
Expand Down Expand Up @@ -51,6 +50,24 @@ namespace flanne
uintptr_t* multiplierBonus;
uintptr_t* multiplierReduction;
};

class GunData
{
public:
uintptr_t* damage;
uintptr_t* shootCooldown;
uintptr_t* maxAmmo;
uintptr_t* reloadDuration;
uintptr_t* numOfProjectiles;
uintptr_t* spread;
uintptr_t* knockback;
uintptr_t* projectileSpeed;
uintptr_t* bounce;
uintptr_t* piercing;
uintptr_t* burnChance;
uintptr_t* inaccuracy;
uintptr_t* isSummonGun;
};
}

extern Addresses* addr;
Expand All @@ -59,3 +76,4 @@ extern flanne::Ammo* cAmmo;
extern flanne::PlayerController* cPlayerController;
extern flanne::Player::PlayerXP* cPlayerXP;
extern flanne::StatMod* cStatMod;
extern flanne::GunData* cGunData;
24 changes: 19 additions & 5 deletions MyMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ void MyMenu::SetStyle()
// Colors
style.Colors[ImGuiCol_TitleBg] = ImVec4(0.000f, 0.000f, 0.000f, 0.000f);
style.Colors[ImGuiCol_TitleBgActive] = ImVec4(0.000f, 0.000f, 0.000f, 0.000f);
style.Colors[ImGuiCol_WindowBg] = ImVec4(0.200f, 0.200f, 0.200f, 0.800f);

style.Colors[ImGuiCol_Border] = ImVec4(1.000f, 0.000f, 0.647f, 1.000f);
style.Colors[ImGuiCol_Separator] = ImVec4(1.000f, 0.000f, 0.647f, 1.000f);
Expand Down Expand Up @@ -53,7 +54,7 @@ void MyMenu::SetStyle()

style.TabRounding = 9.0f;

style.GrabRounding = 12.0f;
style.GrabRounding = 10.0f;
style.GrabMinSize = 15.0f;

style.ScrollbarSize = 17.0f;
Expand Down Expand Up @@ -114,20 +115,33 @@ void MyMenu::Draw()

if (info::sHealth)
{

AddSlider<int>("HP", *(int*)cHealth->HP, 1, 10);
AddSlider<int>("maxHP", *(int*)cHealth->maxHP, 1, 10);
}

ImGui::EndTabItem();
}

if (ImGui::BeginTabItem("Ammo"))
if (ImGui::BeginTabItem("Gun"))
{
AddStatus(info::sAmmo);
AddCheckBox("Infinite Ammo", &options->bAmmo);

if (info::sAmmo)
{
AddSlider<int>("Ammo", *(int*)cAmmo->Ammo, 0, 50);
AddSlider<int>("Ammo", *(int*)cAmmo->Ammo, 0, 31);
AddSlider<int>("maxAmmo", *(int*)cGunData->maxAmmo, 0, 31);
AddSlider<float>("Damage", *(float*)cGunData->damage, 0, 200);
AddSlider<float>("ShootCoolDown", *(float*)cGunData->shootCooldown, 0, 10);
AddSlider<float>("ReloadDuration", *(float*)cGunData->reloadDuration, 0, 5);
AddSlider<int>("numOfProjectiles", *(int*)cGunData->numOfProjectiles, 1, 20);
AddSlider<int>("spread", *(int*)cGunData->spread, 0, 100);
AddSlider<float>("knockback", *(float*)cGunData->knockback, 0, 100);
AddSlider<float>("projectileSpeed", *(float*)cGunData->projectileSpeed, 1, 200);
AddSlider<int>("bounce", *(int*)cGunData->bounce, 0, 8);
AddSlider<int>("piercing", *(int*)cGunData->piercing, 0, 20);
AddSlider<float>("burnChance", *(float*)cGunData, 0, 10);
AddSlider<float>("inaccuracy", *(float*)cGunData->inaccuracy, 0, 5);
}

ImGui::EndTabItem();
Expand All @@ -140,7 +154,7 @@ void MyMenu::Draw()

if (info::sSpeedHack)
{
AddSlider<float>("movementSpeed", *(float*)cPlayerController->movementSpeed, 3.f, 10.f);
AddSlider<float>("movementSpeed", *(float*)cPlayerController->movementSpeed, 3, 10);
}

ImGui::EndTabItem();
Expand Down
14 changes: 13 additions & 1 deletion Offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,19 @@ class Offsets
std::vector<unsigned int> multiplierReduction = { 0x178,0x50,0xD0,0x10,0x60,0x30,0x20 };
std::vector<unsigned int> multiplierBonus = { 0x178,0x50,0xD0,0x10,0x60,0x30,0x1C };
// flanne.GunData
std::vector<unsigned int> damage = { 0x48 };
std::vector<unsigned int> damage = { 0x218,0x180,0x10,0x60,0x48 };
std::vector<unsigned int> shootCooldown = { 0x218,0x180,0x10,0x60,0x4C };
std::vector<unsigned int> maxAmmo = { 0x218,0x180,0x10,0x60,0x50 };
std::vector<unsigned int> reloadDuration = { 0x218,0x180,0x10,0x60,0x54 };
std::vector<unsigned int> numOfProjectiles = { 0x218,0x180,0x10,0x60,0x58 };
std::vector<unsigned int> spread = { 0x218,0x180,0x10,0x60,0x5C };
std::vector<unsigned int> knokback = { 0x218,0x180,0x10,0x60,0x60 };
std::vector<unsigned int> projectileSpeed = { 0x218,0x180,0x10,0x60,0x64 };
std::vector<unsigned int> bounce = { 0x218,0x180,0x10,0x60,0x68 };
std::vector<unsigned int> piercing = { 0x218,0x180,0x10,0x60,0x6C };
std::vector<unsigned int> burnChance = { 0x218,0x180,0x10,0x60,0x70 };
std::vector<unsigned int> inaccuracy = { 0x218,0x180,0x10,0x60,0x74 };
std::vector<unsigned int> isSummonGun = { 0x218,0x180,0x10,0x60,0x78 };

};

Expand Down

0 comments on commit 3b541d9

Please sign in to comment.