diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-06-26 13:46:44 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-06-26 14:13:09 +0200 |
commit | 7ea0e9de3459b4caa9b35b71f742b658b38ef151 (patch) | |
tree | f7a0b638d1ff825d4f6171eecd36095ae7ab57f7 /src/cgame/cg_buildable.c | |
parent | ecf51bf1e505e7e36df07eeb30a77a89ef2b7c55 (diff) |
More Wraith improvements.
Diffstat (limited to 'src/cgame/cg_buildable.c')
-rw-r--r-- | src/cgame/cg_buildable.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cgame/cg_buildable.c b/src/cgame/cg_buildable.c index 5ecdafb..5b2582c 100644 --- a/src/cgame/cg_buildable.c +++ b/src/cgame/cg_buildable.c @@ -1399,6 +1399,11 @@ void CG_Buildable( centity_t *cent ) if( CG_PlayerIsBuilder( es->modelindex ) && CG_BuildableRemovalPending( es->number ) ) ent.customShader = cgs.media.redBuildShader; + if( cg.warping ) + { + ent.customShader = cgs.media.warpingEnvironmentShader; + } + //add to refresh list trap_R_AddRefEntityToScene( &ent ); @@ -1444,6 +1449,11 @@ void CG_Buildable( centity_t *cent ) if( CG_PlayerIsBuilder( es->modelindex ) && CG_BuildableRemovalPending( es->number ) ) turretBarrel.customShader = cgs.media.redBuildShader; + if( cg.warping ) + { + turretBarrel.customShader = cgs.media.warpingEnvironmentShader; + } + trap_R_AddRefEntityToScene( &turretBarrel ); } @@ -1489,6 +1499,11 @@ void CG_Buildable( centity_t *cent ) if( CG_PlayerIsBuilder( es->modelindex ) && CG_BuildableRemovalPending( es->number ) ) turretTop.customShader = cgs.media.redBuildShader; + if( cg.warping ) + { + turretTop.customShader = cgs.media.warpingEnvironmentShader; + } + trap_R_AddRefEntityToScene( &turretTop ); } |