Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!
Moderator: Core Staff
-
Drofder2004
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Post
by Drofder2004 » June 17th, 2005, 12:33 pm
Code: Select all
monitoruosprinting()
{
self notify("uosprintmonitor");
self endon("uosprintmonitor");
sprintspeed = 100; // Sprint speed in percent of default sprint speed
sprinttime = 1; // Sprint time modifier, setting it 0.5 will double the sprinttime, 2 will make it half and so on.
sprintrecovertime = 1; // Recover time modifier, setting it 0.5 will double the recovertime, 2 will make it half and so on.
oldfat = self getFatigue();
while (isAlive(self) && self.sessionstate == "playing")
{
wait .05; // Wait
newfat = self getFatigue();
deltafat = newfat - oldfat;
if(deltafat<0) // Sprinting
{
if(!isdefined(self.sprinting))
{
self.maxspeed = 1.9 * sprintspeed;
self.sprinting = true;
}
newfat = oldfat + deltafat * sprinttime;
if(newfat<0) newfat = 0;
self setFatigue(newfat);
}
if(deltafat>0) // Recovering
{
newfat = oldfat + deltafat * sprintrecovertime;
if(newfat>1) newfat = 1;
self setFatigue(newfat);
}
if(deltafat>=0) // Recovering and/or not sprinting
{
if(isdefined(self.sprinting))
{
self.maxspeed = 190;
self.sprinting = undefined;
}
}
oldfat = newfat;
}
}
I stole that form a post over at IWNation, if anyone knows how to implement it into a no sprint mod, it could be used on the Matrix server.
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
-
Drofder2004
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Post
by Drofder2004 » June 17th, 2005, 12:42 pm
I'm still looking into this (got nothing to do
) and if someone has any ideas it would be nice
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
-
<LT>YosemiteSam[NL]
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
-
Contact:
Post
by <LT>YosemiteSam[NL] » June 17th, 2005, 1:08 pm
I'm no modmaker but I'll look in to it tonight. I've made a few mods but not from scratch so copy and paste is my way
-
Drofder2004
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Post
by Drofder2004 » June 17th, 2005, 2:32 pm
I've look in every gsc file in the uo paks and not a single refference to sprinting/fatigue...
I think I am out on this one, nothing i can find.
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
-
<LT>YosemiteSam[NL]
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
-
Contact:
Post
by <LT>YosemiteSam[NL] » June 17th, 2005, 2:53 pm
The way I would try it, is get an existing mod which only changes one thing and copy/paste/modify that mod to the sprint mod. Tried it before and that worked with a few other mods I made/modified.
-
Matrix
- CJ Donator
- Posts: 74
- Joined: May 31st, 2005, 10:08 am
- Location: Blackpool - UK
-
Contact:
Post
by Matrix » June 17th, 2005, 8:20 pm
I think i might have it,
ill get back to u on this!
Many Thanks
Matrix
-
Pedsdude
- Site Admin
- Posts: 15909
- Joined: October 15th, 2004, 7:18 pm
- Location: UK
Post
by Pedsdude » June 17th, 2005, 8:33 pm
I'm sure wocoom would be interested in this
-
Matrix
- CJ Donator
- Posts: 74
- Joined: May 31st, 2005, 10:08 am
- Location: Blackpool - UK
-
Contact:
Post
by Matrix » June 17th, 2005, 8:36 pm
Nope sorry i couldnt get it working but is that script set for NO Sprint,
Cos i will get my mate to do it if he can
Many Thanks, Matrix
-
Drofder2004
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Post
by Drofder2004 » June 17th, 2005, 8:38 pm
Matrix wrote:Nope sorry i couldnt get it working but is that script set for NO Sprint,
Cos i will get my mate to do it if he can
Many Thanks, Matrix
No that script is just a lot of stuff that can be changed.
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
-
Matrix
- CJ Donator
- Posts: 74
- Joined: May 31st, 2005, 10:08 am
- Location: Blackpool - UK
-
Contact:
Post
by Matrix » June 17th, 2005, 8:45 pm
LOL, u shud of said that before,
I have my mate gone off to do it,
He is a very persesive person and wont come back until he has done it
LOL
Many Thanks, anyway,
Matrix
-
[SoE]_Zaitsev
- Core Staff
- Posts: 14220
- Joined: October 21st, 2004, 7:17 pm
- Location: Holland
-
Contact:
Post
by [SoE]_Zaitsev » June 18th, 2005, 11:01 am
Pedsdude wrote:I'm sure wocoom would be interested in this
I also think Wocoom would be the one for this
matt101harris wrote:big cock was the first thing that came to my head lol
-
Koekie
- Past/Inactive Team Member
- Posts: 1141
- Joined: January 9th, 2005, 7:10 pm
- Location: The Netherlands
-
Contact:
Post
by Koekie » June 19th, 2005, 1:02 pm
/unbind alt (if that's your springbutton)
-
<LT>YosemiteSam[NL]
- Core Staff
- Posts: 2155
- Joined: December 7th, 2004, 2:07 am
- Location: Netherlands
-
Contact:
Post
by <LT>YosemiteSam[NL] » June 19th, 2005, 5:04 pm
.Koek!e' wrote:/unbind alt (if that's your springbutton)
Lol..that would work but the thing u get with that is that people say they are not sprinting when they are
Users browsing this forum: No registered users and 35 guests