Jump to content

High Quality ESP Tutorial For Unity Games


47 posts in this topic

Recommended Posts

Posted (edited)

catJAM

fast comments for improve ur coding
 

removeEnemyGivenObject(enemy->object); // Remove dead enemies

removing object while u iterating array is not good practice
also if this object will be same no need to remove and add again just dont draw
deleting object and then adding again - its deleting draw layers and adding
 

if (enemy->object == enemyObject) {

comparing object also not good practice
better add something like id - for objects thats dont have id there is unity function - public int GetInstanceID() { }

separate action like init and draw
in init make all fields like position of head inside of object

struct enemy_t {
	...
	Vector3 screenPointFeet;
	Vector3 screenPointHead;
	...
};

also basically u will not have both positions in other way u need to loop all bones inside of array to find
try to make box universal based on player position + distance
 

    espManager->drawEnemies(myPlayer);

every update of one entity - u will call to draw ALL entities

Updated by Saitama
  • Like 2
  • Agree 4
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines