mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-03-27 16:19:12 +00:00
Added a new projectile collision detection feature. It requires projectiles to be added to CollideGroup. Also added a new ClientCommandGroup that clients should be added to after they have finished ghosting. Currently setMPS effects everything in MoveGroup. setMPS now uses X, Y, and Z as arguments instead of X only.
43 lines
No EOL
756 B
C++
43 lines
No EOL
756 B
C++
#pragma once
|
|
|
|
#include <DXAPI/MatMath.h>
|
|
#include <DXAPI/NetObject.h>
|
|
|
|
namespace DX
|
|
{
|
|
|
|
|
|
|
|
class SceneObject : public NetObject
|
|
{
|
|
public:
|
|
SceneObject(unsigned int obj);
|
|
|
|
Point3F position;
|
|
Point3F scale;
|
|
void * container;
|
|
float * worldtoobj;
|
|
float * objtoworld;
|
|
Point3F objboxmin;
|
|
Point3F objboxmax;
|
|
Point3F worldboxmin;
|
|
Point3F worldboxmax;
|
|
Point3F worldspherecenter;
|
|
float &worldsphereradius;
|
|
float *renderobjtoworld;
|
|
float *renderworldtoobj;
|
|
void setTransform(float *matrixinput) {
|
|
unsigned int bpv=this->base_pointer_value;
|
|
unsigned int minp = (unsigned int) matrixinput;
|
|
|
|
__asm {
|
|
push minp
|
|
mov ecx,bpv
|
|
mov eax,bpv
|
|
mov eax,[eax]
|
|
add eax,0x74
|
|
call [eax]
|
|
}
|
|
}
|
|
};
|
|
} // End NameSpace DX
|