Quote:
Originally Posted by CrazY.
pev_angle it's model angle, pev_v_angle it's the view angle, that being said, rotate the pev_v_angle instead.
|
I'm sorry but it doesn't seem to work. It still resets the view (for example I'm looking up and when I turn it on it instantly makes me look straight forward) plus the effect is not there unlike when using pev_angle. I've already disabled all other plugins and only had that one running...
PHP Code:
public Ham_Dizzy_PreThink(user)
{
new Float:old_angle[3];
pev(user, pev_v_angle, old_angle);
g_dizzyangle[user][0] = old_angle[0];
g_dizzyangle[user][1] = old_angle[1];
if(g_is_dizzy[user])
{
g_dizzyangle[user][2] += 2.0;
set_pev(user, pev_v_angle, g_dizzyangle[user]);
set_pev(user, pev_fixangle, 1);
}
else
DisableHamForward(HandleDizzyPreThink[user]);
return HAM_HANDLED
}
__________________