Код под пандору, чтобы работало нужно собсна её вызвать(5 сек)
Код:
void beam(vec3_t src, vec3_t end, Color color)
{
BeamInfo_t beamInfo;
beamInfo.m_nType = 0;
beamInfo.m_vecStart = src;
beamInfo.m_vecEnd = end;
beamInfo.m_pszModelName = "sprites/white.vmt";
beamInfo.m_pszHaloName = "sprites/white.vmt";
beamInfo.m_flHaloScale = 0.5;//foottrail_m_flWidth
beamInfo.m_flWidth = 2.5f;
beamInfo.m_flEndWidth = 2.5f;
beamInfo.m_flFadeLength = 0.4f;
beamInfo.m_flAmplitude = 0;
beamInfo.m_flBrightness = 150.f;
beamInfo.m_flSpeed = 0.0f;
beamInfo.m_nStartFrame = 0.0;
beamInfo.m_flFrameRate = 0.0;
beamInfo.m_flRed = color.r();
beamInfo.m_flGreen = color.g();
beamInfo.m_flBlue = color.b();
beamInfo.m_nSegments = 1;
beamInfo.m_bRenderable = true;
beamInfo.m_flLife = 4;
beamInfo.m_nFlags = 16 | 256 | 65536;
const auto beam = g_csgo.m_beams->CreateBeamPoints(beamInfo);
if (beam)
g_csgo.m_beams->DrawBeam(beam);
}
void Visuals::rainbowpoloskaadidaskrossovki()
{
if (!g_cfg[XOR("rainbow_line_from_ur_pasting_ass")].get<bool>())
return;
if (g_cl.m_local && g_cl.m_local->alive() && g_csgo.m_engine->IsInGame() && g_csgo.m_engine->ISCONNECTED)
{
static float rainbow;
rainbow += 0.0001f;
if (rainbow > 1.f)
rainbow = 0.f;
auto rainbow_col = Color::FromHSB(rainbow, 1, 1);
auto local_pos = g_cl.m_local->GetAbsOrigin();
beam(local_pos, vec3_t(local_pos.x, local_pos.y + 10, local_pos.z), rainbow_col);
}