Ejemplo n.º 1
0
        public void RegisterGlowObject(int iGlowIndex, float r, float g, float b, float a, bool bInnerGlow, bool bFullRender = false)
        {
            GlowObjectDefinition_t glow = MemoryAPI.ReadFromProcess <GlowObjectDefinition_t>(Globals._csgo.ProcessHandle, pThis + (iGlowIndex * 0x38));

            glow.fR                    = r / 255f;
            glow.fG                    = g / 255f;
            glow.fB                    = b / 255f;
            glow.fAlpha                = a / 255f;
            glow.m_bInnerGlow          = bInnerGlow;
            glow.bRenderWhenOccluded   = true;
            glow.bRenderWhenUnoccluded = false;
            glow.bFullBloomRender      = bFullRender;
            MemoryAPI.WriteToProcess <GlowObjectDefinition_t>(Globals._csgo.ProcessHandle, pThis + (iGlowIndex * 0x38), glow);
        }
Ejemplo n.º 2
0
        public IClientEntity GetEntityByGlowIndex(int iGlowIndex)
        {
            GlowObjectDefinition_t glow = MemoryAPI.ReadFromProcess <GlowObjectDefinition_t>(Globals._csgo.ProcessHandle, pThis + (iGlowIndex * 0x38));

            return(new IClientEntity(new IntPtr(glow.dwEntity)));
        }