mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-02-21 07:33:36 +00:00
Added new Move Code
Added Move Code, TS callback, and commands to interface with Move code.
This commit is contained in:
parent
2ee8c36a90
commit
81a28fe3ba
7 changed files with 212 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
38
CommonAPI/Common/include/DXAPI/Move.h
Normal file
38
CommonAPI/Common/include/DXAPI/Move.h
Normal 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);
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue