2022-03-02 08:48:53 -05:00
|
|
|
#include "natives.hpp"
|
2023-03-13 17:10:21 -04:00
|
|
|
#include "backend/looped_command.hpp"
|
2022-03-02 08:48:53 -05:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
2023-03-13 17:10:21 -04:00
|
|
|
|
|
|
|
class increased_damage : looped_command
|
2022-03-02 08:48:53 -05:00
|
|
|
{
|
2023-03-13 17:10:21 -04:00
|
|
|
using looped_command::looped_command;
|
|
|
|
|
|
|
|
virtual void on_tick() override
|
2023-03-01 21:27:15 +00:00
|
|
|
{
|
2023-03-18 12:52:44 -07:00
|
|
|
if (g.weapons.increased_damage != 1)
|
2023-03-13 17:10:21 -04:00
|
|
|
{
|
2023-03-18 12:52:44 -07:00
|
|
|
Hash weapon{};
|
|
|
|
WEAPON::GET_CURRENT_PED_WEAPON(self::ped, &weapon, 0);
|
|
|
|
WEAPON::SET_WEAPON_DAMAGE_MODIFIER(weapon, g.weapons.increased_damage);
|
2023-03-13 17:10:21 -04:00
|
|
|
}
|
2022-03-02 08:48:53 -05:00
|
|
|
}
|
2023-03-13 17:10:21 -04:00
|
|
|
|
|
|
|
virtual void on_disable() override
|
|
|
|
{
|
2023-03-18 12:52:44 -07:00
|
|
|
Hash weapon{};
|
|
|
|
WEAPON::GET_CURRENT_PED_WEAPON(self::ped, &weapon, 0);
|
|
|
|
WEAPON::SET_WEAPON_DAMAGE_MODIFIER(weapon, 1);
|
2023-03-13 17:10:21 -04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
increased_damage
|
|
|
|
g_increased_damage("incrdamage", "Damage Override", "Sets your damage to whatever you want", g.weapons.increase_damage);
|
2023-03-18 12:52:44 -07:00
|
|
|
}
|