Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite Eagle Eye & Super Damage #117

Merged
merged 52 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
d6213ae
Create EagleEye.cpp
Deadlineem Mar 28, 2024
4862216
Update Self.cpp
Deadlineem Mar 28, 2024
c49337f
Create SuperDamage.cpp
Deadlineem Mar 28, 2024
27b5547
Update Self.cpp
Deadlineem Mar 28, 2024
89524f9
Update Rewards.cpp
Deadlineem Mar 30, 2024
d65e96f
Update SuperDamage.cpp
Deadlineem Mar 31, 2024
2a7f064
Create NoSpread.cpp
Deadlineem Mar 31, 2024
f01774b
Create LightningStrike.cpp
Deadlineem Mar 31, 2024
ef23ebd
Update Players.cpp
Deadlineem Mar 31, 2024
c6fd9e5
Update Network.cpp
Deadlineem Mar 31, 2024
2b8719c
Create QuitSession.cpp
Deadlineem Mar 31, 2024
4e99eb4
Update Self.cpp
Deadlineem Mar 31, 2024
47ac5a8
Update LightningStrike.cpp
Deadlineem Mar 31, 2024
20ea946
Update LightningStrike.cpp
Deadlineem Mar 31, 2024
f4daf55
Update HorseGodmode.cpp
Deadlineem Apr 1, 2024
e8dd183
Merge branch 'YimMenu:master' into master
Deadlineem Apr 1, 2024
b11d1fc
Update README.md
Deadlineem Apr 1, 2024
65a3401
Update UIManager.cpp
Deadlineem Apr 1, 2024
d267f75
Update UIManager.cpp
Deadlineem Apr 1, 2024
4a85bf0
Update Menu.cpp
Deadlineem Apr 1, 2024
f9d6a56
Update Menu.hpp
Deadlineem Apr 1, 2024
70bfbc3
Update Rewards.cpp
Deadlineem Apr 3, 2024
4a89061
Update EagleEye.cpp
Deadlineem Apr 3, 2024
d45f805
Update README.md
Deadlineem Apr 3, 2024
8b4bba8
Merge branch 'YimMenu:master' into master
Deadlineem Apr 5, 2024
187c258
Update HorseGodmode.cpp
Deadlineem Apr 6, 2024
fb407c8
Update NoSpread.cpp
Deadlineem Apr 6, 2024
00de3e2
Update SuperDamage.cpp
Deadlineem Apr 6, 2024
d687673
Update SuperDamage.cpp
Deadlineem Apr 8, 2024
d0b6448
Update QuitSession.cpp
Deadlineem Apr 8, 2024
60265c8
Update InfiniteClip.cpp
Deadlineem Apr 10, 2024
25c84f2
Update InfiniteClip.cpp
Deadlineem Apr 11, 2024
2cff48a
Merge branch 'master' into master
Rxann Jun 17, 2024
4f9dc75
Update SuperDamage.cpp
Deadlineem Jun 17, 2024
745abd9
Update Network.cpp
Deadlineem Jun 17, 2024
d411dce
Update Self.cpp
Deadlineem Jun 17, 2024
d860cc3
Update EagleEye.cpp
Deadlineem Jun 27, 2024
1fb47dd
Update EagleEye.cpp
Deadlineem Jun 27, 2024
a4f64f3
Merge branch 'master' into master
Rxann Jun 27, 2024
cba34e8
Merge branch 'master' into master
Rxann Jun 30, 2024
813bcda
Update EagleEye.cpp
Deadlineem Jul 10, 2024
7465fcd
Update Self.cpp
Deadlineem Jul 10, 2024
c632c3c
Update Self.cpp
Deadlineem Jul 10, 2024
f48f787
Update UIManager.cpp
Deadlineem Jul 11, 2024
fcbd347
Update Menu.cpp
Deadlineem Jul 11, 2024
a71a797
Delete src/game/features/network/QuitSession.cpp
Deadlineem Jul 11, 2024
b84b608
Update Network.cpp
Deadlineem Jul 11, 2024
0364bca
Merge branch 'YimMenu:master' into master
Deadlineem Jul 11, 2024
4e385d0
Update Self.cpp
Deadlineem Jul 11, 2024
8fe08ae
Update NoSpread.cpp
Deadlineem Jul 11, 2024
cee98e7
Update NoSpread.cpp
Deadlineem Jul 11, 2024
f91b9e9
Fix non-updated BoolCommandItem
Rxann Jul 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/game/features/network/QuitSession.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "core/commands/Command.hpp"
#include "game/rdr/Natives.hpp"
#include "game/features/Features.hpp"
#include "core/frontend/Notifications.hpp"

namespace YimMenu::Features
{
class QuitSession : public Command
{
using Command::Command;

virtual void OnCall() override
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
{
NETWORK::NETWORK_SESSION_LEAVE_SESSION();
Notifications::Show("Session", "Quitting to Main Menu...", NotificationType::Warning);
}
};

static QuitSession _QuitSession{"quitsession", "Leave Session", "Leaves the current online session putting you at the main menu."};
}
22 changes: 22 additions & 0 deletions src/game/features/players/toxic/LightningStrike.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include "game/commands/PlayerCommand.hpp"
#include "game/features/Features.hpp"
#include "game/pointers/Pointers.hpp"
#include "game/rdr/Enums.hpp"
#include "game/rdr/Natives.hpp"


namespace YimMenu::Features
{
class LightningStrike : public PlayerCommand
{
using PlayerCommand::PlayerCommand;

virtual void OnCall(Player player) override
{
auto playerCoords = player.GetPed().GetPosition();
FIRE::ADD_EXPLOSION(playerCoords.x, playerCoords.y, playerCoords.z, 33, 5.0f, true, false, 5.0f);
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
}
};

static LightningStrike _LightningStrike{"lightning", "Lightning", "Strikes the player with lightning"};
}
33 changes: 33 additions & 0 deletions src/game/features/self/EagleEye.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include "core/commands/LoopedCommand.hpp"
#include "game/features/Features.hpp"
#include "game/rdr/Enums.hpp"
#include "game/rdr/Natives.hpp"
#include "core/frontend/Notifications.hpp"

namespace YimMenu::Features
{
class EagleEye : public LoopedCommand
{
using LoopedCommand::LoopedCommand;

virtual void OnTick() override
{
if(!PLAYER::_IS_SECONDARY_SPECIAL_ABILITY_ACTIVE(PLAYER::PLAYER_ID())) // Checks if Eagle Eye is active before toggling it on
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
{
PLAYER::_SECONDARY_SPECIAL_ABILITY_SET_ACTIVE(PLAYER::PLAYER_ID()); // Toggles Eagle Eye on
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
Notifications::Show("Eagle Eye", "Infinite Eagle eye has been enabled.", NotificationType::Success);
Notifications::Show("WARNING", "When this is active, it will always reactivate eagle eye for you, you still cannot run using it.", NotificationType::Warning);
}
PLAYER::_MODIFY_INFINITE_TRAIL_VISION(PLAYER::PLAYER_ID(), 1); // Sets Eagle Eye to Infinite
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
}

virtual void OnDisable() override
{
PLAYER::_SECONDARY_SPECIAL_ABILITY_SET_DISABLED(PLAYER::PLAYER_ID(), 1); // Disables Eagle Eye
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
PLAYER::_MODIFY_INFINITE_TRAIL_VISION(PLAYER::PLAYER_ID(), 0); // Turns off Infinite Eagle Eye
Notifications::Show("Eagle Eye", "Infinite Eagle eye has been disabled.", NotificationType::Success);
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
}
};

static EagleEye _EagleEye{"eagleeye", "Eagle Eye", "Enables Infinite/Always Active Eagle Eye."};
}
20 changes: 20 additions & 0 deletions src/game/features/self/NoSpread.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "core/commands/LoopedCommand.hpp"
#include "game/features/Features.hpp"
#include "game/rdr/Enums.hpp"
#include "game/rdr/Natives.hpp"

namespace YimMenu::Features
{
//WEAPON::_SET_PED_INFINITE_AMMO_CLIP Changes too many things to be considered, such as granting all ammo types.
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
class AccuracyMax : public LoopedCommand
{
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
using LoopedCommand::LoopedCommand;

virtual void OnTick() override
{
PED::SET_PED_ACCURACY(Self::PlayerPed, 100);
}
};

static AccuracyMax _AccuracyMax{"maxaccuracy", "No Spread", "Always perfect accuracy on shots"};
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
}
30 changes: 30 additions & 0 deletions src/game/features/self/SuperDamage.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include "core/commands/LoopedCommand.hpp"
#include "game/features/Features.hpp"
#include "game/rdr/Enums.hpp"
#include "game/rdr/Natives.hpp"

namespace YimMenu::Features
{
class SuperDamage : public LoopedCommand
{
using LoopedCommand::LoopedCommand;

virtual void OnTick() override
{
const float DAMAGE_MULT = 100000000.0;
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
PLAYER::SET_PLAYER_WEAPON_DAMAGE_MODIFIER(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_PED_ID()), DAMAGE_MULT);
PLAYER::SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_PED_ID()), DAMAGE_MULT);
PLAYER::_SET_PLAYER_EXPLOSIVE_WEAPON_DAMAGE_MODIFIER(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_PED_ID()), DAMAGE_MULT);
}

virtual void OnDisable() override
{
// Set all player weapon damage modifiers to their defaults
PLAYER::SET_PLAYER_WEAPON_DAMAGE_MODIFIER(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_PED_ID()), 1.0);
PLAYER::SET_PLAYER_MELEE_WEAPON_DAMAGE_MODIFIER(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_PED_ID()), 1.0);
PLAYER::_SET_PLAYER_EXPLOSIVE_WEAPON_DAMAGE_MODIFIER(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_PED_ID()), 1.0);
}
};

