Tetraform Posted April 1, 2008 Share Posted April 1, 2008 Hello, 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_ : FORCE_LEVEL_0 FORCE_LEVEL_1 FORCE_LEVEL_2 FORCE_LEVEL_3 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] = { 32, 96, 192, 384, 384 // <--- (No change need) }; float forceJumpStrength[NUM_FORCE_POWER_LEVELS] = { JUMP_VELOCITY,//normal jump 420, 590, 840, 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.