HelpItem ESP

Posts 1–9 of 9 · Page 1 of 1
Item ESP
To preface, I tried looking for this.
Anyways, I want to make certain weapons glow when they are on the ground. I thought that the entity would equal the weapon's ID, but this was not the case. How should I approach searching for the entity of a weapon on the ground?
You can check for the Class ID.

Iterate through every entity in the GlowObjectList, check it's Class ID and if it is a weapon, glow it.
Quote Originally Posted by WasserEsser View Post
You can check for the Class ID.

Iterate through every entity in the GlowObjectList, check it's Class ID and if it is a weapon, glow it.
First, I don't want every weapon. Second, I don't know the Class ID for a weapon, that's kind of what I was asking.
You can iterate through the entities and check the class id, save all the weapons in an array / vector, then grab the weapon id's.
To be more precise, use ItemDefinitionIndex to be able to distinguish between revolver / deagle, different knifes etc..

If you iterate through the GlowObjectArray, the first member of the struct is a pointer to the entity. You can use it to grab the class id / weapon id / itemdefinitionindex.
Quote Originally Posted by WasserEsser View Post
You can iterate through the entities and check the class id, save all the weapons in an array / vector, then grab the weapon id's.
To be more precise, use ItemDefinitionIndex to be able to distinguish between revolver / deagle, different knifes etc..

If you iterate through the GlowObjectArray, the first member of the struct is a pointer to the entity. You can use it to grab the class id / weapon id / itemdefinitionindex.
So if an AWP is on the ground, I find its Class ID and from there I can do a calculation to get 9 (the wep ID of AWP)?
If you only want to glow AWP's, you can iterate over the glowobjectarray, get each pointer to the entity ( first member of the struct ), get the class id, compare it to a weapon class id, if it's a weapon, go further and check it's itemdefinitionindex, if it's an awp, glow.
Quote Originally Posted by WasserEsser View Post
If you only want to glow AWP's, you can iterate over the glowobjectarray, get each pointer to the entity ( first member of the struct ), get the class id, compare it to a weapon class id, if it's a weapon, go further and check it's itemdefinitionindex, if it's an awp, glow.
Here's some of my code:
Code:
struct Glow {
	DWORD pEntity;
	float r;
	float g;
	float b;
	float a;
	uint8_t unk1[16];
	bool RenderWhenOccluded;
	bool RenderWhenUnoccluded;
	bool FullBloom;
	uint8_t unk2[14];
};
Code:
int getClassID(DWORD gentity)
{
	return fProcess.Read<int>(fProcess.Read<int>(fProcess.Read<int>(fProcess.Read<int>(gentity + 0x8) + 2 * 0x4) + 0x1) + 20);
}
Code:
enum ClassId {
	ID_C4 = 29,
	ID_Chicken = 31,
	ID_Player = 35,
        ID_Flash = 9
};
I already have the functions to glow players, the C4, and a flashbang. I do not know the class ID of a weapon or how to get the item definition index.
Quote Originally Posted by KappaMang View Post
Here's some of my code:
Code:
struct Glow {
	DWORD pEntity;
	float r;
	float g;
	float b;
	float a;
	uint8_t unk1[16];
	bool RenderWhenOccluded;
	bool RenderWhenUnoccluded;
	bool FullBloom;
	uint8_t unk2[14];
};
Code:
int getClassID(DWORD gentity)
{
	return fProcess.Read<int>(fProcess.Read<int>(fProcess.Read<int>(fProcess.Read<int>(gentity + 0x8) + 2 * 0x4) + 0x1) + 20);
}
Code:
enum ClassId {
	ID_C4 = 29,
	ID_Chicken = 31,
	ID_Player = 35,
        ID_Flash = 9
};
I already have the functions to glow players, the C4, and a flashbang. I do not know the class ID of a weapon or how to get the item definition index.
Then open up google for once and start searching.
You are not the first one nor the second one asking about how to get weapon id's or how to dump class ids.

There are dozens of threads about these topics all around the internet in many different forums.
/Solved & closed.
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us