No spread

Posts 110 of 10 · Page 1 of 1
No spread
Ok Im using Hotkeys, and atm I have No Spread auto-on. How can i do a hotkey for it? I know the (On) part of the code. But what is it's (off)?

Like how No recoil has an off and and on part.
Thanks
search button
Quote Originally Posted by _-Blazin-_ View Post
Ok Im using Hotkeys, and atm I have No Spread auto-on. How can i do a hotkey for it? I know the (On) part of the code. But what is it's (off)?

Like how No recoil has an off and and on part.
Thanks
Are you using the PTC method of no spread? If so this is how I do hotkeys for on and off (it's probably not the best way, but it works for me and that's all I need).

First define this global integer

Code:
int IsSpreadOn = 0;
Next I made this little boolean function to save time on repetitive GetAsyncKeyState calls. (add this above void main()..)

Code:
bool CheckKey(int OMGKEY)
{
	if (GetAsyncKeyState(OMGKEY)<0){
	return true;
	}
	else{
	return false;}
}
Now in void main()

Code:
void main()
{
while(true)
{
	if (CheckKey(VK_DELETE))
		if(IsSpreadOn==0){
			PushToConsole("PerturbRotationEffect  0.000000");
                        PushToConsole("PerturbIncreaseSpeed 0.000000");
                        PushToConsol("PerturbWalkPercent 0.000000");
                        PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
                        PushToConsole("PerturbRecoil 0.000000"); 
                        PushToConsole("FireMovePerturb 0.000000"); 
                        PushToConsole("ZoomedFireMoveDuckPerturb 0.000000");
                        PushToConsole("ZoomedFireMovePerturb 0.000000");
                        PushToConsole("ZoomedFireDuckPerturb 0.000000");
                        IsSpreadOn = 1;
			Sleep(100);
}
		else{
			PushToConsole("PerturbRotationEffect  3.000000");
                        PushToConsole("PerturbIncreaseSpeed 3.000000");
                        PushToConsol("PerturbWalkPercent 9.000000");
                        PushToConsole("PerturbFiringIncreaseSpeed 0.500000");
                        PushToConsole("PerturbRecoil 9.000000"); 
                        PushToConsole("FireMovePerturb 9.000000"); 
                        PushToConsole("ZoomedFireMoveDuckPerturb 9.000000");
                        PushToConsole("ZoomedFireMovePerturb 9.000000");
                        PushToConsole("ZoomedFireDuckPerturb 9.000000");
                        IsSpreadOn = 0;
			Sleep(100);
}
	
}
}
There you go.
Can we please stop spoon feeding the source leechers?
Quote Originally Posted by Polo2 View Post
Can we please stop spoon feeding the source leechers?
Im not trying to leech. Im trying to learn.. They're helping meh Plus Im not stupid enough to leech someone's source and then repost it in the Combat Arms Section. Im just editing them for personal use.. And eventually I'll make my own base.

Thanks for the help guys. If a mod could close this..
Quote Originally Posted by _-Blazin-_ View Post
Im not trying to leech. Im trying to learn.. They're helping meh Plus Im not stupid enough to leech someone's source and then repost it in the Combat Arms Section. Im just editing them for personal use.. And eventually I'll make my own base.

Thanks for the help guys. If a mod could close this..
Hit the thanks button then
Quote Originally Posted by Jason View Post


Hit the thanks button then
Sure..
Sorry about that.
never knew that the coding section turned into a help section XD
Quote Originally Posted by GodHack2 View Post
never knew that the coding section turned into a help section XD
Unfortunately it's been like this for a while. Noobs can't find the C++ section =.=
/Solved
/Closed
Posts 110 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?