Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct hashFindData {
- unsigned int dataHash;
- unsigned int calculationData;
- hashFindData *next;
- };
- hashFindData *getHashAddress(unsigned int hash) {
- short div = *(short*)(0x1EA3A7C+0x14);
- unsigned int v1 = hash/div;
- unsigned int v2 = v1*div;
- unsigned int dif = hash-v2;
- unsigned int add = dif << 2;
- unsigned int structAddr = *(unsigned int*)( *(int*)(0x1EA3A7C+0x10) +add);
- hashFindData *dat = (hashFindData *)structAddr;
- }
- unsigned int getCalculationData(unsigned int hash) {
- hashFindData *d = getHashAddress(hash);
- while (d != 0) {
- if (d->dataHash == hash) {
- return calculationData;
- }
- d = d->next;
- }
- return 0;
- }
- int main()
- {
- //so essentially, if this = 0, the model is loadable and spawnable
- //if it returns 0, then u gotta teleport to the option to get the game to load it into this data first so this doesn't return 0 anymore
- getCalculationData(some hash);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement