CThug::StopShooting

This commit is contained in:
krystalgamer 2024-06-09 19:40:30 +02:00
parent c6b0fb52ce
commit b6f0326955
2 changed files with 23 additions and 0 deletions

View File

@ -234,6 +234,28 @@ void __inline CThug::RunAppropriateHitAnim(void)
this->RunAnim(anim, 0, -1);
}
// @Ok
void __inline CThug::StopShooting(void)
{
switch (this->dumbAssPad)
{
case 0:
this->RunAnim(9, 0, -1);
this->dumbAssPad++;
break;
case 1:
if (this->field_142)
{
this->field_31C.bothFlags = 28;
this->dumbAssPad = 0;
}
break;
default:
print_if_false(0, "Unknown substate!");
break;
}
}
void validate_CThug(void){
VALIDATE_SIZE(CThug, 0x3C0);

1
thug.h
View File

@ -19,6 +19,7 @@ public:
EXPORT i32 ShouldFall(i32, i32);
EXPORT void DieAfterFlyingAcrossRoom(void);
EXPORT void RunAppropriateHitAnim(void);
EXPORT void StopShooting(void);
EXPORT virtual void SetThugType(int);