PDA

View Full Version : Back to harass again!



ganglyman21
12-12-2007, 05:34 AM
Hi there, another day another question. I've been trying to add a hotkey to my trainer, so that I can expand the "weapon" keys ie. 1-4 regular weapons, 5+6+7 = shotgun, flash, smoke. Tried a few ways and having little luck, always locks on to it or bugs completely. Any help/tips/hints would be appreciated.

Thanks in advance

Dan~~

wr194t
12-12-2007, 05:59 AM
All hotkeys need timers:


case WEAPONHOTKEY1TIMER: //This timer name is an example.
{
if (GetKeyState(VK_35)&1)
{
WritePointerFloat2(0x12C8520, 0x4C, 42); //If you edited WritePointerFloat in your coding, then change it here as well.
}
}
break;

case WEAPONHOTKEY2TIMER: //This timer name is an example.
{
if (GetKeyState(VK_36)&1)
{
WritePointerFloat2(0x12C8520, 0x4C, 55); //If you edited WritePointerFloat in your coding, then change it here as well.
}
}
break;

case WEAPONHOTKEY3TIMER: //This timer name is an example.
{
if (GetKeyState(VK_37)&1)
{
WritePointerFloat2(0x12C8520, 0x4C, 56); //If you edited WritePointerFloat in your coding, then change it here as well.
}
}
break;

case WEAPONHOTKEY4TIMER: //This timer name is an example.
{
if (GetKeyState(VK_38)&1)
{
WritePointerFloat2(0x12C8520, 0x4C, 57); //If you edited WritePointerFloat in your coding, then change it here as well.
}
}
break;

ganglyman21
12-12-2007, 09:31 AM
thats very similar to what I've done already but it in effect "locked" onto the 1/2 equipped weapon. Just finished testing my tweaks out so will add this in now and let u know how it works.

You should be called Mr. Rapid Reply.

Ok tried so so manuy ways of adding this, but it still bugs me with 1/2 equipped shotgun I guess I need to look into hotkeys more. But is very unimportant to me was just for fun really. Thanks for your help so far need a break from it for now tho lol.

wr194t
12-12-2007, 09:42 AM
Do you have your fists out when you press a hotkey?

robertix91
12-12-2007, 12:12 PM
Compiling...
prova address1.cpp
prova address1Dlg.cpp
C:\Programmi\Microsoft Visual Studio\MyProjects\prova address1\prova address1Dlg.cpp(290) : error C2065: 'VK_35' : undeclared identifier
C:\Programmi\Microsoft Visual Studio\MyProjects\prova address1\prova address1Dlg.cpp(292) : error C2065: 'WritePointerFloat2' : undeclared identifier
C:\Programmi\Microsoft Visual Studio\MyProjects\prova address1\prova address1Dlg.cpp(299) : error C2065: 'VK_36' : undeclared identifier
C:\Programmi\Microsoft Visual Studio\MyProjects\prova address1\prova address1Dlg.cpp(308) : error C2065: 'VK_37' : undeclared identifier
C:\Programmi\Microsoft Visual Studio\MyProjects\prova address1\prova address1Dlg.cpp(317) : error C2065: 'VK_38' : undeclared identifier
Generating Code...
Error executing cl.exe.

prova address1.exe - 5 error(s), 0 warning(s)




why????

ganglyman21
12-12-2007, 01:03 PM
Ya, the hotkeys VK_ doesn't apply, the numerical keys are literally a number ie

"GetKeyState(37)&1);"

VK_ applies to the letters/fkeys/symbols only i think. There is a post.

Also I see one error is "WritePointerFloat2", think yours shud be just "WritePointerFloat" correct?

And yes Wr194t I had fists out, otherwise glitches ur weapon over, but I dont get the shotgun out fully is odd.

wannabe007
12-12-2007, 01:41 PM
U didnt declared hotkeys

ganglyman21
12-13-2007, 05:52 AM
The numbers are as I stated, a number doesn't need the VK_ before it, the list is stickied. Should be no need to declare hotkeys. My buttons respond, but it just doesn't do as I expect. I didn't declare anyh of my hotkeys, my right mouse and ctrl keys work fine 100% perfected. It's merely I personally dont get the desired effect when pressing. His prob is simply he needs "36" not "VK_36".

It's official I damn well can't get this to do what I want it to. I dont want a button, just to extend the weapon keys and I can't figure it out for the life of me. If I make a button to turn it on (being in a timer and all) it bugs out and you cant change weapons.