mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 21:39:48 +00:00
Spool_SkipPackets
This commit is contained in:
parent
7979b8128d
commit
2062010a27
@ -40,5 +40,6 @@ void M3dUtils_BuildPose(CSuper*)
|
||||
void M3dUtils_InterpolateVectors(int, int, unsigned int*, CItem*, int, int)
|
||||
{}
|
||||
|
||||
// @TODO
|
||||
void M3dUtils_GetHookPosition(VECTOR*, CSuper*, int)
|
||||
{}
|
||||
|
@ -671,6 +671,12 @@ unsigned char CPlayer::SetFireWebbing(void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
// @Ok
|
||||
void __inline CPlayer::GetHookPosition(CVector* a2, unsigned char a3)
|
||||
{
|
||||
M3dUtils_GetHookPosition(reinterpret_cast<VECTOR*>(a2), this, a3);
|
||||
}
|
||||
|
||||
void validate_CPlayer(void)
|
||||
{
|
||||
VALIDATE_SIZE(CPlayer, 0xEFC);
|
||||
|
1
spidey.h
1
spidey.h
@ -120,6 +120,7 @@ class CPlayer : public CSuper
|
||||
EXPORT void CreateFists(unsigned char);
|
||||
EXPORT unsigned char CanITalkRightNow(void);
|
||||
EXPORT unsigned char SetFireWebbing(void);
|
||||
EXPORT void GetHookPosition(CVector*, unsigned char);
|
||||
};
|
||||
|
||||
EXPORT void Spidey_SetUserFunction(const char *, unsigned int);
|
||||
|
10
spool.cpp
10
spool.cpp
@ -47,3 +47,13 @@ unsigned int Spool_GetModel(unsigned int Checksum, int Region)
|
||||
{
|
||||
return 0x26052024;
|
||||
}
|
||||
|
||||
// @NotOk
|
||||
// understand this piece of shit
|
||||
unsigned int *Spool_SkipPackets(unsigned int *a1)
|
||||
{
|
||||
unsigned int *i; // r4
|
||||
for ( i = (unsigned int *)((char *)a1 + a1[1]); *i != -1; i = (unsigned int *)((char *)i + i[1] + 8) );
|
||||
|
||||
return i + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user