mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-03-30 17:45:02 +00:00
Added a few things that I forgot
This commit is contained in:
parent
8c1723d6ba
commit
2ee8c36a90
5 changed files with 42 additions and 20 deletions
|
|
@ -5,5 +5,28 @@ namespace DX
|
|||
NetObject::NetObject(unsigned int obj) : net_flags(*(unsigned int*)(obj + 64)),
|
||||
SimObject(obj)
|
||||
{
|
||||
|
||||
}
|
||||
void NetObject::setMaskBits(unsigned int bits){
|
||||
unsigned int localbits=bits;
|
||||
unsigned int bpv = this->base_pointer_value;
|
||||
void * setmaskbitptr = (void *)(unsigned int)0x585BE0;
|
||||
__asm {
|
||||
push localbits
|
||||
mov ecx,bpv
|
||||
mov eax,setmaskbitptr
|
||||
call eax
|
||||
};
|
||||
}
|
||||
void NetObject::clearMaskBits(unsigned int bits){
|
||||
unsigned int localbits=bits;
|
||||
unsigned int bpv = this->base_pointer_value;
|
||||
void * clearmaskbitptr = (void *)(unsigned int)0x585C10;
|
||||
__asm {
|
||||
push localbits
|
||||
mov ecx,bpv
|
||||
mov eax,clearmaskbitptr
|
||||
call eax
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue