mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-30 17:00:50 +00:00
CHostage::WaitForPlayer
This commit is contained in:
parent
edf5612d61
commit
12fb49ee01
36
hostage.cpp
36
hostage.cpp
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user