diff options
author | /dev/humancontroller <devhc@example.com> | 2014-07-14 01:40:43 +0200 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:15 +0100 |
commit | ac941c9413cf378985e7506f1c245fbfdf319e60 (patch) | |
tree | b95e2a6deebbc4cba8978489aae442bfeabee7b5 | |
parent | dcd8dd90d85e8529077c852f812d74b9fd52c6ad (diff) |
remove some fancy hacks from the missile bounce code
-rw-r--r-- | src/game/g_physics.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/g_physics.c b/src/game/g_physics.c index 9e5b23d5..92ace354 100644 --- a/src/game/g_physics.c +++ b/src/game/g_physics.c @@ -61,7 +61,6 @@ static void G_Bounce( gentity_t *ent, trace_t *trace ) if( VectorLength( ent->s.pos.trDelta ) < 10 ) { - VectorMA( trace->endpos, 0.5f, trace->plane.normal, trace->endpos ); // make sure it is off ground G_SetOrigin( ent, trace->endpos ); ent->s.groundEntityNum = trace->entityNum; VectorCopy( trace->plane.normal, ent->s.origin2 ); @@ -69,8 +68,8 @@ static void G_Bounce( gentity_t *ent, trace_t *trace ) return; } + VectorMA( ent->r.currentOrigin, 0.15, trace->plane.normal, ent->r.currentOrigin ); VectorCopy( ent->r.currentOrigin, ent->s.pos.trBase ); - VectorAdd( ent->r.currentOrigin, trace->plane.normal, ent->r.currentOrigin); ent->s.pos.trTime = level.time; } |