View Full Version : force editing
08-02-2002, 07:56 AM
I'm trying to find a way to prevent the force reservoir from getting drained by the use of force powers, but I'm not having any luck. Any info anyone has would be appreciated.
08-02-2002, 07:01 PM
if you set the function BG_ForceDrain() to return at the beginning of it's execution, that's a good start.
Or you can have you're force meter refill at 100x the normal rate.
The function's name is something like ForcePowerRegen...
Anyway, i don't think there's a way if you don't code for it.
08-02-2002, 11:18 PM
if it's for MP, g_forceRegenTime...
08-03-2002, 04:50 PM
Acctually making forcepowers use no force is easy if you've downloaded the sdk:
Simply open "bg_pmove.c" and scroll down a page or so, until you find "forcePowerNeeded". beneath are all the costs for the different forcepowers and forcelevels.
For instance: Say you want to change force-healing. And you want force-healing at forcelevel 1 to be "free of charge": Simply change 65 to 0. (Line 67)
Hope this aswered the question.
This does not work for all. For example, FORCE_LEVITATE is transferring an "override" cost to the function. The best bet would be editing the function BG_ForceDrain()
08-04-2002, 01:22 PM
If you want to edit the function that drains force when forcepowers are used, it's called "BG_ForcePowerDrain" and can be found inside "bg_saber.c".
And it is true that Force_Levitate (forcejump) is a special case that must be edited in this function in order to make it use no force.
The main advantage of editing the costs for the different forcepowers as I showed in my previous post, is that you can control specifically for every power and rank, how much drain you wish (except for jump).
IF however you want ALL forcepowers to be completely free then I agree that editing "BG_ForcePowerDrain" is easier. The easiest way to do this is simply to make the whole function into a comment. This can be done by adding "double slash" infront of every line. like this:
// this is a comment
However, just as my earlier method did not cover the forcejump, this method does not cover saberthrow. Just so you know...
08-04-2002, 07:10 PM
:deathii: :deathstar There's a file on http://www.jediknight2files.com/ in the scripting section called unlimited force. If you download that you can copy the writing from the notepad and just use it for your own file...it may be cheating though
vBulletin®, Copyright ©2000-2016, Jelsoft Enterprises Ltd.