lfnetwork.com mark read register faq members calendar

Thread: Editing Force Powers
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 05-10-2004, 03:20 PM   #1
shenyongwu
Lurker
 
Join Date: May 2004
Posts: 2
Editing Force Powers

I was wondering if anyone could help me with editing the force powers, i want to scale down absorb, heal, etc; and i want to increase force jump; i was looking through w_force but i really don't know what i'm looking for in there.
shenyongwu is offline   you may: quote & reply,
Old 05-11-2004, 03:01 PM   #2
ondrahosek
 
ondrahosek's Avatar
 
Join Date: Aug 2002
Location: Hating 1337 in a house near you
Posts: 545
Checked through the code.

For jump, I think what you need to modify is in bg_pmove.c.

On line 155, a float array is created for each of the four force ranks (really four: 0, 1, 2 and 3).

Currently this is set to:
Force Level 0 = 32
Force Level 1 = 96
Force Level 2 = 192
Force Level 3 = 384


Now to Absorb, Protect, etc.
If you mean "shorten them" with "scale down", I have found a solution in w_force.c.

Line 1042 (OMG!) has the switch statement checking the force powers.

FP_RAGE, FP_ABSORB, FP_PROTECT, FP_DRAIN and FP_SEE all have a "duration" parameter that you can set. You may also want to check and apply the syntax of FP_SEE to configure the duration for every force rank exclusively.

Now, if you want to set the effect of Heal when used once, go to line 1253 of w_force.c.
In self->health += 25;, replace the 25 with the HP you want the character to gain by using this power. Do the same for every level of Heal.

As Absorb and Protect are duration-based Force powers, you can't scale their effect down.

If you want to scale down the Force cost, go to bg_pmove.c.
On line 67, an array declaration starts for every rank. The lower in the file, the higher rank the cost is used for.

Hope that helps! Have fun editing!

*wonders how he could find out when he saw the JA source for the first time today*


Ondra
(Ravu al Hemio, IH8Andre)

Last edited by ondrahosek; 05-11-2004 at 03:37 PM.
ondrahosek 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 > Editing Force Powers

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 12:43 PM.

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