Skip to content

Commit

Permalink
make player jedi dodge much more likely
Browse files Browse the repository at this point in the history
- guaranteed to dodge at speed level 3
- allow mp jedi dodging without force sight active
  • Loading branch information
TwelveEyes committed Jun 22, 2024
1 parent 4cdf468 commit 47f74fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/game/AI_Jedi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2139,8 +2139,8 @@ qboolean Jedi_DodgeEvasion( gentity_t *self, gentity_t *shooter, trace_t *tr, in
}
}
//check force speed power level to determine if I should be able to dodge it
if ( Q_irand( 1, 10 ) > self->client->ps.forcePowerLevel[FP_SPEED] )
{//more likely to fail on lower force speed level
if ( Q_irand( 0, 3 ) > self->client->ps.forcePowerLevel[FP_SPEED] )
{//more likely to fail on lower force speed level. always succeeds at max force speed level
return qfalse;
}
}
Expand Down
4 changes: 2 additions & 2 deletions codemp/game/w_force.c
Original file line number Diff line number Diff line change
Expand Up @@ -5516,13 +5516,13 @@ qboolean Jedi_DodgeEvasion( gentity_t *self, gentity_t *shooter, trace_t *tr, in
return qfalse;
}

if (g_forceDodge.integer != 2)
/* if (g_forceDodge.integer != 2)
{
if (!(self->client->ps.fd.forcePowersActive & (1 << FP_SEE)))
{
return qfalse;
}
}
} */

if ( self->client->ps.groundEntityNum == ENTITYNUM_NONE )
{//can't dodge in mid-air
Expand Down

0 comments on commit 47f74fd

Please sign in to comment.