Hey guys so this is a question and a sort of release. I do not take any credit for this code because I didn't make it and found it on another forum. I am sorry if I posted in the wrong section. I am new to this forum. I have this code and am not sure how to run it. If someone could send me to a guide or tell me that'd be perfect. Feel free to use the code if you know how to. Thanks for reading!

Code:
auto &weapon = game::player->weapon;
if (weapon && weapon->slot < 2 && weapon->info)
{
	auto &weapon_info = weapon->info;
	weapon_info->punch = { 0.f, 0.f };
	weapon_info->spread = weapon_info->inaccuracy = 0.f;
}
--This is a no recoil script