mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 21:39:48 +00:00
60acd49729
CThug TODOs CSuperOck TODOs Spool TODOs CPlayer TODOs SpClone TODOs Simby TODOs CScorpion TODOs Redbook TODOs Baddy TODOs M3dColij TODOs M3dUtils TODOs CLizMan TODOs FontTools TODOs AI TODOs Bit TODOs BlackCat TODOs Camera TODOs Carnage TODOs DCShell TODOs DocOck TODOs Effects TODOs Jonah TODOs ManipOb TODOs Mess TODOs Mysterio TODOs Panel TODOs Platform TODOs Ps2Funcs TODOs LowSfx TODOs M3D TODOs Pad TODOs PShell TODOs Reloc TODOs
100 lines
2.2 KiB
C++
100 lines
2.2 KiB
C++
#include "superock.h"
|
|
#include "validate.h"
|
|
#include "ps2m3d.h"
|
|
|
|
// @NotOk
|
|
// globals
|
|
CSuperDocOck::CSuperDocOck(int *a2, int a3)
|
|
{
|
|
this->field_32C = 0;
|
|
this->field_330 = 0;
|
|
this->field_334 = 0;
|
|
|
|
this->field_344 = reinterpret_cast<int>(
|
|
this->SquirtAngles(reinterpret_cast<__int16*>(this->SquirtPos(a2))));
|
|
|
|
this->InitItem("superock");
|
|
this->mFlags |= 0x480;
|
|
this->mCBodyFlags &= 0xFFEF;
|
|
this->field_3C = 0x557928;
|
|
|
|
this->field_E2 = 500;
|
|
this->field_DC = 0;
|
|
this->AttachTo(reinterpret_cast<CBody**>(0x56E9900));
|
|
|
|
this->field_38 = 309;
|
|
this->field_1F4 = a3;
|
|
this->field_DE = a3;
|
|
|
|
this->field_36C = 1024;
|
|
this->field_374 = 0x10000;
|
|
this->field_370 = 0x10000;
|
|
this->field_3D8 = 4;
|
|
this->field_31C.bothFlags = 1;
|
|
this->field_21E = 100;
|
|
|
|
*reinterpret_cast<int*>(0x54E8D4) = 4096;
|
|
*reinterpret_cast<int*>(0x60F774) = 0xFFFFFF;
|
|
*reinterpret_cast<unsigned char*>(0x60F772) = 1;
|
|
*reinterpret_cast<int*>(0x60F778) = *gTimerRelated;
|
|
|
|
this->field_194 = 0xFFFE0000;
|
|
this->field_198 = 0x1FFF;
|
|
}
|
|
|
|
// @Ok
|
|
void SuperDocOck_CreateSuperDocOck(const unsigned int *stack, unsigned int *result)
|
|
{
|
|
int* v2 = reinterpret_cast<int*>(*stack);
|
|
int v3 = static_cast<int>(stack[1]);
|
|
|
|
*result = reinterpret_cast<unsigned int>(new CSuperDocOck(v2, v3));
|
|
}
|
|
|
|
// @Ok
|
|
void CSuperDocOck::Shouldnt_DoPhysics_Be_Virtual(void)
|
|
{
|
|
this->DoPhysics();
|
|
}
|
|
|
|
// @BIGTODO
|
|
void CSuperDocOck::DoPhysics(void)
|
|
{}
|
|
|
|
// @Ok
|
|
void CSuperDocOck::RenderClaws(void)
|
|
{
|
|
M3d_Render(this->field_3F4);
|
|
}
|
|
|
|
// @BIGTODO
|
|
__inline int* CSuperDocOck::KillCommandBlock(int*)
|
|
{
|
|
return (int*)0x02062024;
|
|
}
|
|
|
|
// @NotOk
|
|
// Revisit
|
|
void CSuperDocOck::KillAllCommandBlocks(void)
|
|
{
|
|
for (int* cur = reinterpret_cast<int*>(this->field_348); cur; cur = this->KillCommandBlock(cur));
|
|
this->field_348 = 0;
|
|
}
|
|
|
|
void validate_CSuperDocOck(void){
|
|
VALIDATE_SIZE(CSuperDocOck, 0x414);
|
|
|
|
VALIDATE(CSuperDocOck, field_32C, 0x32C);
|
|
VALIDATE(CSuperDocOck, field_330, 0x330);
|
|
VALIDATE(CSuperDocOck, field_334, 0x334);
|
|
|
|
VALIDATE(CSuperDocOck, field_344, 0x344);
|
|
VALIDATE(CSuperDocOck, field_348, 0x348);
|
|
VALIDATE(CSuperDocOck, field_36C, 0x36C);
|
|
VALIDATE(CSuperDocOck, field_370, 0x370);
|
|
VALIDATE(CSuperDocOck, field_374, 0x374);
|
|
VALIDATE(CSuperDocOck, field_3D8, 0x3D8);
|
|
|
|
VALIDATE(CSuperDocOck, field_3F4, 0x3F4);
|
|
}
|