Quote:
Originally Posted by XTN
If someone wants to know how to add HSW-Style.
shavit.inc
btw. ^ this removes the bug/exploit that players hold W and S and can strafe normally like on Forward Style.
@shavit
Add this please
|
This is a better HSW validation, its more reliable and feel more smoother at higher ping, btw I already pushed the comit for some reason shavit didnt get it:
PHP Code:
if(gI_StyleProperties[gBS_Style[client]] & STYLE_HSW && !((vel[0] > 0 || buttons & IN_FORWARD) && ((vel[1] < 0 || buttons & IN_MOVELEFT) || (vel[1] > 0 || buttons & IN_MOVERIGHT))))
{
bEdit = true;
vel[0] = 0.0;
vel[1] = 0.0;
}