Distance mod
Moderator: Core Staff
-
- CJ Worshipper
- Posts: 256
- Joined: November 2nd, 2005, 10:43 am
- Location: Moscow, Russian Federation
Distance mod
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)



-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Distance mod
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.
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.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- CJ Worshipper
- Posts: 256
- Joined: November 2nd, 2005, 10:43 am
- Location: Moscow, Russian Federation
Re: Distance mod
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...
Can u create this mod ? Or just post small part of script here ? for example...



-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Distance mod
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 


Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 1 guest