Spool_SkipPackets

This commit is contained in:
krystalgamer 2024-05-29 19:39:03 +02:00
parent 7979b8128d
commit 2062010a27
5 changed files with 21 additions and 1 deletions

View File

@ -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)
{}

View File

@ -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);

View File

@ -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);

View File

@ -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;
}

View File

@ -1,11 +1,13 @@
#pragma once
#ifndef SPOOL_H
#define SPOOL_H
#pragma once
#include "export.h"
EXPORT int Spool_FindRegion(const char *);
EXPORT unsigned int Spool_GetModel(unsigned int, int);
EXPORT unsigned int *Spool_SkipPackets(unsigned int *);
#endif