mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 15:52:30 +00:00
new leg damage
This commit is contained in:
parent
969fd67da4
commit
772295489a
1 changed files with 14 additions and 6 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.75 2002/05/27 06:48:02 niceass
|
||||||
|
// new leg damage
|
||||||
|
//
|
||||||
// Revision 1.74 2002/05/21 04:58:27 blaze
|
// Revision 1.74 2002/05/21 04:58:27 blaze
|
||||||
// kicked the reload bugs ass!
|
// kicked the reload bugs ass!
|
||||||
//
|
//
|
||||||
|
@ -3126,13 +3129,18 @@ void PmoveSingle (pmove_t *pmove) {
|
||||||
} else if ( pml.walking ) {
|
} else if ( pml.walking ) {
|
||||||
// walking on ground
|
// walking on ground
|
||||||
PM_WalkMove();
|
PM_WalkMove();
|
||||||
if ( (pm->cmd.serverTime % 1000 > 333) && ((pm->ps->stats[STAT_RQ3] & RQ3_LEGDAMAGE) == RQ3_LEGDAMAGE))
|
|
||||||
{
|
|
||||||
pm->ps->velocity[0] = (int)((float)pm->ps->velocity[0] * 0.66);
|
|
||||||
pm->ps->velocity[1] = (int)((float)pm->ps->velocity[1] * 0.66);
|
|
||||||
pm->ps->velocity[2] = (int)((float)pm->ps->velocity[2] * 0.66);
|
|
||||||
|
|
||||||
// pm->ps->speed = 0; //Dosent work
|
// NiceAss: New leg damage, based on the AQ2 leg damage code.
|
||||||
|
if ( pm->ps->stats[STAT_RQ3] & RQ3_LEGDAMAGE &&
|
||||||
|
(pm->cmd.serverTime % 900) < 700) {
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i=0 ; i<3 ; i++)
|
||||||
|
{
|
||||||
|
if ( (i < 2 || pm->ps->velocity[2] > 0) &&
|
||||||
|
pm->ps->groundEntityNum != ENTITYNUM_NONE)
|
||||||
|
pm->ps->velocity[i] /= 4;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// airborne
|
// airborne
|
||||||
|
|
Loading…
Reference in a new issue