lfnetwork.com mark read register faq members calendar

Thread: Additional FORCE_LEVEL_
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Prev Previous Post   Next Post Next
Old 04-01-2008, 01:15 PM   #1
Tetraform
Lurker
 
Join Date: Apr 2008
Posts: 1
Additional FORCE_LEVEL_

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_ :
Quote:
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)
Quote:
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.
Quote:
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
Tetraform is offline   you may: quote & reply,
Post a new 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 > JO Coding > Additional FORCE_LEVEL_

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:28 PM.

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