mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 21:39:48 +00:00
CJonah::CJonah(int*, int)
This commit is contained in:
parent
0c46709c91
commit
6cba8fcfe4
54
jonah.cpp
54
jonah.cpp
@ -1,5 +1,6 @@
|
||||
#include "jonah.h"
|
||||
#include "validate.h"
|
||||
#include "panel.h"
|
||||
|
||||
int JoelJewtCheatCode = 0;
|
||||
|
||||
@ -26,6 +27,59 @@ CJonah::CJonah(void)
|
||||
|
||||
}
|
||||
|
||||
// @NotOk
|
||||
// Globals
|
||||
CJonah::CJonah(int* a2, int a3)
|
||||
{
|
||||
this->field_34C = 0;
|
||||
this->field_350 = 0;
|
||||
this->field_354 = 0;
|
||||
|
||||
__int16 *v5 = this->SquirtAngles(reinterpret_cast<__int16*>(this->SquirtPos(a2)));
|
||||
|
||||
|
||||
if (JoelJewtCheatCode)
|
||||
{
|
||||
this->InitItem("jjjj");
|
||||
}
|
||||
else
|
||||
{
|
||||
this->InitItem("jameson");
|
||||
}
|
||||
|
||||
this->mFlags |= 0x480;
|
||||
this->field_3C = 0x552010;
|
||||
this->AttachTo(reinterpret_cast<CBody**>(0x56E990));
|
||||
|
||||
this->field_1F4 = a3;
|
||||
this->field_DE = a3;
|
||||
this->field_38 = 316;
|
||||
this->field_21E = 100;
|
||||
this->field_DC = 100;
|
||||
|
||||
this->field_230 = 0;
|
||||
this->field_216 = 32;
|
||||
this->field_D8 = 64;
|
||||
this->field_31C.bothFlags = 0;
|
||||
|
||||
this->field_2A8 |= 0x2002001;
|
||||
this->field_E2 = 120;
|
||||
|
||||
unsigned char * ptr = reinterpret_cast<unsigned char*>(0x552008);
|
||||
this->field_294 = ptr[0];
|
||||
this->field_295 = ptr[1];
|
||||
this->field_296 = ptr[2];
|
||||
this->field_297 = ptr[3];
|
||||
this->field_298 = ptr[4];
|
||||
this->field_299 = ptr[5];
|
||||
this->field_29A = ptr[6];
|
||||
this->field_29B = ptr[7];
|
||||
|
||||
this->mCBodyFlags &= 0xFFEF;
|
||||
this->ParseScript(reinterpret_cast<unsigned __int16*>(v5));
|
||||
Panel_CreateHealthBar(this, 316);
|
||||
}
|
||||
|
||||
void validate_CJonah(void){
|
||||
VALIDATE_SIZE(CJonah, 0x380);
|
||||
|
||||
|
1
jonah.h
1
jonah.h
@ -6,6 +6,7 @@
|
||||
class CJonah : public CBaddy {
|
||||
public:
|
||||
EXPORT CJonah(void);
|
||||
EXPORT CJonah(int*, int);
|
||||
unsigned char padStartJonah[0x28];
|
||||
int field_34C;
|
||||
int field_350;
|
||||
|
6
panel.cpp
Normal file
6
panel.cpp
Normal file
@ -0,0 +1,6 @@
|
||||
#include "panel.h"
|
||||
|
||||
|
||||
// @TODO
|
||||
void Panel_CreateHealthBar(const CBody*, int)
|
||||
{}
|
12
panel.h
Normal file
12
panel.h
Normal file
@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#ifndef PANEL_H
|
||||
#define PANEL_H
|
||||
|
||||
#include "export.h"
|
||||
#include "ob.h"
|
||||
|
||||
EXPORT void Panel_CreateHealthBar(const CBody*, int);
|
||||
|
||||
#endif
|
@ -200,6 +200,10 @@ SOURCE=.\ob.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\panel.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\platform.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
@ -416,6 +420,10 @@ SOURCE=.\ob.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\panel.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\platform.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
Loading…
Reference in New Issue
Block a user