static SuperDamage _SuperDamage{"superdamage", "Super Damage", "Multiplies your damage output for All weapons (includes melee)"};
}
3 changes: 2 additions & 1 deletion src/game/frontend/submenus/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace YimMenu::Submenus
{
auto session = std::make_shared<Category>("Session");
auto spoofing = std::make_shared<Category>("Spoofing");
session->AddItem(std::make_shared<CommandItem>("quitsession"_J));
session->AddItem(std::make_shared<CommandItem>("explodeall"_J));
session->AddItem(std::make_shared<CommandItem>("maxhonorall"_J));
session->AddItem(std::make_shared<CommandItem>("minhonorall"_J));
Expand All @@ -27,4 +28,4 @@ namespace YimMenu::Submenus
AddCategory(std::move(session));
AddCategory(std::move(spoofing));
}
}
}
3 changes: 2 additions & 1 deletion src/game/frontend/submenus/Players.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ namespace YimMenu::Submenus
}));

toxic->AddItem(std::make_shared<PlayerCommandItem>("explode"_J));
toxic->AddItem(std::make_shared<PlayerCommandItem>("lightning"_J));
toxic->AddItem(std::make_shared<PlayerCommandItem>("defensive"_J));
toxic->AddItem(std::make_shared<PlayerCommandItem>("offensive"_J));
toxic->AddItem(std::make_shared<PlayerCommandItem>("maxhonor"_J));
Expand Down Expand Up @@ -320,4 +321,4 @@ namespace YimMenu::Submenus
AddCategory(std::move(kick));
}
}
}
}
3 changes: 3 additions & 0 deletions src/game/frontend/submenus/Self.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ namespace YimMenu::Submenus
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("keepcoresfilled"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("infiniteammo"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("infiniteclip"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("maxaccuracy"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("keepclean"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("antilasso"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("antihogtie"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("voicechatoverride"_J)); // TODO: move this to spoofing or network
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("drunk"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("autotp"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("superjump"_J));
globalsGroup->AddItem(std::make_shared<BoolCommandItem>("superdamage"_J));


toolsGroup->AddItem(std::make_shared<CommandItem>("suicide"_J));
Expand All @@ -96,6 +98,7 @@ namespace YimMenu::Submenus

toolsGroup->AddItem(std::make_shared<BoolCommandItem>("npcignore"_J));
toolsGroup->AddItem(std::make_shared<CommandItem>("spawnwagon"_J));
toolsGroup->AddItem(std::make_shared<BoolCommandItem>("eagleeye"_J));

movementGroup->AddItem(std::make_shared<BoolCommandItem>("noclip"_J));
static std::string ped_model_buf;
Expand Down
25 changes: 17 additions & 8 deletions src/util/Rewards.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,28 +102,37 @@ namespace YimMenu::Rewards
STREAMING::REQUEST_MODEL(hash, false);
ScriptMgr::Yield();
}

Vector3 coords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true, false);
Object obj = OBJECT::CREATE_OBJECT(hash, coords.x, coords.y, coords.z, true, NETWORK::NETWORK_IS_HOST_OF_THIS_SCRIPT(), 1, 0, 1);
float forwardX = ENTITY::GET_ENTITY_FORWARD_X(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_ID()));
Deadlineem marked this conversation as resolved.
Show resolved Hide resolved
float forwardY = ENTITY::GET_ENTITY_FORWARD_Y(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_ID()));

// Adjust the spawn position using the forward vector
float spawnOffset = 2.0f; // Adjust this offset as needed
float spawnX = coords.x + forwardX * spawnOffset;
float spawnY = coords.y + forwardY * spawnOffset;

Object obj = OBJECT::CREATE_OBJECT(hash, spawnX, spawnY, coords.z, 1, 1, 1, 0, 0);
OBJECT::PLACE_OBJECT_ON_GROUND_PROPERLY(obj, 1);
ScriptMgr::Yield();


// Set up object properties
ENTITY::SET_ENTITY_VISIBLE(obj, true);
ScriptMgr::Yield();

OBJECT::_MAKE_ITEM_CARRIABLE(obj);

NETWORK::NETWORK_REGISTER_ENTITY_AS_NETWORKED(obj);
if (NETWORK::NETWORK_DOES_NETWORK_ID_EXIST(NETWORK::OBJ_TO_NET(obj)))
{
OBJECT::PLACE_OBJECT_ON_GROUND_PROPERLY(obj, true);
ENTITY::SET_ENTITY_SHOULD_FREEZE_WAITING_ON_COLLISION(obj, true);
NETWORK::SET_NETWORK_ID_EXISTS_ON_ALL_MACHINES(NETWORK::OBJ_TO_NET(obj), true);
NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(obj);
}
ScriptMgr::Yield();

STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
ENTITY::SET_OBJECT_AS_NO_LONGER_NEEDED(&obj);
}
});
};
}
};