Committed initial import of the Earth's Special Forces module

This commit is contained in:
David Anderson 2005-07-09 21:51:35 +00:00
parent 39eba4134e
commit e0dbc031cc
12 changed files with 7026 additions and 0 deletions

File diff suppressed because it is too large Load Diff

2211
dlls/esforces/esfmod/amxxmodule.h Executable file

File diff suppressed because it is too large Load Diff

699
dlls/esforces/esfmod/esf_anim.cpp Executable file
View File

@ -0,0 +1,699 @@
#include <extdll.h>
#include <meta_api.h>
#include <eiface.h>
#include <edict.h>
#include "esforces.h"
//use direction enums
// 0 = any
static cell AMX_NATIVE_CALL esf_is_swooping(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
int dir = params[2];
if (!dir)
{
if (anim >= 36 && anim <= 41)
return 1;
} else if (dir == Direction_Up) {
if (anim == 36)
return 1;
} else if (dir == Direction_Down) {
if (anim == 37)
return 1;
} else if (dir == Direction_Left) {
if (anim == 38)
return 1;
} else if (dir == Direction_Right) {
if (anim == 39)
return 1;
} else if (dir == Direction_Forward) {
if (anim == 40)
return 1;
} else if (dir == Direction_Backward) {
if (anim == 41)
return 1;
}
return 0;
}
static cell AMX_NATIVE_CALL esf_is_prepunch(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim >= 121 || anim <= 124)
return 1;
if (anim == 209)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_stance(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 126)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_stunned(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 127)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_grappling(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 128)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_crushed(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 208)
return 1;
return 0;
}
//player, combo, [attacked = 0]
static cell AMX_NATIVE_CALL esf_in_combo(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (params[2] == 1)
{
if (params[3])
{
if (pEdict->v.sequence == 213)
return 1;
} else {
if (pEdict->v.sequence == 212)
return 1;
}
} else if (params[2] == 2) {
if (params[3])
{
if (pEdict->v.sequence == 215)
return 1;
} else {
if (pEdict->v.sequence == 214)
return 1;
}
}
return 0;
}
static cell AMX_NATIVE_CALL esf_is_advmeleeing(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim > 128 && anim < 153)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_advmeleed(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim > 152 && anim < 201)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_in_advmelee(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim > 120 && anim < 216)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_blocking(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim <= 42 && anim >= 46)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_kicking(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim <= 47 && anim >= 51)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_kicked(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
//only evens
if (anim >= 52 && anim <= 62 && (anim % 2 == 0))
return 1;
return 0;
}
//1 = kicked
//2 = tumbling
//3 = laying
//4 = thrown to ground
static cell AMX_NATIVE_CALL esf_is_recovered(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
int mode = params[2];
if (mode == 1)
{
//only odds
if (anim >= 53 && anim <= 63 && (anim % 2 == 1))
return 1;
} else if (mode == 2) {
if (anim == 65 || anim == 67 || anim == 69 || anim == 71)
return 1;
return 0;
} else if (mode == 3) {
if (anim == 73 || anim == 75)
return 1;
} else if (mode == 4) {
if (anim >= 105 && anim <= 109)
return 1;
}
return 0;
}
static cell AMX_NATIVE_CALL esf_is_flying(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim >= 26 && anim <= 34)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_tumbling(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim == 64 || anim == 66 || anim == 68 || anim == 70)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_lying(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim == 72 || anim == 74)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_has_died(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim >= 76 && anim <= 84)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_has_dragonball(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 92)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_threw_dragonball(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim == 93 || anim == 94)
return 1;
return 0;
}
//1 = kiblast
//2 = generic beam
static cell AMX_NATIVE_CALL esf_is_shooting(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (params[2] == 1)
{
if (anim == 95 || anim == 96)
return 1;
} else if (params[2] == 2) {
if (anim == 98 || anim == 99)
return 1;
}
return 0;
}
static cell AMX_NATIVE_CALL esf_transforming(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim == 101 || anim == 102)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_transform_done(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 103)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_groundthrown(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 104)
return 1;
return 0;
}
//for get_shotstate and get_attack
//1 = kamehameha
//2 = spiritbomb
//3 = galletgun
//4 = finalflash
//5 = renzoku
//6 = kametorpedo
//7 = generic beam
//8 = throw
static cell AMX_NATIVE_CALL esf_get_shotstate(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
int cls = pEdict->v.playerclass;
int attack = params[2];
if (attack == Attack_Kamehameha)
{
if ( (cls == Character_Goku || cls == Character_Gohan))
{
if (anim == 110)
return ESF_CHARGING;
if (anim == 111)
return ESF_CONTROLLING;
}
if (cls == Character_Cell)
{
if (anim == 112)
return ESF_CHARGING;
if (anim == 113)
return ESF_CONTROLLING;
}
} else if (attack == Attack_SpiritBomb) {
if (anim == 112 || anim == 114)
return ESF_CHARGING;
if (anim == 113 || anim == 115)
return ESF_SHOT;
} else if (attack == Attack_GalletGun) {
if (cls == Character_Vegeta)
{
if (anim == 111)
return ESF_CHARGING;
if (anim == 112)
return ESF_CONTROLLING;
}
if (cls == Character_Cell)
{
if (anim == 110)
return ESF_CHARGING;
if (anim == 111)
return ESF_CONTROLLING;
}
} else if (attack == Attack_FinalFlash) {
if (cls == Character_Krillin)
{
if (anim == 119 || anim == 120)
return ESF_SHOT;
}
if (cls == Character_Cell)
{
if (anim == 114 || anim == 115)
return ESF_SHOT;
}
if (anim == 113)
return ESF_CHARGING;
if (anim == 114)
return ESF_CONTROLLING;
} else if (attack == Attack_Renzoku) {
if (anim == 115)
return ESF_CHARGING;
if (anim >= 116 && anim <= 118)
return ESF_SHOOTING;
} else if (attack == Attack_Kametorpedo) {
if (anim == 116)
return ESF_CHARGING;
if (anim == 118)
return ESF_SHOT;
} else if (attack == Attack_GenericBeam) {
if (anim == 97)
return ESF_CHARGING;
} else if (attack == Attack_Throw) {
if (anim == 201 || anim == 203 || anim == 204)
return ESF_CHARGING;
}
return 0;
}
//experimental since animation states overlap not all weapons can be returned
static cell AMX_NATIVE_CALL esf_get_attack(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
int cls = pEdict->v.playerclass;
if ( (cls == Character_Goku || cls == Character_Gohan) )
{
if (anim == 110 || anim == 111)
return Attack_Kamehameha;
} else if (cls == Character_Cell) {
if (anim == 112 || anim == 113)
return Attack_Kamehameha;
if (anim == 110 || anim == 111)
return Attack_GalletGun;
if (anim == 114 || anim == 115)
return Attack_FinalFlash;
} else if (cls == Character_Vegeta) {
if (anim == 111 || anim == 112)
return Attack_GalletGun;
} else if (cls == Character_Krillin) {
if (anim == 119 || anim == 120)
return Attack_FinalFlash;
}
if (anim == 97)
return Attack_GenericBeam;
if (anim == 201 || anim == 203 || anim == 204)
return Attack_Throw;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_swung(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim == 202 || anim == 206)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_grabbedwall(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim == 13 ||
anim == 15 ||
anim == 17 ||
anim == 19)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_walljumped(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim == 14 ||
anim == 16 ||
anim == 18 ||
anim == 20)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_in_water(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim >= 21 && anim <= 23)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_powering(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim >= 24 && anim <= 27)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_idle(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int anim = pEdict->v.sequence;
if (anim <=2)
return 1;
return 0;
}
static cell AMX_NATIVE_CALL esf_is_beamjumping(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (pEdict->v.sequence == 100)
return 1;
return 0;
}
AMX_NATIVE_INFO g_AnimationNatives[] = {
{"esf_is_swooping", esf_is_swooping},
{"esf_is_prepunch", esf_is_prepunch},
{"esf_is_stance", esf_is_stance},
{"esf_is_stunned", esf_is_stunned},
{"esf_is_grappling", esf_is_grappling},
{"esf_is_crushed", esf_is_crushed},
{"esf_in_combo", esf_in_combo},
{"esf_is_advmeleeing", esf_is_advmeleeing},
{"esf_is_advmeleed", esf_is_advmeleed},
{"esf_in_advmelee", esf_in_advmelee},
{"esf_is_blocking", esf_is_blocking},
{"esf_is_kicking", esf_is_kicking},
{"esf_is_kicked", esf_is_kicked},
{"esf_is_recovered", esf_is_recovered},
{"esf_is_flying", esf_is_flying},
{"esf_is_tumbling", esf_is_tumbling},
{"esf_is_lying", esf_is_lying},
{"esf_has_died", esf_has_died},
{"esf_has_dragonball", esf_has_dragonball},
{"esf_threw_dragonball", esf_threw_dragonball},
{"esf_is_shooting", esf_is_shooting},
{"esf_transforming", esf_transforming},
{"esf_transform_done", esf_transform_done},
{"esf_groundthrown", esf_groundthrown},
{"esf_get_shotstate", esf_get_shotstate},
{"esf_get_attack", esf_get_attack},
{"esf_is_swung", esf_is_swung},
{"esf_grabbedwall", esf_grabbedwall},
{"esf_walljumped", esf_walljumped},
{"esf_in_water", esf_in_water},
{"esf_is_powering", esf_is_powering},
{"esf_is_idle", esf_is_idle},
{"esf_is_beamjumping", esf_is_beamjumping},
{NULL, NULL},
};

153
dlls/esforces/esfmod/esf_base.cpp Executable file
View File

@ -0,0 +1,153 @@
#include <extdll.h>
#include <meta_api.h>
#include <eiface.h>
#include <edict.h>
#include "esforces.h"
int g_MaxHealthMsg = 0;
int g_ChargeMsg = 0;
static cell AMX_NATIVE_CALL esf_get_class(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
return pEdict->v.playerclass;
}
static cell AMX_NATIVE_CALL esf_set_class(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
pEdict->v.playerclass = params[2];
return 1;
}
static cell AMX_NATIVE_CALL esf_get_ki(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
return amx_ftoc((REAL)pEdict->v.fuser4);
}
static cell AMX_NATIVE_CALL esf_set_ki(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
REAL ki = amx_ctof(params[2]);
if (ki < 0.0f || ki > 1000.0f)
{
MF_LogError(amx, AMX_ERR_NATIVE, "You cannot set ki above 1000.0!");
return 0;
}
pEdict->v.fuser4 = (float)ki;
return 1;
}
static cell AMX_NATIVE_CALL esf_get_swoopspeed(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
return amx_ftoc((REAL)pEdict->v.fuser1);
}
static cell AMX_NATIVE_CALL esf_set_swoopspeed(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
REAL speed = amx_ctof(params[2]);
pEdict->v.fuser1 = (float)speed;
return 1;
}
static cell AMX_NATIVE_CALL esf_set_powerlevel(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int health = params[2];
pEdict->v.health = (float)health;
if (!g_MaxHealthMsg)
{
g_MaxHealthMsg = GET_USER_MSG_ID(PLID, "MaxHealth", NULL);
if (!g_MaxHealthMsg)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Could not find MaxHealth message!");
return 0;
}
}
float vecOrigin[3] = {0.0f,0.0f,0.0f};
MESSAGE_BEGIN(MSG_ONE, g_MaxHealthMsg, vecOrigin, pEdict);
WRITE_BYTE( health );
MESSAGE_END();
return 1;
}
static cell AMX_NATIVE_CALL esf_set_chargebar(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
if (!g_ChargeMsg)
{
g_ChargeMsg = GET_USER_MSG_ID(PLID, "Charge", NULL);
if (!g_ChargeMsg)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Could not find Charge message!");
return 0;
}
}
int value = params[2];
float vecOrigin[3] = {0.0f,0.0f,0.0f};
MESSAGE_BEGIN(MSG_ONE, g_ChargeMsg, vecOrigin, pEdict);
WRITE_BYTE(value);
MESSAGE_END();
return 1;
}
AMX_NATIVE_INFO g_BaseNatives[] = {
{"esf_get_class", esf_get_class},
{"esf_set_class", esf_set_class},
{"esf_get_ki", esf_get_ki},
{"esf_set_ki", esf_set_ki},
{"esf_get_swoopspeed", esf_get_swoopspeed},
{"esf_set_swoopspeed", esf_set_swoopspeed},
{"esf_set_powerlevel", esf_set_powerlevel},
{"esf_set_chargebar", esf_set_chargebar},
{NULL, NULL},
};

