By: Phasmophage
In winged fights, it's hard to catch up with people that are above you, and are continuously jumping. So here's a cheat that will amplify your jump speed by a factor of 8 (or whatever you want it to be, just change it) if you type "/jump".
Add these lines of code in composeDefaultKey.cxx before other commands (See "Quick Guide to Toggling Cheats and Wallwalking"):
if (message=="/jump"){
LocalPlayer *myTank = LocalPlayer::getMyTank();
const float* oldVelocity = myTank->getVelocity();
float newVelocity[3];
newVelocity[0] = oldVelocity[0];
newVelocity[1] = oldVelocity[1];
newVelocity[2] = BZDB.eval(StateDatabase::BZDB_WINGSJUMPVELOCITY);
newVelocity[2] *= 8;
myTank->setVelocity(newVelocity);
}
You will probably want to have your wings cheat turned on when you use this, as you may continue to soar until you are kicked. If you're going too fast, make sure you have you're wings cheat turned on and jump. This will slow you down to regular jump speed.
Questions? Is this working for you? Leave a comment.
-Phasmophage
Sunday, September 16, 2007
Subscribe to:
Post Comments (Atom)
5 comments:
"message" is the name of the string that holds the message you are sending.
The "message" variable doesn't seem to be declared until at least line 88 for me. I think the problem is that you're putting the code in the wrong place (a bit too early), where "message" isn't declared.
Hope this helps
is sk3letr0n's site active anymore?
where can i get the link to it?
what about more / new cheats?
or also cheat patches?
is there support anymore ?
maybe one is that nice to conact me under contactmeonlyhere@trash-mail.com
cpp
Post a Comment