Thread: Glow.

Results 1 to 9 of 9
  1. #1
    ActualCheats's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Location
    Yorkshire > All
    Posts
    348
    Reputation
    15
    Thanks
    132
    My Mood
    Inspired

    Question Glow.

    Currently I have to be a certain distance to the enemy team to see the glow and if I'm bhopping it all disappears. However my team will not.
    Code:
    struct GlowObjectDefinition_t
    {
    	void* pEntity;
    	float r;
    	float g;
    	float b;
    	float a;
    	uint8_t unk1[16];
    	bool m_bRenderWhenOccluded;
    	bool m_bRenderWhenUnoccluded;
    	bool m_bFullBloom;
    	uint8_t unk2[10];
    }
    
                    DWORD gObjectBase = 0x04FB556C;
    		DWORD glowIndex = 0xA310;
    
    		DWORD LocalPlayer = Mem.Read<DWORD>(Client + dwLocal);
    		DWORD GlowPointer = Mem.Read<DWORD>(Client + gObjectBase);
    		for (int i = 0; i < 64; i++)
    		{
    			int currentPlayer = Mem.Read<int>(Client + EntBase + ((i - 1) * 16));
    			int teamNum = Mem.Read<int>(currentPlayer + Team);
    			int MyTeam = Mem.Read<int>(LocalPlayer + Team);
    			int healthEnt = Mem.Read<int>(currentPlayer + Health);
    
    			bool currentPlayerDormant = Mem.Read<bool>(currentPlayer + Dormant);
    			int currentPlayerGlowIndex = Mem.Read<int>(currentPlayer + glowIndex);
    
    			if (currentPlayerDormant == 1)
    				continue;
    			else
    			{
    				if ((teamNum != MyTeam)) {
    					if (healthEnt > 66 && healthEnt <= 100) {
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x4)), 0.0f);  // Red
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x8)), 255.0f);  // Green
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0xC)), 0.0f);   // Blue
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x10)), 0.8f);  // Alpha
    						Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x24)), true);
    						Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x25)), false);
    					}
    					else if (healthEnt > 33 && healthEnt <= 66) {
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x4)), 255.0f);  // Red
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x8)), 187.0f);  // Green
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0xC)), 0.0f);   // Blue
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x10)), 0.8f);  // Alpha
    						Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x24)), true);
    						Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x25)), false);
    						}
    					else if (healthEnt > 0 && healthEnt <= 33) {
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x4)), 255.0f);  // Red
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x8)), 0.0f);  // Green
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0xC)), 0.0f);   // Blue
    						Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x10)), 0.8f);  // Alpha
    						Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x24)), true);
    						Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x25)), false);
    					}
    				}
    				if ((teamNum == MyTeam))
    				{
    					Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x4)), 0.0f);  // Red
    					Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x8)), 0.0f);  // Green
    					Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0xC)), 1.0f);   // Blue
    					Mem.Write<float>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x10)), 0.8f);  // Alpha
    					Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x24)), true);
    					Mem.Write<BOOL>((GlowPointer + ((currentPlayerGlowIndex * 0x38) + 0x25)), false);
    				}
    			}
    
    		}
    
    };
    Last edited by ActualCheats; 05-28-2016 at 07:04 PM.
    "The only wrong questions are the ones you don't ask" - My Father.

  2. #2
    ImStyL's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Location
    Antartica
    Posts
    145
    Reputation
    10
    Thanks
    2,063
    How are you calling both BHOP and Glow ESP?
    Also for Health ESP, do something like this as it will make look better.

    Code:
    Health = Entity.Health(Player);
    red = (hp - 1 / 100.0f);
    green = hp / 100.0f;
    Last edited by ImStyL; 05-28-2016 at 07:51 PM.




    Got a question or need help?
    Click here to add me on Skype





  3. #3
    ActualCheats's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Location
    Yorkshire > All
    Posts
    348
    Reputation
    15
    Thanks
    132
    My Mood
    Inspired
    I'm calling the BHOP and Glow in int main, when the toggle bool is on it toggles. There seems to be no link between the two functions.
    "The only wrong questions are the ones you don't ask" - My Father.

  4. #4
    ImStyL's Avatar
    Join Date
    Jan 2016
    Gender
    male
    Location
    Antartica
    Posts
    145
    Reputation
    10
    Thanks
    2,063
    can you show(code) how your calling them?




    Got a question or need help?
    Click here to add me on Skype





  5. #5
    ImWhacky's Avatar
    Join Date
    Sep 2015
    Gender
    male
    Posts
    509
    Reputation
    56
    Thanks
    4,059
    My Mood
    Breezy
    Valve updated the way glow works a while ago, you can only see them when you are a certain distance away and its supposed to be like that. as for your other problem, we would need to see how and where you call your functions to help you


     

    Steam-TriggeredFemenazi
    CS:GO Rank-MG (but I'm a dirty cheater so who cares)
    Discord-ImWhacky#6260

    P.M. me if you have any questions.


  6. #6
    legit_player's Avatar
    Join Date
    Aug 2015
    Gender
    male
    Location
    /root
    Posts
    313
    Reputation
    10
    Thanks
    2,784
    My Mood
    Cool
    You shouldnt have it all together you should separate it.
    https://www.cplusplus.com/reference/thread/thread/

  7. #7
    skrims's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    1
    how would i implement this into a mac version

  8. #8
    ActualCheats's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Location
    Yorkshire > All
    Posts
    348
    Reputation
    15
    Thanks
    132
    My Mood
    Inspired
    I fixed it, my Bunny Hop code was in a while loop causing the disappearance of the glow.
    Code:
    while (GetAsyncKeyState(VK_SPACE) & 0x8000)
    
    Now
    
    if (GetAsyncKeyState(VK_SPACE) & 0x8000)
    @rwby , @Hunter Can you close this thread?
    "The only wrong questions are the ones you don't ask" - My Father.

  9. #9
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,468
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    /Solved & closed.

Similar Threads

  1. [Release] ACU Glock 23 with glow sights/3rd gen. frame (Second Mod)
    By Nismo in forum Combat Arms Mods & Rez Modding
    Replies: 14
    Last Post: 04-26-2010, 05:52 PM
  2. Replies: 5
    Last Post: 04-22-2010, 05:08 PM
  3. rotfl human glowing in mutation mode
    By amarshonarbangla in forum CrossFire Glitches
    Replies: 27
    Last Post: 03-24-2010, 07:56 AM
  4. Glowing animation tutorial
    By Humper in forum Tutorials
    Replies: 27
    Last Post: 06-16-2009, 03:04 PM
  5. Glow Text- Plz rate
    By blueduece2 in forum Showroom
    Replies: 2
    Last Post: 04-23-2009, 02:37 AM