mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 13:29:48 +00:00
CRhino::ShakePad
This commit is contained in:
parent
87c02af1fd
commit
46cfa5b59e
@ -209,7 +209,7 @@ i32 INLINE CMysterio::PlayAndAttachXAPlease(
|
||||
return 0;
|
||||
}
|
||||
|
||||
u8 gActuatorRelated;
|
||||
EXPORT u8 gActuatorRelated;
|
||||
|
||||
// @NotOk
|
||||
// globals
|
||||
|
@ -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)
|
||||
{
|
||||
|
16
rhino.cpp
16
rhino.cpp
@ -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)
|
||||
|
7
rhino.h
7
rhino.h
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user