Monday, December 31, 2007

Shot prediction.

This will draw a line on your radar to predict where your shots will go. Its almost exactly perfect. It doesn't work on all servers for some reason, but it should work on most. It is very helpful for 3 shot no jump servers. This code was found through a chat between mrmolez and someone else. So here it is for everyone else to see lol.

Open RadarRenderer.cxx
Find:

//draw world weapon shots

Add this right before it:

FiringInfo myInfo(*myTank, 0);
if (myInfo.flagType != Flags::ShockWave) {
if (!BZDB.isTrue(StateDatabase::BZDB_SHOTSKEEPVERTICALV))
myInfo.shot.vel[2] = 0.0f;
myInfo.flagType = Flags::Laser;
myInfo.lifetime /= 100;
const float cs = colorScale(myInfo.shot.pos[2], muzzleHeight);
glColor3f(1.0f * cs, 1.0f * cs, 1.0f * cs);
LocalShotPath myPath(myInfo);
myPath.radarRender();
}

Let me know how this works for you guys. If you don't like it just take it out lol.

-NightMare

3 comments:

Martin said...

This cheat was originally from BinarySpike in 2.0.2.

Thankfully someone stole it from him :) *cough*Mr Molez*cough*

Tom1990 said...

Hi, I'm quite new to the game and am finding it hard to stay alive for longer than 30 seconds. I'd like to become a skilled dodger and would like a head start by using the radar path cheat. Would someone be so kind as to give me step by step instructions for this? Email me: thomasnorman18@yahoo.co.uk Thanks!

Tom

elliott said...

Would it be possible to have visual shot prediction like a transparent line sowing where your shots will go (but only client side)?