mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 13:29:48 +00:00
CChopper::AdjustSineWaveAmplitude
This commit is contained in:
parent
8b2c7d375b
commit
25e06b63dc
14
chopper.cpp
14
chopper.cpp
@ -1,5 +1,6 @@
|
||||
#include "chopper.h"
|
||||
#include "validate.h"
|
||||
#include "utils.h"
|
||||
|
||||
// @NotOk
|
||||
// verify later
|
||||
@ -30,6 +31,16 @@ void __inline CSniperTarget::BulletResult(bool result)
|
||||
this->field_128 = true;
|
||||
}
|
||||
|
||||
// @Ok
|
||||
void __inline CChopper::AdjustSineWaveAmplitude(int a2, int a3)
|
||||
{
|
||||
int tmp = this->field_354;
|
||||
if (tmp != a2)
|
||||
{
|
||||
this->field_354 = Utils_LinearFilter(tmp, a2, a3);
|
||||
}
|
||||
}
|
||||
|
||||
void validate_CChopper(void){
|
||||
VALIDATE_SIZE(CChopper, 0x3D8);
|
||||
|
||||
@ -39,6 +50,9 @@ void validate_CChopper(void){
|
||||
VALIDATE(CChopper, field_33C, 0x33C);
|
||||
VALIDATE(CChopper, field_340, 0x340);
|
||||
VALIDATE(CChopper, field_344, 0x344);
|
||||
|
||||
VALIDATE(CChopper, field_354, 0x354);
|
||||
|
||||
VALIDATE(CChopper, field_358, 0x358);
|
||||
VALIDATE(CChopper, field_360, 0x360);
|
||||
VALIDATE(CChopper, field_364, 0x364);
|
||||
|
@ -11,6 +11,7 @@ class CChopper : public CBaddy {
|
||||
public:
|
||||
|
||||
EXPORT void SetHeightMode(int);
|
||||
EXPORT void AdjustSineWaveAmplitude(int, int);
|
||||
|
||||
unsigned char padChopperStart[0xC];
|
||||
int field_330;
|
||||
@ -19,8 +20,9 @@ public:
|
||||
int field_33C;
|
||||
int field_340;
|
||||
int field_344;
|
||||
unsigned char padAfter344[0x14-4];
|
||||
unsigned char padAfter344[0x354-0x344-4];
|
||||
|
||||
int field_354;
|
||||
int field_358;
|
||||
unsigned char padAfter358[0x360-0x358-4];
|
||||
|
||||
|
@ -250,3 +250,9 @@ unsigned int Utils_GenerateCRC(const char*)
|
||||
{
|
||||
return 0x29052024;
|
||||
}
|
||||
|
||||
// @TODO
|
||||
int Utils_LinearFilter(int, int, int)
|
||||
{
|
||||
return 0x31052024;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user