Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

dodging

Page: 1 of 1
 Tinny
05-15-2004, 8:56 PM
#1
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.
 Tinny
05-16-2004, 4:15 PM
#2
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 :)
Page: 1 of 1