View File

@ -0,0 +1,97 @@
#include <extdll.h>
#include <meta_api.h>
#include <eiface.h>
#include <edict.h>
#include "esforces.h"
int g_PowerupMsg = 0;
int g_StopPowerupMsg = 0;
int g_ExplosionMsg = 0;
static cell AMX_NATIVE_CALL esf_start_powerup(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
if (!g_PowerupMsg)
{
g_PowerupMsg = GET_USER_MSG_ID(PLID, "Powerup", NULL);
if (!g_PowerupMsg)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Could not find Powerup message!");
return 0;
}
}
MESSAGE_BEGIN(MSG_BROADCAST, g_PowerupMsg);
WRITE_BYTE(index);
WRITE_BYTE(params[2]);
WRITE_BYTE(params[3]);
WRITE_BYTE(params[4]);
MESSAGE_END();
return 1;
}
static cell AMX_NATIVE_CALL esf_stop_powerup(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
if (!g_StopPowerupMsg)
{
g_StopPowerupMsg = GET_USER_MSG_ID(PLID, "StopPowerup", NULL);
if (!g_StopPowerupMsg)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Could not find StopPowerup message!");
return 0;
}
}
MESSAGE_BEGIN(MSG_ONE, g_StopPowerupMsg);
WRITE_BYTE(index);
MESSAGE_END();
return 1;
}
static cell AMX_NATIVE_CALL esf_explosion(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
if (params[3] < 0 || params[3] >= Explosions_Total)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid explosion id %d", params[3]);
return 0;
}
if (!g_ExplosionMsg)
{
g_ExplosionMsg = GET_USER_MSG_ID(PLID, "Explosion", NULL);
if (!g_ExplosionMsg)
{
MF_LogError(amx, AMX_ERR_NATIVE, "Could not find Explosion message!");
return 0;
}
}
cell *cp = MF_GetAmxAddr(amx, params[1]);
MESSAGE_BEGIN(MSG_BROADCAST, g_ExplosionMsg);
WRITE_COORD( cp[0] );
WRITE_COORD( cp[1] );
WRITE_COORD( cp[2] );
WRITE_LONG( params[2] );
WRITE_BYTE( params[3] );
MESSAGE_END();
return 1;
}
AMX_NATIVE_INFO g_EffectsNatives[] = {
{"esf_start_powerup", esf_start_powerup},
{"esf_stop_powerup", esf_stop_powerup},
{"esf_explosion", esf_explosion},
{NULL, NULL},
};

