lfnetwork.com mark read register faq members calendar

Thread: dodging
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-15-2004, 07:56 PM   #1
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
dodging

hey guys, i searched everywhere through the sdk to try to find a correlation between the disruptor and the force sight. i looked for FP_SEE, WP_DISRUPTOR, g_forcedodge. none of those things yeilded something that would enable me to play around with the dodgeing ability. my plan is to make even the alternate fire of the conc rifle be dodgeable at force sight level 3 and not just the sniper.


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Old 05-16-2004, 03:15 PM   #2
Tinny
 
Tinny's Avatar
 
Join Date: Apr 2002
Posts: 1,188
yay, i got it to work. thanks to Razorace for the headsup on Jedi_DodgeEvasion. first you have to go to the alt fire of the sniper code in g_weapon.c. once you're in there you'll see a peice of code for a jedi to dodge it with a high enough seeing skill and that code is:


if (Jedi_DodgeEvasion(traceEnt, ent, &tr, G_GetHitLocation(traceEnt, tr.endpos)))
{
skip = tr.entityNum;
VectorCopy(tr.endpos, start);
continue;
}

you then have to go all they way down to the conc rifle alt code and you get to it by searching for static void WP_FireConcussionAlt( gentity_t *ent ). once you're in there go to the func
for ( i = 0; i < traces; i++ )
{

under it place the if (Jedi_dodge... code i pasted above. but right before that you have to initalize the tracenet variable because its not in the conc rifle section so right above the code paste

traceEnt = &g_entities[tr.entityNum];


and this should allow you to get force seeing level 3 dudes to dodge alt conc rifle fire just like in single player


Redeemed!

An old school mod for jedi academy.
Tinny is offline   you may: quote & reply,
Post a new thread. Add a reply to this 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 > JA Coding > dodging

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 08:16 AM.

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