Hi. I am not sure how to go about changing the textures on the fly, I am not sure if it is possible, it may be with enough poking. But right now schools are about to start
As for the other parameters, I use the following:
As for the other parameters, I use the following:
Code:
void setmass(OBJHANDLE obj, double m)
{
_asm
{
mov eax, dword ptr [obj]
fld qword ptr [m]
fstp qword ptr [eax+10h]
}
}
void setsize(OBJHANDLE obj, double s)
{
_asm
{
mov eax, dword ptr [obj]
fld qword ptr [s]
fstp qword ptr [eax+18h]
}
}
void setname(OBJHANDLE obj, char * newname)
{
char * nptr = 0;
_asm
{
mov ecx, dword ptr [obj]
mov edx, dword ptr [ecx+0x1CC]
mov [nptr], edx
}
strcpy(nptr, newname);
}