Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* void Gameplay::Hotkeys()
- {
- while (true)
- {
- if (GetAsyncKeyState(VK_INSERT))
- {
- bool bFreezeCamera = false;
- if (CL::IsDriving())
- {
- bFreezeCamera = !bFreezeCamera;
- FreezeCamera(bFreezeCamera);
- }
- }
- if (GetAsyncKeyState(VK_F1))
- {
- bool bAutoDrive = false;
- if (CL::IsDriving())
- {
- bAutoDrive = !bAutoDrive;
- Utils::Hook::Set<bool>((*(DWORD*)0xA9FFF8) + 0x8, bAutoDrive);
- }
- }
- if (GetAsyncKeyState(VK_F2))
- {
- bool bCopLights = false;
- if (CL::IsDriving())
- {
- bCopLights = !bCopLights;
- Utils::Hook::Set<float>(0x7CBED9, bCopLights);
- Utils::Hook::Set<float>(0x7CBEE1, bCopLights);
- Utils::Hook::Set<float>(0x7CBEE9, bCopLights);
- }
- }
- if (GetAsyncKeyState(VK_F4))
- {
- bool bCamera = false;
- if (CL::IsDriving())
- {
- bCamera = !bCamera;
- if (!bCamera)
- {
- SetAction(1, "CDActionDrive");
- }
- if (bCamera)
- {
- SetAction(1, "CDActionDebug");
- }
- }
- }
- // Save .hot position.
- if (GetAsyncKeyState(VK_LCONTROL) && GetAsyncKeyState(0x31))
- {
- Utils::Hook::Set<unsigned char>(0xB74BF8, 0x01);
- }
- if (GetAsyncKeyState(VK_LCONTROL) && GetAsyncKeyState(0x32))
- {
- Utils::Hook::Set<unsigned char>(0xB74BF8, 0x02);
- }
- if (GetAsyncKeyState(VK_LCONTROL) && GetAsyncKeyState(0x33))
- {
- Utils::Hook::Set<unsigned char>(0xB74BF8, 0x03);
- }
- if (GetAsyncKeyState(VK_LCONTROL) && GetAsyncKeyState(0x34))
- {
- Utils::Hook::Set<unsigned char>(0xB74BF8, 0x04);
- }
- if (GetAsyncKeyState(VK_LCONTROL) && GetAsyncKeyState(0x35))
- {
- Utils::Hook::Set<unsigned char>(0xB74BF8, 0x05);
- }
- // Load .hot position.
- if (GetAsyncKeyState(VK_LMENU) && GetAsyncKeyState(0x31))
- {
- Utils::Hook::Set<unsigned char>(0xB74BFC, 0x01);
- }
- if (GetAsyncKeyState(VK_LMENU) && GetAsyncKeyState(0x32))
- {
- Utils::Hook::Set<unsigned char>(0xB74BFC, 0x02);
- }
- if (GetAsyncKeyState(VK_LMENU) && GetAsyncKeyState(0x33))
- {
- Utils::Hook::Set<unsigned char>(0xB74BFC, 0x03);
- }
- if (GetAsyncKeyState(VK_LMENU) && GetAsyncKeyState(0x34))
- {
- Utils::Hook::Set<unsigned char>(0xB74BFC, 0x04);
- }
- if (GetAsyncKeyState(VK_LMENU) && GetAsyncKeyState(0x35))
- {
- Utils::Hook::Set<unsigned char>(0xB74BFC, 0x05);
- }
- Sleep(100);
- }
- } */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement