mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-12 07:58:05 +00:00
Check +speed value
This commit is contained in:
parent
5d96c43c65
commit
3348f5d214
@ -21,7 +21,7 @@ ifeq ($(TARGET_ARCH_ABI),armeabi-v7a-hard)
|
|||||||
LOCAL_MODULE_FILENAME = libclient_hardfp
|
LOCAL_MODULE_FILENAME = libclient_hardfp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LOCAL_CFLAGS += -fsigned-char -DCLIENT_DLL=1
|
LOCAL_CFLAGS += -DCLIENT_DLL=1
|
||||||
|
|
||||||
SRCS=
|
SRCS=
|
||||||
SRCS_C=
|
SRCS_C=
|
||||||
|
@ -201,6 +201,12 @@ void IN_Move( float frametime, usercmd_t *cmd )
|
|||||||
IN_ToggleButtons( ac_forwardmove / ac_movecount, ac_sidemove / ac_movecount );
|
IN_ToggleButtons( ac_forwardmove / ac_movecount, ac_sidemove / ac_movecount );
|
||||||
if( ac_forwardmove ) cmd->forwardmove = ac_forwardmove * cl_forwardspeed->value / ac_movecount;
|
if( ac_forwardmove ) cmd->forwardmove = ac_forwardmove * cl_forwardspeed->value / ac_movecount;
|
||||||
if( ac_sidemove ) cmd->sidemove = ac_sidemove * cl_sidespeed->value / ac_movecount;
|
if( ac_sidemove ) cmd->sidemove = ac_sidemove * cl_sidespeed->value / ac_movecount;
|
||||||
|
if (in_speed.state & 1)
|
||||||
|
{
|
||||||
|
cmd->forwardmove *= cl_movespeedkey->value;
|
||||||
|
cmd->sidemove *= cl_movespeedkey->value;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ac_sidemove = ac_forwardmove = rel_pitch = rel_yaw = 0;
|
ac_sidemove = ac_forwardmove = rel_pitch = rel_yaw = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user