From 529104d9f220ec990c00cf946fce76a2a0234fee Mon Sep 17 00:00:00 2001 From: Calvin Balke Date: Sun, 1 Feb 2015 14:24:10 -0800 Subject: [PATCH] Added Projectile collision shockwaves Also fixed typemask for moving objects. --- .../TSExtension/include/DXConCmds.h | 1 + .../TSExtension/source/DXConCmds.cpp | 18 ++++++++++++----- .../TSExtension/source/dllmain.cpp | 1 + Patches/servertest.cs | 20 +++++++++++++------ 4 files changed, 29 insertions(+), 11 deletions(-) diff --git a/Mod Sources/TSExtension/TSExtension/include/DXConCmds.h b/Mod Sources/TSExtension/TSExtension/include/DXConCmds.h index b5567c5..75e7fd8 100644 --- a/Mod Sources/TSExtension/TSExtension/include/DXConCmds.h +++ b/Mod Sources/TSExtension/TSExtension/include/DXConCmds.h @@ -60,6 +60,7 @@ const char* conResolveGhost(Linker::SimObject *obj, S32 argc, const char* argv[] // Network Commands --------------------------------- const char *conGetGhostIndex(Linker::SimObject *obj, S32 argc, const char* argv[]); bool conForceUpdate(Linker::SimObject *obj, S32 argc, const char* argv[]); +bool conSetProjDist(Linker::SimObject *obj, S32 argc, const char* argv[]); // General Commands --------------------------------- const char* conSprintf(Linker::SimObject *obj, S32 argc, const char* argv[]); bool conTSExtensionUpdate(Linker::SimObject *obj, S32 argc, const char *argv[]); \ No newline at end of file diff --git a/Mod Sources/TSExtension/TSExtension/source/DXConCmds.cpp b/Mod Sources/TSExtension/TSExtension/source/DXConCmds.cpp index 5d5c2a4..63bc522 100644 --- a/Mod Sources/TSExtension/TSExtension/source/DXConCmds.cpp +++ b/Mod Sources/TSExtension/TSExtension/source/DXConCmds.cpp @@ -11,6 +11,7 @@ static float counter=0; static float mpsx=0.0; static float mpsy=0.0; static float mpsz=0.0; +static float projdist=0.0; static bool moveplayerstoo=1; static bool clientupdate=false; static float timecounter=0; @@ -100,10 +101,12 @@ void collide(unsigned int simgroup){ DX::MatrixF mat2=DX::MatrixF(sobj3.objtoworld); DX::Point3F test2; mat2.getColumn(3,&test2); - if (DX::pointdistance(test,test2)<40.0) { + if (DX::pointdistance(test,test2)