-
Notifications
You must be signed in to change notification settings - Fork 0
/
Glow.cpp
55 lines (49 loc) · 1.59 KB
/
Glow.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include "Glow.h"
void CGlow::Draw()
{
for (auto i = 0; i < interfaces.glow_manager->size; i++)
{
auto glow_object = &interfaces.glow_manager->m_GlowObjectDefinitions[i];
IBasePlayer* m_entity = glow_object->m_pEntity;
if (!glow_object->m_pEntity || glow_object->IsUnused()
|| m_entity->GetClientClass()->m_ClassID != g_ClassID->CCSPlayer)
continue;
if (!m_entity->isAlive() || m_entity->IsDormant())
continue;
if (m_entity == csgo->local)
{
if (vars.visuals.local_glow && interfaces.input->m_fCameraInThirdPerson)
{
glow_object->m_vGlowcolor_t = Vector(
vars.visuals.local_glow_clr[0] / 255.f,
vars.visuals.local_glow_clr[1] / 255.f,
vars.visuals.local_glow_clr[2] / 255.f
);
if (vars.visuals.glowtype == 1)
glow_object->m_bPulsatingChams = true;
glow_object->m_flGlowAlpha = vars.visuals.local_glow_clr[3] / 255.f;
glow_object->m_bRenderWhenOccluded = true;
glow_object->m_bRenderWhenUnoccluded = false;
glow_object->m_bFullBloomRender = false;
}
else
continue;
}
if (m_entity->GetTeam() == csgo->local->GetTeam())
continue;
if (vars.visuals.glow) {
glow_object->m_vGlowcolor_t = Vector(
vars.visuals.glow_color[0] / 255.f,
vars.visuals.glow_color[1] / 255.f,
vars.visuals.glow_color[2] / 255.f
);
if (vars.visuals.glowtype == 1)
glow_object->m_bPulsatingChams = true;
glow_object->m_flGlowAlpha = vars.visuals.glow_color[3] / 255.f;
glow_object->m_bRenderWhenOccluded = true;
glow_object->m_bRenderWhenUnoccluded = false;
glow_object->m_bFullBloomRender = false;
continue;
}
}
}