CVenom::VenomDie

This commit is contained in:
krystalgamer 2024-06-30 23:15:25 +01:00
parent 16131eec77
commit 6ccd35147f
2 changed files with 56 additions and 1 deletions

View File

@ -187,9 +187,59 @@ void CVenom::AdjustWaterModel(void)
}
// @TODO
void CVenom::PulseL6A4Node(bool)
{}
// @Ok
void CVenom::VenomDie(void)
{
switch (this->dumbAssPad)
{
case 0:
this->field_330 = 16;
this->field_218 &= 0xFFFFFFF8;
this->mAccellorVel.vx = 0;
this->mAccellorVel.vy = 0;
this->mAccellorVel.vz = 0;
this->mCBodyFlags &= 0xFFEF;
this->mFlags &= 0xFFBE;
this->field_218 &= 0xFFFFFE7F;
this->dumbAssPad++;
break;
case 1:
this->field_330 = 16;
if (this->field_142)
{
this->RunAnim(0x29, 0, -1);
this->dumbAssPad++;
}
break;
case 2:
if (this->field_142)
{
if (Trig_GetLevelId() == 1540)
{
this->PulseL6A4Node(false);
this->dumbAssPad++;
}
else
{
this->Die(0);
}
}
break;
}
}
void validate_CVenom(void){
VALIDATE_SIZE(CVenom, 0x468);
VALIDATE(CVenom, field_330, 0x330);
VALIDATE(CVenom, field_338, 0x338);
VALIDATE(CVenom, field_33C, 0x33C);

View File

@ -22,8 +22,13 @@ public:
EXPORT void Lookaround(void);
EXPORT void TugWeb(void);
EXPORT void AdjustWaterModel(void);
EXPORT void PulseL6A4Node(bool);
EXPORT void VenomDie(void);
u8 venomStartPad[0x18-0xC];
i32 field_330;
u8 padAfter330[4];
u8 venomStartPad[0x18-4];
i32 field_338;
u8 field_33C;
u8 field_33D;