generated from YimMenu/YimMenuV2
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d28e2d9
commit ced81a6
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "core/commands/LoopedCommand.hpp" | ||
#include "game/features/Features.hpp" | ||
#include "game/rdr/Natives.hpp" | ||
|
||
namespace YimMenu::Features | ||
{ | ||
class NeverWanted : public LoopedCommand | ||
{ | ||
using LoopedCommand::LoopedCommand; | ||
|
||
virtual void OnTick() override | ||
{ | ||
// Set the wanted level multiplier to 0 (Never Wanted) | ||
PLAYER::SET_WANTED_LEVEL_MULTIPLIER(0.0f); | ||
} | ||
|
||
virtual void OnDisable() override | ||
{ | ||
// Reset the wanted level multiplier to 1.0f (normal behavior) | ||
PLAYER::SET_WANTED_LEVEL_MULTIPLIER(1.0f); | ||
} | ||
}; | ||
|
||
static NeverWanted _NeverWanted{"neverwanted", "Never Wanted", "Toggle Never Wanted mode"}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters