i have a problem:
I want to jump higher, when I'm empowered, so I added a FOFCE_LEVEL_ in the q_shared.h data. There already exists 4 FORCE_LEVEL_ :
Now I have a FORCE_LEVEL_4.
Then I added following in the bg_pmove.c to work as FORCE_LEVEL_4 (red marked are the added ones)
float forceJumpHeight[NUM_FORCE_POWER_LEVELS] =
384 // <--- (No change need)
float forceJumpStrength[NUM_FORCE_POWER_LEVELS] =
1500 // <---
So far, so good.
Now I said the Empower command, that he have to gives me the FORCE_LEVEL_4 for that force to jump higher.
other->client->ps.fd.forcePowerLevel[f] = FORCE_LEVEL_3;
other->client->ps.fd.forcePowerLevel[FP_LEVITATION] = FORCE_LEVEL_4; // <--- added
other->client->ps.fd.forcePowersKnown |= (1 << f);
It's my problem now, that JK2 crashs, when I try to jump in empower mode.
What things I have to change, when I want my modification working ?
Or is there an alternative way ?
PS. Sorry for my "bad" english, I'm German