mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-26 14:44:20 +00:00
Reduce momentory_rot_button's return speed.
This commit is contained in:
parent
48c2809856
commit
bb9c9bd997
@ -1021,6 +1021,8 @@ void CMomentaryRotButton::KeyValue( KeyValueData *pkvd )
|
|||||||
if( FStrEq( pkvd->szKeyName, "returnspeed" ) )
|
if( FStrEq( pkvd->szKeyName, "returnspeed" ) )
|
||||||
{
|
{
|
||||||
m_returnSpeed = atof( pkvd->szValue );
|
m_returnSpeed = atof( pkvd->szValue );
|
||||||
|
if( m_returnSpeed > 45.0f )
|
||||||
|
m_returnSpeed = 45.0f;
|
||||||
pkvd->fHandled = TRUE;
|
pkvd->fHandled = TRUE;
|
||||||
}
|
}
|
||||||
else if( FStrEq( pkvd->szKeyName, "sounds" ) )
|
else if( FStrEq( pkvd->szKeyName, "sounds" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user