@@ -6389,11 +6389,12 @@ bool CStaticFunctionDefinitions::BindKey(const char* szKey, const char* szHitSta
6389
6389
if (bKey)
6390
6390
{
6391
6391
bool bHitState = true ;
6392
- // Activate all keys for this command
6393
- pKeyBinds->SetAllCommandsActive (szResource, true , szCommandName, bHitState, szArguments, true );
6394
6392
// Check if its binded already (dont rebind)
6395
6393
if (pKeyBinds->CommandExists (szKey, szCommandName, true , bHitState, szArguments, szResource, true , true ))
6394
+ {
6395
+ pKeyBinds->SetCommandActive (szKey, szCommandName, bHitState, szArguments, szResource, true , true );
6396
6396
return true ;
6397
+ }
6397
6398
6398
6399
if ((!stricmp (szHitState, " down" ) || !stricmp (szHitState, " both" )) &&
6399
6400
pKeyBinds->AddCommand (szKey, szCommandName, szArguments, bHitState, szResource, true ))
@@ -6403,9 +6404,11 @@ bool CStaticFunctionDefinitions::BindKey(const char* szKey, const char* szHitSta
6403
6404
}
6404
6405
6405
6406
bHitState = false ;
6406
- pKeyBinds->SetAllCommandsActive (szResource, true , szCommandName, bHitState, szArguments, true );
6407
6407
if (pKeyBinds->CommandExists (szKey, szCommandName, true , bHitState, szArguments, szResource, true , true ))
6408
+ {
6409
+ pKeyBinds->SetCommandActive (szKey, szCommandName, bHitState, szArguments, szResource, true , true );
6408
6410
return true ;
6411
+ }
6409
6412
6410
6413
if ((!stricmp (szHitState, " up" ) || !stricmp (szHitState, " both" )) &&
6411
6414
pKeyBinds->AddCommand (szKey, szCommandName, szArguments, bHitState, szResource, true ))
@@ -6482,14 +6485,12 @@ bool CStaticFunctionDefinitions::UnbindKey(const char* szKey, const char* szHitS
6482
6485
if ((!stricmp (szHitState, " down" ) || !stricmp (szHitState, " both" )) &&
6483
6486
pKeyBinds->SetCommandActive (szKey, szCommandName, bHitState, NULL , szResource, false , true ))
6484
6487
{
6485
- pKeyBinds->SetAllCommandsActive (szResource, false , szCommandName, bHitState, NULL , true );
6486
6488
bSuccess = true ;
6487
6489
}
6488
6490
bHitState = false ;
6489
6491
if ((!stricmp (szHitState, " up" ) || !stricmp (szHitState, " both" )) &&
6490
6492
pKeyBinds->SetCommandActive (szKey, szCommandName, bHitState, NULL , szResource, false , true ))
6491
6493
{
6492
- pKeyBinds->SetAllCommandsActive (szResource, false , szCommandName, bHitState, NULL , true );
6493
6494
bSuccess = true ;
6494
6495
}
6495
6496
}
0 commit comments