Jump to content

Home

Force


InfErnO

Recommended Posts

Posted

Does anyone know where the force consumptions is defined? Can't find/see it in w_force.c. I mean the values that determine how much force units are taken from the force pool when using a force power, like speed takes 50 units, seeing 20 etc.

Posted

ther is an array with the cost of all the force powers in bg_pmove of the game.dll

it s caled :

 

int forcePowerNeeded[NUM_FORCE_POWER_LEVELS][NUM_FORCE_POWERS] 

Posted

ther is an array with the cost of all the force powers in bg_pmove of the game.dll

it s caled :

 

int forcePowerNeeded[NUM_FORCE_POWER_LEVELS][NUM_FORCE_POWERS] 

Posted

this array IS there, correct.

But, the function that substracts the force can accept an ovverride value...and that's what they use mostly.

the function name is:

void BG_ForcePowerDrain( playerState_t *ps, forcePowers_t forcePower, int overrideAmt )

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...