TmpMenu/src/backend/looped/weapons/increase_damage.cpp
tupoy-ya bc05ecd78c refactor!: Replace premake5 with CMake. (#551)
Co-authored-by: tupoy-ya <tupoy-ya@users.noreply.github.com>
2022-11-08 21:08:58 +00:00

14 lines
324 B
C++

#include "backend/looped/looped.hpp"
#include "natives.hpp"
namespace big
{
void looped::weapons_increased_damage()
{
if (g->weapons.increased_damage != 1) {
Hash weapon{};
WEAPON::GET_CURRENT_PED_WEAPON(self::ped, &weapon, 0);
WEAPON::SET_WEAPON_DAMAGE_MODIFIER(weapon, g->weapons.increased_damage);
}
}
}