Binding component
This commit is contained in:
parent
7527137ab8
commit
0f703a7841
@ -124,15 +124,15 @@ namespace binding
|
||||
}
|
||||
|
||||
// write all bindings to config file
|
||||
utils::hook::call(SELECT_VALUE(0x1AC953_b, 0x199E8F_b), key_write_bindings_to_buffer_stub);
|
||||
utils::hook::jump(SELECT_VALUE(0x1AC980_b, 0x199ED0_b), key_write_bindings_to_buffer_stub, true);
|
||||
|
||||
// links a custom command to an index
|
||||
utils::hook::jump(SELECT_VALUE(0x377280_b, 0x1572B0_b), key_get_binding_for_cmd_stub);
|
||||
utils::hook::jump(SELECT_VALUE(0x377280_b, 0x1572B0_b), key_get_binding_for_cmd_stub, true);
|
||||
|
||||
// execute custom binds
|
||||
cl_execute_key_hook.create(SELECT_VALUE(0x1A8350_b, 0x23BD2A_b), &cl_execute_key_stub);
|
||||
cl_execute_key_hook.create(SELECT_VALUE(0x1A8350_b, 0x130610_b), &cl_execute_key_stub);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//REGISTER_COMPONENT(binding::component)
|
||||
REGISTER_COMPONENT(binding::component)
|
||||
|
@ -219,7 +219,7 @@ namespace game
|
||||
WEAK symbol<unsigned int> levelEntityId{0x0, 0xB1100B0};
|
||||
WEAK symbol<unsigned int> gameEntityId{0x0, 0xB1100B4};
|
||||
|
||||
WEAK symbol<const char*> command_whitelist{0x0, 0x0};
|
||||
WEAK symbol<const char*> command_whitelist{0x115ADF0, 0x10ACB70};
|
||||
WEAK symbol<cmd_function_s*> cmd_functions{0x0, 0x344DF18};
|
||||
WEAK symbol<CmdArgs> cmd_args{0x0, 0x2ED1E00};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user