diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-23 11:57:25 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-03-23 11:57:25 +0000 |
| commit | 8cfd2485fdbd7d35d7a361d41df0c8baecfbf366 (patch) | |
| tree | 1e2b2727346e5dc670f1bad559b6ba4df9b5348b /src/game/client | |
| parent | e891a7a75bafb95caeebb8c74d871e5f5d9ab4f7 (diff) | |
| download | zcatch-8cfd2485fdbd7d35d7a361d41df0c8baecfbf366.tar.gz zcatch-8cfd2485fdbd7d35d7a361d41df0c8baecfbf366.zip | |
tweaked the airjump indicator
Diffstat (limited to 'src/game/client')
| -rw-r--r-- | src/game/client/gc_render.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/game/client/gc_render.cpp b/src/game/client/gc_render.cpp index 6541167c..8cbc3b2e 100644 --- a/src/game/client/gc_render.cpp +++ b/src/game/client/gc_render.cpp @@ -196,15 +196,26 @@ void render_tee(animstate *anim, tee_render_info *info, int emote, vec2 dir, vec } // draw feet - gfx_setcolor(info->color_feet.r, info->color_feet.g, info->color_feet.b, 1.0f); - select_sprite((outline||!info->got_airjump)?SPRITE_TEE_FOOT_OUTLINE:SPRITE_TEE_FOOT, 0, 0, 0); - keyframe *foot = f ? &anim->front_foot : &anim->back_foot; float w = basesize; float h = basesize/2; gfx_quads_setrotation(foot->angle*pi*2); + + bool indicate = !info->got_airjump && config.cl_airjumpindicator; + float cs = 1.0f; // color scale + + if(outline) + select_sprite(SPRITE_TEE_FOOT_OUTLINE, 0, 0, 0); + else + { + select_sprite(SPRITE_TEE_FOOT, 0, 0, 0); + if(indicate) + cs = 0.5f; + } + + gfx_setcolor(info->color_feet.r*cs, info->color_feet.g*cs, info->color_feet.b*cs, 1.0f); gfx_quads_draw(position.x+foot->x*animscale, position.y+foot->y*animscale, w, h); } } |