mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-04-21 02:15:04 +00:00
Initial commit.
This commit is contained in:
parent
9538049d44
commit
44e5f33ee7
99 changed files with 2363 additions and 0 deletions
29
Mod Sources/TSExtension/BaseMod/DXConCmds.h
Normal file
29
Mod Sources/TSExtension/BaseMod/DXConCmds.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/**
|
||||
* @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[]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue