Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "SDK.h"
- class CGlowObjectManager
- {
- public:
- class GlowObjectDefinition_t
- {
- public:
- void set(CColor color)
- {
- int r, g, b, a;
- color.GetColor(r, g, b, a);
- m_vGlowColor = Vector(r / 255.f, g / 255.f, b / 255.f);
- m_flGlowAlpha = a / 255.f;
- m_bRenderWhenOccluded = true;
- m_bRenderWhenUnoccluded = false;
- m_flBloomAmount = 1.f;
- }
- C_BaseEntity* getEntity()
- {
- return m_hEntity;
- }
- bool IsEmpty() const { return m_nNextFreeSlot != GlowObjectDefinition_t::ENTRY_IN_USE; }
- public:
- C_BaseEntity* m_hEntity;
- Vector m_vGlowColor;
- float m_flGlowAlpha;
- char unknown[4];
- float flUnk;
- float m_flBloomAmount;
- float localplayeriszeropoint3;
- bool m_bRenderWhenOccluded;
- bool m_bRenderWhenUnoccluded;
- bool m_bFullBloomRender;
- char unknown1[1];
- int m_nFullBloomStencilTestValue;
- int iUnk;
- int m_nSplitScreenSlot;
- int m_nNextFreeSlot;
- static const int END_OF_FREE_LIST = -1;
- static const int ENTRY_IN_USE = -2;
- };
- GlowObjectDefinition_t* m_GlowObjectDefinitions;
- int max_size;
- int pad;
- int size;
- GlowObjectDefinition_t* m_GlowObjectDefinitions2;
- int currentObjects;
- }; extern CGlowObjectManager* g_pGlowObjectManager;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement