- Status
- Offline
- Joined
- Jun 6, 2019
- Messages
- 6
- Reaction score
- 5
Hello :d
Code bro)
Code bro)
C++:
auto visuals::misc::flash_bar() const -> void {
auto flash_alpha = ctx.player->m_flFlashDuration();
if( flash_alpha < 1.f )
return;
ctx.w *= ( flash_alpha / 255.f );
render::get().filled_rect( Color(10, 10, 10,220), ctx.x - 1, ctx.y + ctx.h + 2, ctx.w + 2, 4 );
render::get().filled_rect( ctx.x, ctx.y + ctx.h + 3, ctx.w, 2,ctx.clr);
ctx.text_offset += 5;
}