one more cturret method

This commit is contained in:
krystalgamer 2024-03-11 18:00:20 +01:00
parent 0437777d72
commit 72b5c7d5b4
2 changed files with 13 additions and 1 deletions

View File

@ -7,9 +7,19 @@ void __inline CTurret::TargetLockAbsolute(const CVector &a1){
this->field_218 |= 4;
}
void __inline CTurret::TargetLockDynamic(CBody *a2)
{
if ( !a2->IsDead() )
{
this->field_378 = a2;
this->field_218 |= 0x10u;
}
}
void validate_CTurret(void){
VALIDATE_SIZE(CTurret, 0x37C);
VALIDATE(CTurret, field_324, 0x324);
VALIDATE(CTurret, field_344, 0x344);
VALIDATE(CTurret, field_378, 0x378);
}

View File

@ -7,12 +7,14 @@
class CTurret : public CBaddy {
public:
EXPORT void TargetLockAbsolute(const CVector &);
EXPORT void TargetLockDynamic(CBody *a2);
CVector field_324;
unsigned char padAfter324[0x20 - sizeof(CVector)];
CVector field_344;
unsigned char padFull[41];
unsigned char padAfter344[0x378-0x344 - sizeof(CVector)];
CBody *field_378;
};
void validate_CTurret(void);