I dont really know why I put all the addresses for everything in the struct, but helloo, might come in use when making something one day. Such as:ĭWORD baseadd // base address of this current playerĭWORD coordEWa // The address of the players EW co-ordĭWORD coordNSa // The address of the players NS co-ordĭWORD coordUDa // The address of the players UD (up/down.wth was i thinking when naming this) co-ordĭWORD lookX // The players X-axis look (what will change if you move the mouse side to side)ĭWORD lookY // The players Y-axis look (what will change if you move the mouse forwards and backwards)ĭWORD lookXa // The address of the X lookĭWORD lookYa // The address of the Y lookĬhar name // Holds the current players nameĭWORD namea // The address of the current players name I was taught this way by evolution so i got used to it mu PLAYER_DATA structure holds valuable information about a player. ![]() PLAYER_DATA - I like to use some structs as well as functions. Void SetCrosshairOnEnemy(BYTE PlayerNumber) PLAYER_DATA GetPlayerData(BYTE PlayerNumber) Then we do the same with the height (between a point which is straight ahead of us, our player, and the enemy) to get the angle we need to aim up/down. This is then used to set our rotational look onto the enemy. So in at the end of that, we get our angle to aim for (away from North) in order to look at the enemy. With this, we can work out our relative angle between North (or a different point, which comes up later), our player, and the enemy. What we do, is get our position by co-ordinates, in X,Y and Z (or East/West, North/South and Height), and the same for the enemy. So my way uses world co-ords (including North point/ south point) This is my variation - some people will prefere to code colour aimbots (unreliable) or addressed (useless in most games other than cs. This is alot of text i know but its user friendly the actual code is small as i keep adding to it every section ******Creditz to coolsidharth and a special thanks here to evolution2009 for teaching me how to code C++******/ I found these codes and i edited some I DIDNT TRY IT any coder try it and tell if it workz If you are having any issues, shoot us an email, Contact MPGH Support. ![]() Ads are removed, almost completely ad free browsing.Let your voice be heard! You can post, reply, and share whatever is on your mind. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |