diff options
author | Tim Angus <tim@ngus.net> | 2003-12-21 03:46:43 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2003-12-21 03:46:43 +0000 |
commit | cdb8781108f8a7665f9b0bbd990e51b5e86449b1 (patch) | |
tree | d1ad34d34fd7d64e6df28ecc64d404fa91f3fb9f /src/cgame/cg_buildable.c | |
parent | 111e880bee11be3687bf4a06ed5c768c98bbc1a6 (diff) |
* Added a means of overriding class and buildable media settings via cfg file
* View locking works again
* Trapper projectile is displayed properly
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r-- | src/cgame/cg_buildable.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 51176488..2715529e 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -730,6 +730,9 @@ void CG_GhostBuildable( buildable_t buildable ) CG_CapTrace( &tr, start, mins, maxs, end, ps->clientNum, MASK_PLAYERSOLID ); VectorMA( entity_origin, tr.fraction * -TRACE_DEPTH, tr.plane.normal, ent.origin ); + //offset on the Z axis if required + VectorMA( ent.origin, BG_FindZOffsetForBuildable( buildable ), tr.plane.normal, ent.origin ); + VectorCopy( ent.origin, ent.lightingOrigin ); VectorCopy( ent.origin, ent.oldorigin ); // don't positionally lerp at all @@ -942,6 +945,9 @@ void CG_Buildable( centity_t *cent ) VectorMA( ent.origin, tr.fraction * -TRACE_DEPTH, surfNormal, ent.origin ); } + //offset on the Z axis if required + VectorMA( ent.origin, BG_FindZOffsetForBuildable( es->modelindex ), surfNormal, ent.origin ); + VectorCopy( ent.origin, ent.oldorigin ); // don't positionally lerp at all VectorCopy( ent.origin, ent.lightingOrigin ); |