mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-11 09:48:03 +08:00
* feat(protections): add a fuzzer * feat(protections): improve protections * feat(spoofing): add warning * feat(world): force object cleanup * fix(weapons): fix custom weapon code * fix(weapons): fix for #1983
33 lines
702 B
C++
33 lines
702 B
C++
#include "backend/looped_command.hpp"
|
|
#include "natives.hpp"
|
|
|
|
namespace big
|
|
{
|
|
class increased_damage : looped_command
|
|
{
|
|
using looped_command::looped_command;
|
|
|
|
Hash ped_weapon;
|
|
|
|
virtual void on_tick() override
|
|
{
|
|
if (g.weapons.increased_damage != 1)
|
|
{
|
|
Hash weapon{};
|
|
WEAPON::GET_CURRENT_PED_WEAPON(self::ped, &weapon, 0);
|
|
|
|
if (weapon != ped_weapon)
|
|
{
|
|
WEAPON::SET_WEAPON_DAMAGE_MODIFIER(weapon, 1);
|
|
ped_weapon = weapon;
|
|
}
|
|
|
|
WEAPON::SET_WEAPON_DAMAGE_MODIFIER(weapon, g.weapons.increased_damage);
|
|
}
|
|
}
|
|
};
|
|
|
|
increased_damage
|
|
g_increased_damage("incrdamage", "Damage Override", "Sets your damage to whatever you want", g.weapons.increase_damage);
|
|
}
|