CCop::Victorious

This commit is contained in:
krystalgamer 2024-05-26 16:06:06 +02:00
parent 7a6a378e6a
commit a2252847db
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#include "cop.h"
#include "validate.h"
#include "ps2lowsfx.h"
// @NotOk
// globals
@ -46,6 +47,12 @@ void Cop_CreateCop(const unsigned int *stack, unsigned int *result)
*result = reinterpret_cast<unsigned int>(new CCop(v2, v3));
}
// @Ok
void CCop::Victorious(void)
{
SFX_PlayPos(0x8024, &this->mPos, 0);
}
void validate_CCop(void){
VALIDATE_SIZE(CCop, 0x394);
VALIDATE(CCop, field_340, 0x340);

6
cop.h
View File

@ -1,5 +1,8 @@
#pragma once
#ifndef COP_H
#define COP_H
#include "export.h"
#include "baddy.h"
@ -8,6 +11,8 @@ class CCop : public CBaddy {
public:
EXPORT CCop(int*, int);
EXPORT void Victorious(void);
unsigned char copStartPad[0x1C];
int field_340;
@ -26,3 +31,4 @@ public:
void validate_CCop(void);
EXPORT void Cop_CreateCop(const unsigned int *stack, unsigned int *result);
#endif