now this is for Day Of Defeat
me <----------- total nub at this nd have never scripted anything in my life
i have this
Code:
// Created by potatis_invalido
stock create_recoil( id, Float:recoil ) {
new Float:angles[3];
pev(id, pev_v_angle, angles);
angles[0] -= random_float(recoil * 1.2, recoil * 0.8);
if(angles[0] < -88.994750)
{
angles[0] = -88.994750;
}
else if(angles[0] > 88.994750)
{
angles[0] = 88.994750;
}
angles[1] += random_float(recoil * 0.35, recoil * -0.35);
if(angles[1] > 180.0)
{
angles[1] -= 360.0;
}
else if(angles[1] < -180.0)
{
angles[1] += 360.0;
}
set_pev(id, pev_angles, angles);
set_pev(id, pev_fixangle, 1);
}
and have no idea what the heck to do with this. im trying to make dod have no recoil on my server and none of the plugins on here work for my mod.
help would be appreciated, thank you so much.
__________________