T2-CPP/Mod Sources/TSExtension/BaseMod/DXConCmds.h
2014-08-05 00:46:46 -04:00

29 lines
1.1 KiB
C

/**
* @brief The DXAPI is an API that allows you to manipulate various game objects
* in Tribes 2 from raw C++ code. It dynamically resolves the addresses of member
* variables as you can't really trust the compiler to produce binary compatible classes,
* especially with all the inheritance involved in the original Tribes 2 codebase.
*
* This code wouldn't be possible without Linker's original gift on the-construct.net forums,
* whose files are appropriately labeled in this codebase.
*
* @copyright (c) 2014 Robert MacGregor
*/
#pragma once
#include "stdafx.h"
#include "LinkerAPI.h"
// Returns the address of an object in memory
const char* conGetAddress(SimObject *obj, S32 argc, const char *argv[]);
// Player Commands -----------------------------------
bool conPlayerGetJumpingState(SimObject *obj, S32 argc, const char* argv[]);
bool conPlayerGetJettingState(SimObject *obj, S32 argc, const char* argv[]);
// Projectile explode
bool conProjectileExplode(SimObject *obj, S32 argc, const char* argv[]);
// Tests Position Z
const char *conPlayerSetZ(SimObject *obj, S32 argc, const char *argv[]);