View File

@ -0,0 +1,65 @@
#include <extdll.h>
#include <meta_api.h>
#include <eiface.h>
#include <edict.h>
#include "esforces.h"
#include "esf_pdata.h"
#define GET_PDATA_D(v,o) ( *((int *)v + (o)) )
#define SET_PDATA_D(v,o,s) ( *((int *)v + (o)) = (s) )
static cell AMX_NATIVE_CALL esf_get_powerlevel(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
return GET_PDATA_D(pEdict->pvPrivateData, ESF_POWERLEVEL1);
}
static cell AMX_NATIVE_CALL esf_set_powerlevel(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
SET_PDATA_D(pEdict->pvPrivateData, ESF_POWERLEVEL1, params[2]);
SET_PDATA_D(pEdict->pvPrivateData, ESF_POWERLEVEL2, params[2]);
return 1;
}
static cell AMX_NATIVE_CALL esf_get_speed(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
return GET_PDATA_D(pEdict->pvPrivateData, ESF_SPEED1);
}
static cell AMX_NATIVE_CALL esf_set_speed(AMX *amx, cell *params)
{
int index = params[1];
CHECKPLAYER(index);
edict_t *pEdict = INDEXENT(index);
int speed = params[2];
SET_PDATA_D(pEdict->pvPrivateData, ESF_SPEED1, speed);
SET_PDATA_D(pEdict->pvPrivateData, ESF_SPEED2, speed);
return 1;
}
AMX_NATIVE_INFO g_PdataNatives[] = {
{"esf_get_powerlevel", esf_get_powerlevel},
{"esf_set_powerlevel", esf_set_powerlevel},
{"esf_get_speed", esf_get_speed},
{"esf_get_speed", esf_get_speed},
{NULL, NULL},
};

View File

@ -0,0 +1,18 @@
#ifndef _INCLUDE_ESF_PDATA_H
#define _INCLUDE_ESF_PDATA_H
//dword aligned offsets!
#ifdef __linux__
#define EXOFF_D 5
#else
#define EXOFF_D 0
#endif
#define ESF_POWERLEVEL1 460 + EXOFF_D
#define ESF_POWERLEVEL2 461 + EXOFF_D
#define ESF_SPEED1 459 + EXOFF_D
#define ESF_SPEED2 462 + EXOFF_D
#endif //_INCLUDE_ESF_PDATA_H

21
dlls/esforces/esfmod/esfmod.sln Executable file
View File

@ -0,0 +1,21 @@
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "esfmod", "esfmod.vcproj", "{22F17878-9B53-41F7-B01D-668A29A9C92D}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{22F17878-9B53-41F7-B01D-668A29A9C92D}.Debug.ActiveCfg = Debug|Win32
{22F17878-9B53-41F7-B01D-668A29A9C92D}.Debug.Build.0 = Debug|Win32
{22F17878-9B53-41F7-B01D-668A29A9C92D}.Release.ActiveCfg = Release|Win32
{22F17878-9B53-41F7-B01D-668A29A9C92D}.Release.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,165 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.10"
Name="esfmod"
ProjectGUID="{22F17878-9B53-41F7-B01D-668A29A9C92D}"
Keyword="Win32Proj">
<Platforms>
<Platform
Name="Win32"/>
</Platforms>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="Debug"
IntermediateDirectory="Debug"
ConfigurationType="2"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;ESFMOD_EXPORTS"
MinimalRebuild="TRUE"
BasicRuntimeChecks="3"
RuntimeLibrary="5"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="FALSE"
DebugInformationFormat="4"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/esfmod_mm.dll"
LinkIncremental="2"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/esfmod.pdb"
SubSystem="2"
ImportLibrary="$(OutDir)/esfmod.lib"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="Release"
IntermediateDirectory="Release"
ConfigurationType="2"
CharacterSet="2">
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;ESFMOD_EXPORTS"
RuntimeLibrary="4"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="FALSE"
DebugInformationFormat="3"/>
<Tool
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
OutputFile="$(OutDir)/esfmod_mm.dll"
LinkIncremental="1"
GenerateDebugInformation="TRUE"
SubSystem="2"
OptimizeReferences="2"
EnableCOMDATFolding="2"
ImportLibrary="$(OutDir)/esfmod.lib"
TargetMachine="1"/>
<Tool
Name="VCMIDLTool"/>
<Tool
Name="VCPostBuildEventTool"/>
<Tool
Name="VCPreBuildEventTool"/>
<Tool
Name="VCPreLinkEventTool"/>
<Tool
Name="VCResourceCompilerTool"/>
<Tool
Name="VCWebServiceProxyGeneratorTool"/>
<Tool
Name="VCXMLDataGeneratorTool"/>
<Tool
Name="VCWebDeploymentTool"/>
<Tool
Name="VCManagedWrapperGeneratorTool"/>
<Tool
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
<File
RelativePath=".\esf_anim.cpp">
</File>
<File
RelativePath=".\esf_base.cpp">
</File>
<File
RelativePath=".\esf_effects.cpp">
</File>
<File
RelativePath=".\esf_pdata.cpp">
</File>
<File
RelativePath=".\esforces.cpp">
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}">
<File
RelativePath=".\esf_pdata.h">
</File>
<File
RelativePath=".\esforces.h">
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
</Filter>
<Filter
Name="SDK"
Filter="">
<File
RelativePath=".\amxxmodule.cpp">
</File>
<File
RelativePath=".\amxxmodule.h">
</File>
<File
RelativePath=".\moduleconfig.h">
</File>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

View File

@ -0,0 +1,9 @@
#include "esforces.h"
void OnAmxxAttach()
{
MF_AddNatives(g_AnimationNatives);
MF_AddNatives(g_PdataNatives);
MF_AddNatives(g_EffectsNatives);
MF_AddNatives(g_BaseNatives);
}

78
dlls/esforces/esfmod/esforces.h Executable file
View File

@ -0,0 +1,78 @@
#ifndef _INCLUDE_ESFORCES_H
#define _INCLUDE_ESFORCES_H
#include "amxxmodule.h"
/**
* This module was written by David "BAILOPAN" Anderson
* based on the offsets and stocks by Lynx.
* Thanks for all of your help, Lynx!
*/
enum
{
Character_Buu = 1, //this guy's cool too
Character_Goku = 2,
Character_Gohan = 3, //my favorite :)
Character_Krillin = 4,
Character_Frieza = 5,
Character_Piccolo = 6,
Character_Trunks = 7,
Character_Vegeta = 8,
Character_Cell = 9,
};
enum
{
Explosion_Blue = 0,
Explosion_Green,
Explosion_Orange,
Explosion_Purple,
Explosion_Yellow,
Explosion_Red,
Explosion_White,
Explosions_Total,
};
enum
{
Attack_Kamehameha=1,
Attack_SpiritBomb,
Attack_GalletGun,
Attack_FinalFlash,
Attack_Renzoku,
Attack_Kametorpedo,
Attack_GenericBeam,
Attack_Throw,
};
enum
{
Direction_Left=1,
Direction_Right,
Direction_Up,
Direction_Down,
Direction_Forward,
Direction_Backward,
};
#define ESF_CHARGING 1
#define ESF_CONTROLLING 2
#define ESF_SHOOTING 3
#define ESF_SHOT 4
#define CHECKPLAYER(id) \
if (id < 1 || id > gpGlobals->maxClients) { \
MF_LogError(amx, AMX_ERR_NATIVE, "Player %d is not a valid index", id); \
return 0; \
} else if (!MF_IsPlayerIngame(id)) { \
MF_LogError(amx, AMX_ERR_NATIVE, "Player %d is not in-game", id); \
return 0; \
}
extern AMX_NATIVE_INFO g_AnimationNatives[];
extern AMX_NATIVE_INFO g_PdataNatives[];
extern AMX_NATIVE_INFO g_EffectsNatives[];
extern AMX_NATIVE_INFO g_BaseNatives[];
#endif //_INCLUDE_ESFORCES_H

View File

@ -0,0 +1,462 @@
// Configuration
#ifndef __MODULECONFIG_H__
#define __MODULECONFIG_H__
// Module info
#define MODULE_NAME "ESFMod"
#define MODULE_VERSION "1.00"
#define MODULE_AUTHOR "Lynx/AMXx Team"
#define MODULE_URL "http://www.amxmodx.org/"
#define MODULE_LOGTAG "ESFMOD"
// If you want the module not to be reloaded on mapchange, remove / comment out the next line
#define MODULE_RELOAD_ON_MAPCHANGE
#ifdef __DATE__
#define MODULE_DATE __DATE__
#else // __DATE__
#define MODULE_DATE "Unknown"
#endif // __DATE__
// metamod plugin?
#define USE_METAMOD
// - AMXX Init functions
// Also consider using FN_META_*
// AMXX query
//#define FN_AMXX_QUERY OnAmxxQuery
// AMXX attach
// Do native functions init here (MF_AddNatives)
#define FN_AMXX_ATTACH OnAmxxAttach
// AMXX detach
//#define FN_AMXX_DETACH OnAmxxDetach
// All plugins loaded
// Do forward functions init here (MF_RegisterForward)
// #define FN_AMXX_PLUGINSLOADED OnPluginsLoaded
/**** METAMOD ****/
// If your module doesn't use metamod, you may close the file now :)
#ifdef USE_METAMOD
// ----
// Hook Functions
// Uncomment these to be called
// You can also change the function name
// - Metamod init functions
// Also consider using FN_AMXX_*
// Meta query
//#define FN_META_QUERY OnMetaQuery
// Meta attach
//#define FN_META_ATTACH OnMetaAttach
// Meta detach
//#define FN_META_DETACH OnMetaDetach
// (wd) are Will Day's notes
// - GetEntityAPI2 functions
// #define FN_GameDLLInit GameDLLInit /* pfnGameInit() */
// #define FN_DispatchSpawn DispatchSpawn /* pfnSpawn() */
// #define FN_DispatchThink DispatchThink /* pfnThink() */
// #define FN_DispatchUse DispatchUse /* pfnUse() */
// #define FN_DispatchTouch DispatchTouch /* pfnTouch() */
// #define FN_DispatchBlocked DispatchBlocked /* pfnBlocked() */
// #define FN_DispatchKeyValue DispatchKeyValue /* pfnKeyValue() */
// #define FN_DispatchSave DispatchSave /* pfnSave() */
// #define FN_DispatchRestore DispatchRestore /* pfnRestore() */
// #define FN_DispatchObjectCollsionBox DispatchObjectCollsionBox /* pfnSetAbsBox() */
// #define FN_SaveWriteFields SaveWriteFields /* pfnSaveWriteFields() */
// #define FN_SaveReadFields SaveReadFields /* pfnSaveReadFields() */
// #define FN_SaveGlobalState SaveGlobalState /* pfnSaveGlobalState() */
// #define FN_RestoreGlobalState RestoreGlobalState /* pfnRestoreGlobalState() */
// #define FN_ResetGlobalState ResetGlobalState /* pfnResetGlobalState() */
// #define FN_ClientConnect ClientConnect /* pfnClientConnect() (wd) Client has connected */
// #define FN_ClientDisconnect ClientDisconnect /* pfnClientDisconnect() (wd) Player has left the game */
// #define FN_ClientKill ClientKill /* pfnClientKill() (wd) Player has typed "kill" */
// #define FN_ClientPutInServer ClientPutInServer /* pfnClientPutInServer() (wd) Client is entering the game */
// #define FN_ClientCommand ClientCommand /* pfnClientCommand() (wd) Player has sent a command (typed or from a bind) */
// #define FN_ClientUserInfoChanged ClientUserInfoChanged /* pfnClientUserInfoChanged() (wd) Client has updated their setinfo structure */
// #define FN_ServerActivate ServerActivate /* pfnServerActivate() (wd) Server is starting a new map */
// #define FN_ServerDeactivate ServerDeactivate /* pfnServerDeactivate() (wd) Server is leaving the map (shutdown or changelevel); SDK2 */
// #define FN_PlayerPreThink PlayerPreThink /* pfnPlayerPreThink() */
// #define FN_PlayerPostThink PlayerPostThink /* pfnPlayerPostThink() */
// #define FN_StartFrame StartFrame /* pfnStartFrame() */
// #define FN_ParmsNewLevel ParmsNewLevel /* pfnParmsNewLevel() */
// #define FN_ParmsChangeLevel ParmsChangeLevel /* pfnParmsChangeLevel() */
// #define FN_GetGameDescription GetGameDescription /* pfnGetGameDescription() Returns string describing current .dll. E.g. "TeamFotrress 2" "Half-Life" */
// #define FN_PlayerCustomization PlayerCustomization /* pfnPlayerCustomization() Notifies .dll of new customization for player. */
// #define FN_SpectatorConnect SpectatorConnect /* pfnSpectatorConnect() Called when spectator joins server */
// #define FN_SpectatorDisconnect SpectatorDisconnect /* pfnSpectatorDisconnect() Called when spectator leaves the server */
// #define FN_SpectatorThink SpectatorThink /* pfnSpectatorThink() Called when spectator sends a command packet (usercmd_t) */
// #define FN_Sys_Error Sys_Error /* pfnSys_Error() Notify game .dll that engine is going to shut down. Allows mod authors to set a breakpoint. SDK2 */
// #define FN_PM_Move PM_Move /* pfnPM_Move() (wd) SDK2 */
// #define FN_PM_Init PM_Init /* pfnPM_Init() Server version of player movement initialization; (wd) SDK2 */
// #define FN_PM_FindTextureType PM_FindTextureType /* pfnPM_FindTextureType() (wd) SDK2 */
// #define FN_SetupVisibility SetupVisibility /* pfnSetupVisibility() Set up PVS and PAS for networking for this client; (wd) SDK2 */
// #define FN_UpdateClientData UpdateClientData /* pfnUpdateClientData() Set up data sent only to specific client; (wd) SDK2 */
// #define FN_AddToFullPack AddToFullPack /* pfnAddToFullPack() (wd) SDK2 */
// #define FN_CreateBaseline CreateBaseline /* pfnCreateBaseline() Tweak entity baseline for network encoding allows setup of player baselines too.; (wd) SDK2 */
// #define FN_RegisterEncoders RegisterEncoders /* pfnRegisterEncoders() Callbacks for network encoding; (wd) SDK2 */
// #define FN_GetWeaponData GetWeaponData /* pfnGetWeaponData() (wd) SDK2 */
// #define FN_CmdStart CmdStart /* pfnCmdStart() (wd) SDK2 */
// #define FN_CmdEnd CmdEnd /* pfnCmdEnd() (wd) SDK2 */
// #define FN_ConnectionlessPacket ConnectionlessPacket /* pfnConnectionlessPacket() (wd) SDK2 */
// #define FN_GetHullBounds GetHullBounds /* pfnGetHullBounds() (wd) SDK2 */
// #define FN_CreateInstancedBaselines CreateInstancedBaselines /* pfnCreateInstancedBaselines() (wd) SDK2 */
// #define FN_InconsistentFile InconsistentFile /* pfnInconsistentFile() (wd) SDK2 */
// #define FN_AllowLagCompensation AllowLagCompensation /* pfnAllowLagCompensation() (wd) SDK2 */
// - GetEntityAPI2_Post functions
// #define FN_GameDLLInit_Post GameDLLInit_Post
// #define FN_DispatchSpawn_Post DispatchSpawn_Post
// #define FN_DispatchThink_Post DispatchThink_Post
// #define FN_DispatchUse_Post DispatchUse_Post
// #define FN_DispatchTouch_Post DispatchTouch_Post
// #define FN_DispatchBlocked_Post DispatchBlocked_Post
// #define FN_DispatchKeyValue_Post DispatchKeyValue_Post
// #define FN_DispatchSave_Post DispatchSave_Post
// #define FN_DispatchRestore_Post DispatchRestore_Post
// #define FN_DispatchObjectCollsionBox_Post DispatchObjectCollsionBox_Post
// #define FN_SaveWriteFields_Post SaveWriteFields_Post
// #define FN_SaveReadFields_Post SaveReadFields_Post
// #define FN_SaveGlobalState_Post SaveGlobalState_Post
// #define FN_RestoreGlobalState_Post RestoreGlobalState_Post
// #define FN_ResetGlobalState_Post ResetGlobalState_Post
// #define FN_ClientConnect_Post ClientConnect_Post
// #define FN_ClientDisconnect_Post ClientDisconnect_Post
// #define FN_ClientKill_Post ClientKill_Post
// #define FN_ClientPutInServer_Post ClientPutInServer_Post
// #define FN_ClientCommand_Post ClientCommand_Post
// #define FN_ClientUserInfoChanged_Post ClientUserInfoChanged_Post
// #define FN_ServerActivate_Post ServerActivate_Post
// #define FN_ServerDeactivate_Post ServerDeactivate_Post
// #define FN_PlayerPreThink_Post PlayerPreThink_Post
// #define FN_PlayerPostThink_Post PlayerPostThink_Post
// #define FN_StartFrame_Post StartFrame_Post
// #define FN_ParmsNewLevel_Post ParmsNewLevel_Post
// #define FN_ParmsChangeLevel_Post ParmsChangeLevel_Post
// #define FN_GetGameDescription_Post GetGameDescription_Post
// #define FN_PlayerCustomization_Post PlayerCustomization_Post
// #define FN_SpectatorConnect_Post SpectatorConnect_Post
// #define FN_SpectatorDisconnect_Post SpectatorDisconnect_Post
// #define FN_SpectatorThink_Post SpectatorThink_Post
// #define FN_Sys_Error_Post Sys_Error_Post
// #define FN_PM_Move_Post PM_Move_Post
// #define FN_PM_Init_Post PM_Init_Post
// #define FN_PM_FindTextureType_Post PM_FindTextureType_Post
// #define FN_SetupVisibility_Post SetupVisibility_Post
// #define FN_UpdateClientData_Post UpdateClientData_Post
// #define FN_AddToFullPack_Post AddToFullPack_Post
// #define FN_CreateBaseline_Post CreateBaseline_Post
// #define FN_RegisterEncoders_Post RegisterEncoders_Post
// #define FN_GetWeaponData_Post GetWeaponData_Post
// #define FN_CmdStart_Post CmdStart_Post
// #define FN_CmdEnd_Post CmdEnd_Post
// #define FN_ConnectionlessPacket_Post ConnectionlessPacket_Post
// #define FN_GetHullBounds_Post GetHullBounds_Post
// #define FN_CreateInstancedBaselines_Post CreateInstancedBaselines_Post
// #define FN_InconsistentFile_Post InconsistentFile_Post
// #define FN_AllowLagCompensation_Post AllowLagCompensation_Post
// - GetEngineAPI functions
// #define FN_PrecacheModel PrecacheModel
// #define FN_PrecacheSound PrecacheSound
// #define FN_SetModel SetModel
// #define FN_ModelIndex ModelIndex
// #define FN_ModelFrames ModelFrames
// #define FN_SetSize SetSize
// #define FN_ChangeLevel ChangeLevel
// #define FN_GetSpawnParms GetSpawnParms
// #define FN_SaveSpawnParms SaveSpawnParms
// #define FN_VecToYaw VecToYaw
// #define FN_VecToAngles VecToAngles
// #define FN_MoveToOrigin MoveToOrigin
// #define FN_ChangeYaw ChangeYaw
// #define FN_ChangePitch ChangePitch
// #define FN_FindEntityByString FindEntityByString
// #define FN_GetEntityIllum GetEntityIllum
// #define FN_FindEntityInSphere FindEntityInSphere
// #define FN_FindClientInPVS FindClientInPVS
// #define FN_EntitiesInPVS EntitiesInPVS
// #define FN_MakeVectors MakeVectors
// #define FN_AngleVectors AngleVectors
// #define FN_CreateEntity CreateEntity
// #define FN_RemoveEntity RemoveEntity
// #define FN_CreateNamedEntity CreateNamedEntity
// #define FN_MakeStatic MakeStatic
// #define FN_EntIsOnFloor EntIsOnFloor
// #define FN_DropToFloor DropToFloor
// #define FN_WalkMove WalkMove
// #define FN_SetOrigin SetOrigin
// #define FN_EmitSound EmitSound
// #define FN_EmitAmbientSound EmitAmbientSound
// #define FN_TraceLine TraceLine
// #define FN_TraceToss TraceToss
// #define FN_TraceMonsterHull TraceMonsterHull
// #define FN_TraceHull TraceHull
// #define FN_TraceModel TraceModel
// #define FN_TraceTexture TraceTexture
// #define FN_TraceSphere TraceSphere
// #define FN_GetAimVector GetAimVector
// #define FN_ServerCommand ServerCommand
// #define FN_ServerExecute ServerExecute
// #define FN_engClientCommand engClientCommand
// #define FN_ParticleEffect ParticleEffect
// #define FN_LightStyle LightStyle
// #define FN_DecalIndex DecalIndex
// #define FN_PointContents PointContents
// #define FN_MessageBegin MessageBegin
// #define FN_MessageEnd MessageEnd
// #define FN_WriteByte WriteByte
// #define FN_WriteChar WriteChar
// #define FN_WriteShort WriteShort
// #define FN_WriteLong WriteLong
// #define FN_WriteAngle WriteAngle
// #define FN_WriteCoord WriteCoord
// #define FN_WriteString WriteString
// #define FN_WriteEntity WriteEntity
// #define FN_CVarRegister CVarRegister
// #define FN_CVarGetFloat CVarGetFloat
// #define FN_CVarGetString CVarGetString
// #define FN_CVarSetFloat CVarSetFloat
// #define FN_CVarSetString CVarSetString
// #define FN_AlertMessage AlertMessage
// #define FN_EngineFprintf EngineFprintf
// #define FN_PvAllocEntPrivateData PvAllocEntPrivateData
// #define FN_PvEntPrivateData PvEntPrivateData
// #define FN_FreeEntPrivateData FreeEntPrivateData
// #define FN_SzFromIndex SzFromIndex
// #define FN_AllocString AllocString
// #define FN_GetVarsOfEnt GetVarsOfEnt
// #define FN_PEntityOfEntOffset PEntityOfEntOffset
// #define FN_EntOffsetOfPEntity EntOffsetOfPEntity
// #define FN_IndexOfEdict IndexOfEdict
// #define FN_PEntityOfEntIndex PEntityOfEntIndex
// #define FN_FindEntityByVars FindEntityByVars
// #define FN_GetModelPtr GetModelPtr
// #define FN_RegUserMsg RegUserMsg
// #define FN_AnimationAutomove AnimationAutomove
// #define FN_GetBonePosition GetBonePosition
// #define FN_FunctionFromName FunctionFromName
// #define FN_NameForFunction NameForFunction
// #define FN_ClientPrintf ClientPrintf
// #define FN_ServerPrint ServerPrint
// #define FN_Cmd_Args Cmd_Args
// #define FN_Cmd_Argv Cmd_Argv
// #define FN_Cmd_Argc Cmd_Argc
// #define FN_GetAttachment GetAttachment
// #define FN_CRC32_Init CRC32_Init
// #define FN_CRC32_ProcessBuffer CRC32_ProcessBuffer
// #define FN_CRC32_ProcessByte CRC32_ProcessByte
// #define FN_CRC32_Final CRC32_Final
// #define FN_RandomLong RandomLong
// #define FN_RandomFloat RandomFloat
// #define FN_SetView SetView
// #define FN_Time Time
// #define FN_CrosshairAngle CrosshairAngle
// #define FN_LoadFileForMe LoadFileForMe
// #define FN_FreeFile FreeFile
// #define FN_EndSection EndSection
// #define FN_CompareFileTime CompareFileTime
// #define FN_GetGameDir GetGameDir
// #define FN_Cvar_RegisterVariable Cvar_RegisterVariable
// #define FN_FadeClientVolume FadeClientVolume
// #define FN_SetClientMaxspeed SetClientMaxspeed
// #define FN_CreateFakeClient CreateFakeClient
// #define FN_RunPlayerMove RunPlayerMove
// #define FN_NumberOfEntities NumberOfEntities
// #define FN_GetInfoKeyBuffer GetInfoKeyBuffer
// #define FN_InfoKeyValue InfoKeyValue
// #define FN_SetKeyValue SetKeyValue
// #define FN_SetClientKeyValue SetClientKeyValue
// #define FN_IsMapValid IsMapValid
// #define FN_StaticDecal StaticDecal
// #define FN_PrecacheGeneric PrecacheGeneric
// #define FN_GetPlayerUserId GetPlayerUserId
// #define FN_BuildSoundMsg BuildSoundMsg
// #define FN_IsDedicatedServer IsDedicatedServer
// #define FN_CVarGetPointer CVarGetPointer
// #define FN_GetPlayerWONId GetPlayerWONId
// #define FN_Info_RemoveKey Info_RemoveKey
// #define FN_GetPhysicsKeyValue GetPhysicsKeyValue
// #define FN_SetPhysicsKeyValue SetPhysicsKeyValue
// #define FN_GetPhysicsInfoString GetPhysicsInfoString
// #define FN_PrecacheEvent PrecacheEvent
// #define FN_PlaybackEvent PlaybackEvent
// #define FN_SetFatPVS SetFatPVS
// #define FN_SetFatPAS SetFatPAS
// #define FN_CheckVisibility CheckVisibility
// #define FN_DeltaSetField DeltaSetField
// #define FN_DeltaUnsetField DeltaUnsetField
// #define FN_DeltaAddEncoder DeltaAddEncoder
// #define FN_GetCurrentPlayer GetCurrentPlayer
// #define FN_CanSkipPlayer CanSkipPlayer
// #define FN_DeltaFindField DeltaFindField
// #define FN_DeltaSetFieldByIndex DeltaSetFieldByIndex
// #define FN_DeltaUnsetFieldByIndex DeltaUnsetFieldByIndex
// #define FN_SetGroupMask SetGroupMask
// #define FN_engCreateInstancedBaseline engCreateInstancedBaseline
// #define FN_Cvar_DirectSet Cvar_DirectSet
// #define FN_ForceUnmodified ForceUnmodified
// #define FN_GetPlayerStats GetPlayerStats
// #define FN_AddServerCommand AddServerCommand
// #define FN_Voice_GetClientListening Voice_GetClientListening
// #define FN_Voice_SetClientListening Voice_SetClientListening
// #define FN_GetPlayerAuthId GetPlayerAuthId
// - GetEngineAPI_Post functions
// #define FN_PrecacheModel_Post PrecacheModel_Post
// #define FN_PrecacheSound_Post PrecacheSound_Post
// #define FN_SetModel_Post SetModel_Post
// #define FN_ModelIndex_Post ModelIndex_Post
// #define FN_ModelFrames_Post ModelFrames_Post
// #define FN_SetSize_Post SetSize_Post
// #define FN_ChangeLevel_Post ChangeLevel_Post
// #define FN_GetSpawnParms_Post GetSpawnParms_Post
// #define FN_SaveSpawnParms_Post SaveSpawnParms_Post
// #define FN_VecToYaw_Post VecToYaw_Post
// #define FN_VecToAngles_Post VecToAngles_Post
// #define FN_MoveToOrigin_Post MoveToOrigin_Post
// #define FN_ChangeYaw_Post ChangeYaw_Post
// #define FN_ChangePitch_Post ChangePitch_Post
// #define FN_FindEntityByString_Post FindEntityByString_Post
// #define FN_GetEntityIllum_Post GetEntityIllum_Post
// #define FN_FindEntityInSphere_Post FindEntityInSphere_Post
// #define FN_FindClientInPVS_Post FindClientInPVS_Post
// #define FN_EntitiesInPVS_Post EntitiesInPVS_Post
// #define FN_MakeVectors_Post MakeVectors_Post
// #define FN_AngleVectors_Post AngleVectors_Post
// #define FN_CreateEntity_Post CreateEntity_Post
// #define FN_RemoveEntity_Post RemoveEntity_Post
// #define FN_CreateNamedEntity_Post CreateNamedEntity_Post
// #define FN_MakeStatic_Post MakeStatic_Post
// #define FN_EntIsOnFloor_Post EntIsOnFloor_Post
// #define FN_DropToFloor_Post DropToFloor_Post
// #define FN_WalkMove_Post WalkMove_Post
// #define FN_SetOrigin_Post SetOrigin_Post
// #define FN_EmitSound_Post EmitSound_Post
// #define FN_EmitAmbientSound_Post EmitAmbientSound_Post
// #define FN_TraceLine_Post TraceLine_Post
// #define FN_TraceToss_Post TraceToss_Post
// #define FN_TraceMonsterHull_Post TraceMonsterHull_Post
// #define FN_TraceHull_Post TraceHull_Post
// #define FN_TraceModel_Post TraceModel_Post
// #define FN_TraceTexture_Post TraceTexture_Post
// #define FN_TraceSphere_Post TraceSphere_Post
// #define FN_GetAimVector_Post GetAimVector_Post
// #define FN_ServerCommand_Post ServerCommand_Post
// #define FN_ServerExecute_Post ServerExecute_Post
// #define FN_engClientCommand_Post engClientCommand_Post
// #define FN_ParticleEffect_Post ParticleEffect_Post
// #define FN_LightStyle_Post LightStyle_Post
// #define FN_DecalIndex_Post DecalIndex_Post
// #define FN_PointContents_Post PointContents_Post
// #define FN_MessageBegin_Post MessageBegin_Post
// #define FN_MessageEnd_Post MessageEnd_Post
// #define FN_WriteByte_Post WriteByte_Post
// #define FN_WriteChar_Post WriteChar_Post
// #define FN_WriteShort_Post WriteShort_Post
// #define FN_WriteLong_Post WriteLong_Post
// #define FN_WriteAngle_Post WriteAngle_Post
// #define FN_WriteCoord_Post WriteCoord_Post
// #define FN_WriteString_Post WriteString_Post
// #define FN_WriteEntity_Post WriteEntity_Post
// #define FN_CVarRegister_Post CVarRegister_Post
// #define FN_CVarGetFloat_Post CVarGetFloat_Post
// #define FN_CVarGetString_Post CVarGetString_Post
// #define FN_CVarSetFloat_Post CVarSetFloat_Post
// #define FN_CVarSetString_Post CVarSetString_Post
// #define FN_AlertMessage_Post AlertMessage_Post
// #define FN_EngineFprintf_Post EngineFprintf_Post
// #define FN_PvAllocEntPrivateData_Post PvAllocEntPrivateData_Post
// #define FN_PvEntPrivateData_Post PvEntPrivateData_Post
// #define FN_FreeEntPrivateData_Post FreeEntPrivateData_Post
// #define FN_SzFromIndex_Post SzFromIndex_Post
// #define FN_AllocString_Post AllocString_Post
// #define FN_GetVarsOfEnt_Post GetVarsOfEnt_Post
// #define FN_PEntityOfEntOffset_Post PEntityOfEntOffset_Post
// #define FN_EntOffsetOfPEntity_Post EntOffsetOfPEntity_Post
// #define FN_IndexOfEdict_Post IndexOfEdict_Post
// #define FN_PEntityOfEntIndex_Post PEntityOfEntIndex_Post
// #define FN_FindEntityByVars_Post FindEntityByVars_Post
// #define FN_GetModelPtr_Post GetModelPtr_Post
// #define FN_RegUserMsg_Post RegUserMsg_Post
// #define FN_AnimationAutomove_Post AnimationAutomove_Post
// #define FN_GetBonePosition_Post GetBonePosition_Post
// #define FN_FunctionFromName_Post FunctionFromName_Post
// #define FN_NameForFunction_Post NameForFunction_Post
// #define FN_ClientPrintf_Post ClientPrintf_Post
// #define FN_ServerPrint_Post ServerPrint_Post
// #define FN_Cmd_Args_Post Cmd_Args_Post
// #define FN_Cmd_Argv_Post Cmd_Argv_Post
// #define FN_Cmd_Argc_Post Cmd_Argc_Post
// #define FN_GetAttachment_Post GetAttachment_Post
// #define FN_CRC32_Init_Post CRC32_Init_Post
// #define FN_CRC32_ProcessBuffer_Post CRC32_ProcessBuffer_Post
// #define FN_CRC32_ProcessByte_Post CRC32_ProcessByte_Post
// #define FN_CRC32_Final_Post CRC32_Final_Post
// #define FN_RandomLong_Post RandomLong_Post
// #define FN_RandomFloat_Post RandomFloat_Post
// #define FN_SetView_Post SetView_Post
// #define FN_Time_Post Time_Post
// #define FN_CrosshairAngle_Post CrosshairAngle_Post
// #define FN_LoadFileForMe_Post LoadFileForMe_Post
// #define FN_FreeFile_Post FreeFile_Post
// #define FN_EndSection_Post EndSection_Post
// #define FN_CompareFileTime_Post CompareFileTime_Post
// #define FN_GetGameDir_Post GetGameDir_Post
// #define FN_Cvar_RegisterVariable_Post Cvar_RegisterVariable_Post
// #define FN_FadeClientVolume_Post FadeClientVolume_Post
// #define FN_SetClientMaxspeed_Post SetClientMaxspeed_Post
// #define FN_CreateFakeClient_Post CreateFakeClient_Post
// #define FN_RunPlayerMove_Post RunPlayerMove_Post
// #define FN_NumberOfEntities_Post NumberOfEntities_Post
// #define FN_GetInfoKeyBuffer_Post GetInfoKeyBuffer_Post
// #define FN_InfoKeyValue_Post InfoKeyValue_Post
// #define FN_SetKeyValue_Post SetKeyValue_Post
// #define FN_SetClientKeyValue_Post SetClientKeyValue_Post
// #define FN_IsMapValid_Post IsMapValid_Post
// #define FN_StaticDecal_Post StaticDecal_Post
// #define FN_PrecacheGeneric_Post PrecacheGeneric_Post
// #define FN_GetPlayerUserId_Post GetPlayerUserId_Post
// #define FN_BuildSoundMsg_Post BuildSoundMsg_Post
// #define FN_IsDedicatedServer_Post IsDedicatedServer_Post
// #define FN_CVarGetPointer_Post CVarGetPointer_Post
// #define FN_GetPlayerWONId_Post GetPlayerWONId_Post
// #define FN_Info_RemoveKey_Post Info_RemoveKey_Post
// #define FN_GetPhysicsKeyValue_Post GetPhysicsKeyValue_Post
// #define FN_SetPhysicsKeyValue_Post SetPhysicsKeyValue_Post
// #define FN_GetPhysicsInfoString_Post GetPhysicsInfoString_Post
// #define FN_PrecacheEvent_Post PrecacheEvent_Post
// #define FN_PlaybackEvent_Post PlaybackEvent_Post
// #define FN_SetFatPVS_Post SetFatPVS_Post
// #define FN_SetFatPAS_Post SetFatPAS_Post
// #define FN_CheckVisibility_Post CheckVisibility_Post
// #define FN_DeltaSetField_Post DeltaSetField_Post
// #define FN_DeltaUnsetField_Post DeltaUnsetField_Post
// #define FN_DeltaAddEncoder_Post DeltaAddEncoder_Post
// #define FN_GetCurrentPlayer_Post GetCurrentPlayer_Post
// #define FN_CanSkipPlayer_Post CanSkipPlayer_Post
// #define FN_DeltaFindField_Post DeltaFindField_Post
// #define FN_DeltaSetFieldByIndex_Post DeltaSetFieldByIndex_Post
// #define FN_DeltaUnsetFieldByIndex_Post DeltaUnsetFieldByIndex_Post
// #define FN_SetGroupMask_Post SetGroupMask_Post
// #define FN_engCreateInstancedBaseline_Post engCreateInstancedBaseline_Post
// #define FN_Cvar_DirectSet_Post Cvar_DirectSet_Post
// #define FN_ForceUnmodified_Post ForceUnmodified_Post
// #define FN_GetPlayerStats_Post GetPlayerStats_Post
// #define FN_AddServerCommand_Post AddServerCommand_Post
// #define FN_Voice_GetClientListening_Post Voice_GetClientListening_Post
// #define FN_Voice_SetClientListening_Post Voice_SetClientListening_Post
// #define FN_GetPlayerAuthId_Post GetPlayerAuthId_Post
// #define FN_OnFreeEntPrivateData OnFreeEntPrivateData
// #define FN_GameShutdown GameShutdown
// #define FN_ShouldCollide ShouldCollide
// #define FN_OnFreeEntPrivateData_Post OnFreeEntPrivateData_Post
// #define FN_GameShutdown_Post GameShutdown_Post
// #define FN_ShouldCollide_Post ShouldCollide_Post
#endif // USE_METAMOD
#endif // __MODULECONFIG_H__