yes.
//tooshort..
I know that using this will make you fly higher and higher
but, how do you make it so that when you stop holding down the space bar, you will fall and not continue to rise?Code:if(GetAsyncKeyState(VK_SPACE)<0) PTC("PlayerGravity 700");
if(GetAsyncKeyState(VK_SPACE)) { }
just use what you had in the beginning ._.
if ( FlyHack )
Do Fly Hacks
else
Do Normal Gravity
Last edited by Cryptonic; 05-06-2011 at 09:39 PM.
Code:if(Hack.fly){ if(GetAsyncKeyState(VK_SPACE)) { } PTC("PlayerGravity 700"); }else{ PTC("PlayerGravity -1000"); }
try that but im pretty sure the value for normal gravity is wrongCode:if(Hack.fly){ if(GetAsyncKeyState(VK_SPACE)&1) PTC("PlayerGravity 700"); else PTC("PlayerGravity -1000"); }
oh... thats what you wanted...
Man I'm having a horrible day, I'm on pain meds
Only good part..
lol its because you are not looping, you should put that in a loop so when you release the space bar you will start falling, if you do not put that in a loop you will have to press space again to return false and start falling...
Long time never hack ca, but try this:
Code:bool fly; //or int if(GetAsyncKeyState(VK_SPACE)<0) fly =! fly; if (fly) PTC("PlayerGravity 700"); else PTC("PlayerGravity -1000");
lol?
Nobody can code here?! Its so easy guys
[html]
if(fly)
{
if(GetAsyncKeyState(VK_space)
PTC("PlayerGravity 700");
else
PTC("PlayerGravity -1200");
}
[/html]
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k