lfnetwork.com mark read register faq members calendar

Thread: Player Speed
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-11-2005, 02:15 PM   #1
Astelraid
Rookie
 
Astelraid's Avatar
 
Join Date: Sep 2005
Posts: 27
Player Speed

Where can i edit player speed?
Astelraid is offline   you may: quote & reply,
Old 09-11-2005, 04:53 PM   #2
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Check out bp_move.c and look at how rage and speed when activated affect the player speed. If you want to edit the overall speed just change with a cvar the /g_speed where 280 I think is the default.


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 09-13-2005, 09:34 AM   #3
Astelraid
Rookie
 
Astelraid's Avatar
 
Join Date: Sep 2005
Posts: 27
is there a specific location in the file where i could write the code? for when player has like 50 health then the player movement speed will be slower also.

Last edited by Astelraid; 09-13-2005 at 09:50 AM.
Astelraid is offline   you may: quote & reply,
Old 09-13-2005, 01:30 PM   #4
Wudan
Got Balance?
 
Wudan's Avatar
 
Join Date: Oct 2002
Location: Salt Lake, UT
Posts: 1,442
Yes, look in bg_pmove.c, you can contol all kinds of movement related things in that file.


Mt-Wudan.com
I made a silly little program called Dragon, which is an animation tool for the GLA format, used in Jedi Outcast, Jedi Academy and Krakatoa.
Wudan is offline   you may: quote & reply,
Old 09-13-2005, 02:14 PM   #5
Astelraid
Rookie
 
Astelraid's Avatar
 
Join Date: Sep 2005
Posts: 27
yes yes i understand that but i cant figure out how should the code look like for when player has like 50 health then the player movement speed will be slower also. so could someone post a code for that? so i could get a start.
Astelraid is offline   you may: quote & reply,
Old 09-13-2005, 06:43 PM   #6
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
actually you want g_active.c where g_speed cvar is controlled.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 09-13-2005, 07:52 PM   #7
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
Quote:
Originally Posted by Astelraid
is there a specific location in the file where i could write the code? for when player has like 50 health then the player movement speed will be slower also.
In the file I was telling you about, look for these lines, you can do a search for just the first line (ctf+f):

(ps->fd.forcePowersActive & (1 << FP_RAGE))
{
ps->speed *= 1.3;
}

Add an if statement above or below that like so:

if(ps->stats[STAT_HEALTH] <= ps->stats[STAT_MAX_HEALTH] * .5)
ps->speed *= .6;//or whatever else you would like


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 09-14-2005, 08:34 AM   #8
Astelraid
Rookie
 
Astelraid's Avatar
 
Join Date: Sep 2005
Posts: 27
thank you
Astelraid is offline   you may: quote & reply,
Old 10-09-2005, 10:10 PM   #9
Achelles
Lurker
 
Join Date: Oct 2005
Posts: 3
Where?

Where or how can I find these files, please?

g_active.c , bg_pmove.c
Achelles is offline   you may: quote & reply,
Old 10-09-2005, 10:34 PM   #10
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
bg_pmove.c


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 10-09-2005, 10:42 PM   #11
Achelles
Lurker
 
Join Date: Oct 2005
Posts: 3
I mean where is that particular file located? The .dll's?
Achelles is offline   you may: quote & reply,
Old 10-10-2005, 01:19 AM   #12
Jufa
Rookie
 
Join Date: Sep 2005
Posts: 72
you need to get the JKA SDK -pack . it has all the source code u need
Jufa is offline   you may: quote & reply,
Old 10-10-2005, 03:00 AM   #13
Achelles
Lurker
 
Join Date: Oct 2005
Posts: 3
Thanks
Achelles is offline   you may: quote & reply,
Old 10-10-2005, 05:11 AM   #14
Jufa
Rookie
 
Join Date: Sep 2005
Posts: 72
you're welcome
Jufa is offline   you may: quote & reply,
Old 10-10-2005, 02:30 PM   #15
razorace
Impressive, Terran!
 
razorace's Avatar
 
Join Date: May 2002
Posts: 9,177
Quote:
Originally Posted by ensiform
actually you want g_active.c where g_speed cvar is controlled.
I'm not sure what you're getting at. Wouldn't that effect all the players at once?


---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder
razorace is offline   you may: quote & reply,
Old 10-10-2005, 04:06 PM   #16
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
not if u give it specific details.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 10-11-2005, 02:34 AM   #17
stubert
 
Join Date: Aug 2002
Location: Philadelphia
Posts: 227
in g_runframe you can specify more about what effects what
stubert is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Player Speed

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:06 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.