T2-CPP/Mod Sources/TSExtension/BaseMod/BaseMod.cpp

22 lines
727 B
C++
Raw Normal View History

2014-08-05 04:46:46 +00:00
// BaseMod.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "BaseMod.h"
#include "DXAPI.h"
#include "LinkerAPI.h"
#include "DXConCmds.h"
extern "C"
{
BASEMOD_API void ModInitialize(void)
{
Con::addMethodB("Player", "isjumping", &conPlayerGetJumpingState,"Returns whether or not the player is jumping", 2, 2);
Con::addMethodB("Player", "isjetting", &conPlayerGetJettingState,"Returns whether or not the player is jetting", 2, 2);
Con::addMethodB("GrenadeProjectile", "explode", &conProjectileExplode,"Explodes the given projectile", 5, 5);
Con::addMethodB("Projectile", "explode", &conProjectileExplode,"Explodes the given projectile", 5, 5);
}
}