mirror of
https://github.com/Ragora/T2-CPP.git
synced 2026-02-15 12:43:38 +00:00
Initial commit.
This commit is contained in:
parent
9538049d44
commit
44e5f33ee7
99 changed files with 2363 additions and 0 deletions
58
Mod Sources/TSExtension/BaseMod/DXConCmds.cpp
Normal file
58
Mod Sources/TSExtension/BaseMod/DXConCmds.cpp
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
#include "LinkerAPI.h"
|
||||
#include "DXAPI.h"
|
||||
|
||||
const char *conGetAddress(SimObject *obj, S32 argc, const char *argv[])
|
||||
{
|
||||
// Hmm...
|
||||
char result[256];
|
||||
sprintf(result, "%x", obj);
|
||||
return result;
|
||||
}
|
||||
|
||||
const char *conPlayerSetZ(SimObject *obj, S32 argc, const char *argv[])
|
||||
{
|
||||
DX::Player test = DX::GetPlayerPointer(obj);
|
||||
test.position_y = 100;
|
||||
test.position_z = 300;
|
||||
test.position_x = 500;
|
||||
|
||||
char result[256];
|
||||
sprintf(result, "LOL");
|
||||
return result;
|
||||
}
|
||||
|
||||
bool conPlayerGetJumpingState(SimObject *obj, S32 argc, const char* argv[])
|
||||
{
|
||||
DX::Player operand = DX::GetPlayerPointer(obj);
|
||||
|
||||
return operand.is_jumping;
|
||||
}
|
||||
|
||||
bool conPlayerGetJettingState(SimObject *obj, S32 argc, const char* argv[])
|
||||
{
|
||||
DX::Player operand = DX::GetPlayerPointer(obj);
|
||||
|
||||
return operand.is_jetting;
|
||||
}
|
||||
|
||||
bool conProjectileExplode(SimObject *obj, S32 argc, const char* argv[])
|
||||
{
|
||||
Point3F position;
|
||||
position.x = 0;
|
||||
position.y = 0;
|
||||
position.z = 0;
|
||||
|
||||
Point3F normal;
|
||||
normal.x = 0;
|
||||
normal.y = 0;
|
||||
normal.z = 0;
|
||||
|
||||
unsigned int collideType = atoi(argv[4]);
|
||||
DX::Projectile_explode((DX::Projectile*)obj, position, normal, collideType);
|
||||
|
||||
return true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue