mirror of https://git.rip/DMCA_FUCKER/re3.git
parent
b705be0e87
commit
0a36d49d2c
Binary file not shown.
Binary file not shown.
@ -1,5 +0,0 @@
|
||||
#include "common.h"
|
||||
#include "RecordDataForChase.h"
|
||||
|
||||
|
||||
UInt8 &CRecordDataForChase::Status = *(UInt8*)0x95CDCE;
|
@ -1,7 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
class CRecordDataForChase
|
||||
{
|
||||
public:
|
||||
static UInt8 &Status;
|
||||
};
|
@ -1,4 +0,0 @@
|
||||
#include "common.h"
|
||||
#include "RecordDataForGame.h"
|
||||
|
||||
UInt16 &CRecordDataForGame::RecordingState = *(UInt16 *)0x95CC24;
|
@ -0,0 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "Record.h"
|
||||
|
||||
UInt16 &CRecordDataForGame::RecordingState = *(UInt16*)0x95CC24;
|
||||
|
||||
UInt8 &CRecordDataForChase::Status = *(UInt8*)0x95CDCE;
|
@ -1,78 +0,0 @@
|
||||
#include "common.h"
|
||||
#include "Vector.h"
|
||||
|
||||
void CVector::Normalise()
|
||||
{
|
||||
float sq = MagnitudeSqr();
|
||||
if(sq > 0.0f){
|
||||
float invsqrt = 1.0f/sqrt(sq); // CMaths::RecipSqrt
|
||||
x *= invsqrt;
|
||||
y *= invsqrt;
|
||||
z *= invsqrt;
|
||||
}else
|
||||
x = 1.0f;
|
||||
}
|
||||
|
||||
// operator +
|
||||
CVector operator + (CVector const &refLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(refLeft.x + refRight.x, refLeft.y + refRight.y, refLeft.z + refRight.z);
|
||||
}
|
||||
|
||||
CVector operator + (CVector const &refLeft, float fRight)
|
||||
{
|
||||
return CVector(refLeft.x + fRight, refLeft.y + fRight, refLeft.z + fRight);
|
||||
}
|
||||
|
||||
CVector operator + (float fLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(fLeft + refRight.x, fLeft + refRight.y, fLeft + refRight.z);
|
||||
}
|
||||
|
||||
// operator -
|
||||
CVector operator - (CVector const &refLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(refLeft.x - refRight.x, refLeft.y - refRight.y, refLeft.z - refRight.z);
|
||||
}
|
||||
|
||||
CVector operator - (CVector const &refLeft, float fRight)
|
||||
{
|
||||
return CVector(refLeft.x - fRight, refLeft.y - fRight, refLeft.z - fRight);
|
||||
}
|
||||
|
||||
CVector operator - (float fLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(fLeft - refRight.x, fLeft - refRight.y, fLeft - refRight.z);
|
||||
}
|
||||
|
||||
// operator *
|
||||
CVector operator * (CVector const &refLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(refLeft.x * refRight.x, refLeft.y * refRight.y, refLeft.z * refRight.z);
|
||||
}
|
||||
|
||||
CVector operator * (CVector const &refLeft, float fRight)
|
||||
{
|
||||
return CVector(refLeft.x * fRight, refLeft.y * fRight, refLeft.z * fRight);
|
||||
}
|
||||
|
||||
CVector operator * (float fLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(fLeft * refRight.x, fLeft * refRight.y, fLeft * refRight.z);
|
||||
}
|
||||
|
||||
// operator /
|
||||
CVector operator / (CVector const &refLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(refLeft.x / refRight.x, refLeft.y / refRight.y, refLeft.z / refRight.z);
|
||||
}
|
||||
|
||||
CVector operator / (CVector const &refLeft, float fRight)
|
||||
{
|
||||
return CVector(refLeft.x / fRight, refLeft.y / fRight, refLeft.z / fRight);
|
||||
}
|
||||
|
||||
CVector operator / (float fLeft, CVector const &refRight)
|
||||
{
|
||||
return CVector(fLeft / refRight.x, fLeft / refRight.y, fLeft / refRight.z);
|
||||
}
|
Loading…
Reference in new issue