CRhino::ShakePad

This commit is contained in:
krystalgamer 2024-07-28 22:13:22 +02:00
parent 87c02af1fd
commit 46cfa5b59e
4 changed files with 22 additions and 7 deletions

View File

@ -209,7 +209,7 @@ i32 INLINE CMysterio::PlayAndAttachXAPlease(
return 0;
}
u8 gActuatorRelated;
EXPORT u8 gActuatorRelated;
// @NotOk
// globals

View File

@ -26,7 +26,9 @@ u16 Pad_GetActuatorTime(u8, u8)
// @SMALLTODO
void Pad_ActuatorOn(u8, u16, u8, u8)
{}
{
printf("void Pad_ActuatorOn(u8, u16, u8, u8)");
}
void validate_SControl(void)
{

View File

@ -2,13 +2,25 @@
#include "validate.h"
#include "utils.h"
#include "panel.h"
#include "ps2pad.h"
static __int16 * const word_682B64 = (__int16*)0x682B64;
EXPORT u32 gRhinoSound;
extern i32 DifficultyLevel;
extern u8 gActuatorRelated;
void CRhino::ShakePad(void)
{
if ( gActuatorRelated )
{
if ( Pad_GetActuatorTime(0, 0) <= 2u )
Pad_ActuatorOn(0, 6u, 0, 1u);
if ( Pad_GetActuatorTime(0, 1u) <= 2u )
Pad_ActuatorOn(0, 0xAu, 1, 0xC8u);
}
}
// @NotOk
// validate when get shocked
i32 CRhino::GetShockDamage(void)

View File

@ -11,9 +11,10 @@ public:
EXPORT CRhino(int*, int);
EXPORT CRhino(void);
void PlaySingleAnim(u32, i32, i32);
u32 GetNextFootstepSFX(void);
i32 GetShockDamage(void);
EXPORT void PlaySingleAnim(u32, i32, i32);
EXPORT u32 GetNextFootstepSFX(void);
EXPORT i32 GetShockDamage(void);
EXPORT void ShakePad(void);
unsigned char padTop[0x344 - 0x324];
i32 field_344;