Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "SDK.h"
  4.  
  5. class CGlowObjectManager
  6. {
  7. public:
  8. class GlowObjectDefinition_t
  9. {
  10. public:
  11. void set(CColor color)
  12. {
  13. int r, g, b, a;
  14. color.GetColor(r, g, b, a);
  15. m_vGlowColor = Vector(r / 255.f, g / 255.f, b / 255.f);
  16. m_flGlowAlpha = a / 255.f;
  17. m_bRenderWhenOccluded = true;
  18. m_bRenderWhenUnoccluded = false;
  19. m_flBloomAmount = 1.f;
  20. }
  21.  
  22. C_BaseEntity* getEntity()
  23. {
  24. return m_hEntity;
  25. }
  26.  
  27. bool IsEmpty() const { return m_nNextFreeSlot != GlowObjectDefinition_t::ENTRY_IN_USE; }
  28.  
  29. public:
  30. C_BaseEntity* m_hEntity;
  31. Vector m_vGlowColor;
  32. float m_flGlowAlpha;
  33.  
  34. char unknown[4];
  35. float flUnk;
  36. float m_flBloomAmount;
  37. float localplayeriszeropoint3;
  38.  
  39.  
  40. bool m_bRenderWhenOccluded;
  41. bool m_bRenderWhenUnoccluded;
  42. bool m_bFullBloomRender;
  43. char unknown1[1];
  44.  
  45.  
  46. int m_nFullBloomStencilTestValue;
  47. int iUnk;
  48. int m_nSplitScreenSlot;
  49. int m_nNextFreeSlot;
  50.  
  51. static const int END_OF_FREE_LIST = -1;
  52. static const int ENTRY_IN_USE = -2;
  53. };
  54.  
  55. GlowObjectDefinition_t* m_GlowObjectDefinitions;
  56. int max_size;
  57. int pad;
  58. int size;
  59. GlowObjectDefinition_t* m_GlowObjectDefinitions2;
  60. int currentObjects;
  61. }; extern CGlowObjectManager* g_pGlowObjectManager;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement