plantanywhere + quick

08/06/2012 18:50 jeffrey1994#1
I'm trying to make Quickplant/defuse + Plant/defuse anywhere with a nomenu hack so im using Hotkey F4 to activate the function

but when im ingame i need to HOLD F4 + F to plant

Code:
if(GetAsyncKeyState(VK_F4)){
	*(BYTE*)ADR_PLANTANYWHERE = 0x1;
	*(WORD*)ADR_DEFUSEANYWHERE = 0x1;
	*(float*) ADR_QUICKPD = 20;
}
Also are there any Off value's for these 3 addy's?

is this a good fix?
Code:
int i = 0;
while(i <= 0){
		*(BYTE*)ADR_PLANTANYWHERE = 0x1;
		*(WORD*)ADR_DEFUSEANYWHERE = 0x1;
		*(float*) ADR_QUICKPD = 20;
}