CCop::CreateCombatImpactEffect

This commit is contained in:
krystalgamer 2024-07-25 18:05:44 +02:00
parent 1c6322615c
commit 7dfd5d797b
5 changed files with 12 additions and 1 deletions

View File

@ -1028,6 +1028,7 @@ void validate_CBaddy(void){
VALIDATE_VTABLE(CBaddy, AI, 2);
VALIDATE_VTABLE(CBaddy, Hit, 3);
VALIDATE_VTABLE(CBaddy, PlayerIsVisible, 5);
VALIDATE_VTABLE(CBaddy, CreateCombatImpactEffect, 6);
VALIDATE_VTABLE(CBaddy, TugImpulse, 7);
VALIDATE_VTABLE(CBaddy, Victorious, 8);
VALIDATE_VTABLE(CBaddy, GetClosest, 13);

View File

@ -51,7 +51,7 @@ public:
EXPORT void GetWaypointNearTarget(CVector*, i32, i32, CVector*);
EXPORT virtual int PlayerIsVisible(int);
EXPORT virtual void CreateCombatImpactEffect(CVector*, int);
EXPORT virtual void CreateCombatImpactEffect(CVector*, i32);
EXPORT virtual u8 TugImpulse(CVector*, CVector*, CVector*);
EXPORT virtual void Victorious(void);
EXPORT virtual void UnknownCBaddyFunctionThree(int, int);

2
bit.h
View File

@ -234,6 +234,8 @@ class CCombatImpactRing : public CFlatBit
{
public:
EXPORT CCombatImpactRing(CVector*, u8, u8, u8, i32, i32, i32);
u8 padBottom[0xC];
};
EXPORT int Bit_MakeSpriteRing(CVector*, int, int, int, int, int, int, int);

View File

@ -15,6 +15,13 @@ extern CBaddy *BaddyList;
EXPORT CCop* gCopList;
// @Ok
void CCop::CreateCombatImpactEffect(CVector *a2, i32)
{
new CCombatImpactRing(a2, 0x6Cu, 108, 18, 384, 1792, 144);
new CCombatImpactRing(a2, 0x90u, 144, 72, 192, 896, 72);
}
// @Ok
void CCop::DieAfterFlyingAcrossRoom(void)
{

1
cop.h
View File

@ -30,6 +30,7 @@ public:
EXPORT virtual u8 TugImpulse(CVector*, CVector*, CVector*);
EXPORT virtual void Victorious(void);
EXPORT virtual void CreateCombatImpactEffect(CVector*, i32);
i32 field_324;
u8 padAfter324[0x340-0x324-4];