I'm currently working on telekill for my hack. So far it works well in elimination game type modes - it locks onto the other teams players fine and so on. I have however ran into problems with locking onto players in modes such as quarantine for instance. It seems to work sporadically, sometimes (especially if activated early in the round) it will lock on but other times, it will not find a player though there are several ones alive.
Basically the player pointers are filtered by checking if they are alive and checking that they are not on the same team as I am. As I recently got back to coding and have never done anything like this before (just used to have a simple PTC hack) I'm still reading up on the player structure. What data exactly can the __int32 related to teams in my player class hold? Is that just Alpha/Bravo or is there something else for non elimination game type modes? It still doesn't make sense it won't lock on when it's filtered by the criteria that the player is not in my team. Hope someone can give me a hint here on what could be wrong.
I fixed it. When I posted this, I hadn't really done much yet so it would always just pick the first player found. And I guess somehow at random times it would cause problems. Though it doesn't happen often. Now with a "next player" feature added, it's not a problem really as I can just skip that player if an error would to occur. Well it's not perfect so if anyone has any ideas, I still welcome them but just thought I'd let you know.
add the Next player portion to execute automatically
when the curretn selected player is dead/
Yes as it is now, it already jumps automatically to the next one when the current player dies. The problem is sometimes it doesn't seem to find a player and instead locks on to midair somewhere. That's why I need an manual "next player" too, so I can skip when that happens.