CHostage::WaitForPlayer

This commit is contained in:
krystalgamer 2024-06-18 19:08:38 +01:00
parent edf5612d61
commit 12fb49ee01
2 changed files with 39 additions and 0 deletions

View File

@ -1,6 +1,42 @@
#include "hostage.h"
#include "validate.h"
#include "utils.h"
// @TODO
void CHostage::CheckIfFreed(void)
{
}
// @Ok
void CHostage::WaitForPlayer(void)
{
switch (this->dumbAssPad)
{
case 0:
if (--this->field_230 <= 0)
{
this->RunAnim(1, 0, -1);
this->dumbAssPad++;
this->field_230 = Rnd(120) + 120;
}
this->CheckIfFreed();
break;
case 1:
if (this->field_142)
{
this->CycleAnim(0, 1);
this->dumbAssPad = 0;
}
this->CheckIfFreed();
break;
default:
print_if_false(0, "Unknown substate!");
break;
}
}
// @Ok
void __inline CHostage::DisappearBitch(void)

View File

@ -10,6 +10,9 @@ public:
EXPORT CHostage(i32*, i32);
EXPORT void GetUp(void);
EXPORT void DisappearBitch(void);
EXPORT void WaitForPlayer(void);
EXPORT void CheckIfFreed(void);
i32 field_324;
i32 field_328;