Page 1 of 1
Distance mod
Posted: May 31st, 2008, 8:14 am
by Gagarin
Hi all again. Guys, if someone have nice scripting experience , can u make distance mod ? So, for example, I'm run and distance (in metres, i hope) will be shown at the foot of the screen. Look like damage indicator (CJ mod)
Re: Distance mod
Posted: May 31st, 2008, 9:14 pm
by Drofder2004
Distance run has been done and is fairly simple in theory.
The only difficult part is conversions and calculations.
All you do is run a looping thread, measuring your distance of your current origin every 0.05 seconds.
self.distancerun =+ distance(self.lastorigin, self.origin);
self.lastorigin = self.origin;
The above code is roughly what you are attempting.
Re: Distance mod
Posted: June 1st, 2008, 9:00 am
by Gagarin
well, it's sounds good, surely. But I'm noob in scripting =)
Can u create this mod ? Or just post small part of script here ? for example...
Re: Distance mod
Posted: June 1st, 2008, 3:02 pm
by Drofder2004
Go to codfiles.com and search some of the old big mods, there are scripts already made and im not in the mood to recreate

Re: Distance mod
Posted: June 2nd, 2008, 10:26 am
by Gagarin
aghrrrrr

ok, thx
