Hi. About 4 days ago I got into C++, I went straight to Excidium's external base tutorial, got up to the bunnyhop part and then decided to progress on my own once i understood the language more (somehow i seem to pick this stuff up quickly).
I'm currently testing a SMAC UD bhop option aswell.
I've later managed to add an "ENT in crosshair" triggerbot and an "in-console" menu to edit the configuration options.
My main problem is how to find what team the player ENT is in. I've found the pointer to show all player info, and found the first offset to find my own team - and the offset from my team to the next players team. This offset of player team is consistent through each player i found, so i had the idea to do a loop of ReadProcessMemory for the amount of players in the server (which i have also found) until the ENT ID im aiming on == the number of loops, then check the team, then choose whether to shoot or not...
But i am unable to get this working... My offset's are all correct and i can easily find the offsets if i choose to do one by one in a static manor, but if i try to dynamically do it for an unset amount (until playercount is found) i cant.
I don't have my code with me but here's a pseudo-ish example:
That's just so it dynamically checks each player every loop - and stops when its i == playerEnt im aiming on, so making i_checkteam = the ENT im aiming on's team number. I admit that I am probably really wrong for using a BYTE along with a DWORD, but i can't think of another way..
Hope that makes sense, is there any better way of check what team a player is on? Or can you help me with this?
Also i'm going to look into using the hitboxes for the triggerbot, but i also have not looked into that much and have no clue where to start.
I'm not specifically looking for code.. As that defeats the point of me making it... But just any ideas or tips.
Sorry if i have used bad grammar etc. I'm in a rush - I also do not currently have access to my code.
Thanks if you can help! And sorry if this is in the wrong section!!!!
I'm currently testing a SMAC UD bhop option aswell.
I've later managed to add an "ENT in crosshair" triggerbot and an "in-console" menu to edit the configuration options.
My main problem is how to find what team the player ENT is in. I've found the pointer to show all player info, and found the first offset to find my own team - and the offset from my team to the next players team. This offset of player team is consistent through each player i found, so i had the idea to do a loop of ReadProcessMemory for the amount of players in the server (which i have also found) until the ENT ID im aiming on == the number of loops, then check the team, then choose whether to shoot or not...
But i am unable to get this working... My offset's are all correct and i can easily find the offsets if i choose to do one by one in a static manor, but if i try to dynamically do it for an unset amount (until playercount is found) i cant.
I don't have my code with me but here's a pseudo-ish example:
Code:
ReadProcessMemory(playerbaseent + myTeamOffset), i_myteam);
while (int i = 1; i <= ENTinCrosshair; i++;)
{
ReadProcessMemory(i_myteam + (nextPlayerTeamOffset * i), i_checkteam);
if(i_checkteam == ENTinCrosshair
{
break;
}
}
Hope that makes sense, is there any better way of check what team a player is on? Or can you help me with this?
Also i'm going to look into using the hitboxes for the triggerbot, but i also have not looked into that much and have no clue where to start.
I'm not specifically looking for code.. As that defeats the point of me making it... But just any ideas or tips.
Sorry if i have used bad grammar etc. I'm in a rush - I also do not currently have access to my code.
Thanks if you can help! And sorry if this is in the wrong section!!!!