Added new Move Code

Added Move Code, TS callback, and commands to interface with Move code.
This commit is contained in:
Calvin Balke 2015-07-06 10:01:22 -07:00
parent 2ee8c36a90
commit 81a28fe3ba
7 changed files with 212 additions and 3 deletions

View file

@ -18,6 +18,7 @@
#include <DXAPI/Point3F.h>
#include <DXAPI/GameBase.h>
#include <DXAPI/Move.h>
#include <DXAPI/NetObject.h>
#include <DXAPI/Player.h>
#include <DXAPI/Projectile.h>
@ -31,7 +32,6 @@
#include <DXAPI/NetConnection.h>
#include <DXAPI/TCPObject.h>
#include <DXAPI/ScriptObject.h>
namespace DX
{
//! A typedef referring to some type of unresolved object in the game.

View file

@ -0,0 +1,38 @@
#pragma once
#include <DXAPI/Point3F.h>
#include <DXAPI/GameBase.h>
#include <LinkerAPI.h>
namespace DX
{
struct Move {
int px;
int py;
int pz;
int pyaw;
int ppitch;
int proll;
float x;
float y;
float z;
float yaw;
float pitch;
float roll;
int unused;
int count;
bool freelook;
bool triggers[6];
};
struct AIMove {
unsigned int id;
Move move;
bool used;
};
float clampFloat(float in);
float clampMove(float in);
void generateNullMove(Move * ret);
};