mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-02-24 09:03:36 +00:00
Restructured project structure to use a singular SLN; made the T2API common to all projects; adjusted watchdog timer to 8 seconds
This commit is contained in:
parent
e1c5d1dead
commit
527474ff24
79 changed files with 469 additions and 626 deletions
21
CommonAPI/Common/source/DXAPI/ShapeBase.cpp
Normal file
21
CommonAPI/Common/source/DXAPI/ShapeBase.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include <DXAPI/ShapeBase.h>
|
||||
#define CloakMask 0x40
|
||||
namespace DX
|
||||
{
|
||||
ShapeBase::ShapeBase(unsigned int obj) : GameBase(obj),
|
||||
heat_level(*(float*)(obj + 1972)), cloak_level(*(float*)(obj+0x810)), cloaked(*(bool*)(obj+0x80D))
|
||||
{
|
||||
}
|
||||
void ShapeBase::setMaskBits(int value){
|
||||
unsigned int addr=this->base_pointer_value;
|
||||
unsigned int bits=value;
|
||||
unsigned int funcaddr=0x585BE0;
|
||||
__asm {
|
||||
mov eax,bits
|
||||
push eax
|
||||
mov ecx,addr
|
||||
mov eax,funcaddr
|
||||
call eax
|
||||
};
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue