Вопрос Drawbeampaw

Тьомчик
Участник
Статус
Оффлайн
Регистрация
30 Июн 2020
Сообщения
703
Реакции[?]
150
Поинты[?]
58K
C++:
void DrawBeamPaw(Vector src, Vector end, Color color)
{
    BeamInfo_t beamInfo;
    beamInfo.m_nType = TE_BEAMPOINTS;
    beamInfo.m_pszModelName = "sprites/purplelaser1.vmt";
    beamInfo.m_nModelIndex = -1; // will be set by CreateBeamPoints if its -1
    beamInfo.m_flHaloScale = 0.0f;
    beamInfo.m_flLife = 1.f;
    beamInfo.m_flWidth = 5.0f;
    beamInfo.m_flEndWidth = 5.0f;
    beamInfo.m_flFadeLength = 0.0f;
    beamInfo.m_flAmplitude = 2.0f;
    beamInfo.m_flBrightness = 255.f;
    beamInfo.m_flSpeed = 0.5f;
    beamInfo.m_nStartFrame = 0;
    beamInfo.m_flFrameRate = 0.f;
    beamInfo.m_flRed = 255.f;
    beamInfo.m_flGreen = 0.f;
    beamInfo.m_flBlue = 255.f;
    beamInfo.m_nSegments = 2;
    beamInfo.m_bRenderable = true;
    beamInfo.m_nFlags = 0;

    auto client = GetModuleHandleW(L"client.dll");
    auto g_Beams = *(IViewRenderBeams**)(Utils::PatternScan(client, "A1 ? ? ? ? FF 10 A1 ? ? ? ? B9") + 1);
    Beam_t* myBeam = g_Beams->CreateBeamPoints(beamInfo);
    if (myBeam)
        g_Beams->DrawBeam(myBeam);
}

нересуеться
 
Сверху Снизу