diff options
| -rw-r--r-- | src/game/client/gc_render.cpp | 17 | ||||
| -rw-r--r-- | src/game/g_variables.h | 2 |
2 files changed, 15 insertions, 4 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); } } diff --git a/src/game/g_variables.h b/src/game/g_variables.h index 6ae4c844..25dddf32 100644 --- a/src/game/g_variables.h +++ b/src/game/g_variables.h @@ -6,10 +6,10 @@ MACRO_CONFIG_INT(cl_autoswitch_weapons, 0, 0, 1) MACRO_CONFIG_INT(cl_showfps, 0, 0, 1) +MACRO_CONFIG_INT(cl_airjumpindicator, 1, 0, 1) MACRO_CONFIG_INT(cl_warning_tuning, 1, 0, 1) - MACRO_CONFIG_INT(cl_mouse_deadzone, 300, 0, 0) MACRO_CONFIG_INT(cl_mouse_followfactor, 60, 0, 200) MACRO_CONFIG_INT(cl_mouse_max_distance, 800, 0, 0) |