Initial import of twilight's module
This commit is contained in:
parent
bc66a93fcf
commit
e5b4b5a53d
276
dlls/ts/tsfun/CMessage.cpp
Executable file
276
dlls/ts/tsfun/CMessage.cpp
Executable file
|
@ -0,0 +1,276 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2004 Lukasz Wlasinski
|
||||
*
|
||||
* This file is part of TS XMod.
|
||||
*
|
||||
* TS XMod is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* TS XMod is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with TS XMod; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* In addition, as a special exception, the author gives permission to
|
||||
* link the code of this program with the Half-Life Game Engine ("HL
|
||||
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||||
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||||
* respects for all of the code used other than the HL Engine and MODs
|
||||
* from Valve. If you modify this file, you may extend this exception
|
||||
* to your version of the file, but you are not obligated to do so. If
|
||||
* you do not wish to do so, delete this exception statement from your
|
||||
* version.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "amxxmodule.h"
|
||||
#include "tsfun.h"
|
||||
|
||||
|
||||
void Client_ResetHUD_End(void* mValue)
|
||||
{
|
||||
if ( mPlayer->IsAlive() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
mPlayer->items = 0;
|
||||
mPlayer->is_specialist = 0;
|
||||
mPlayer->killingSpree = 0;
|
||||
mPlayer->killFlags = 0;
|
||||
mPlayer->frags = (int)mPlayer->pEdict->v.frags;
|
||||
}
|
||||
}
|
||||
|
||||
void Client_ScoreInfo(void* mValue)
|
||||
{
|
||||
static int iId;
|
||||
switch(mState++)
|
||||
{
|
||||
case 0:
|
||||
iId = *(int*)mValue;
|
||||
break;
|
||||
case 4:
|
||||
if ( iId && (iId < 33) )
|
||||
{
|
||||
GET_PLAYER_POINTER_I(iId)->teamId = *(int*)mValue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Client_WeaponInfo(void* mValue)
|
||||
{
|
||||
static int wpn;
|
||||
switch(mState++){
|
||||
case 0:
|
||||
wpn = *(int*)mValue;
|
||||
if ( !wpn ) wpn = 36; // kung fu
|
||||
mPlayer->current = wpn;
|
||||
break;
|
||||
case 1:
|
||||
mPlayer->weapons[wpn].clip = *(int*)mValue;
|
||||
break;
|
||||
case 2:
|
||||
mPlayer->weapons[wpn].ammo = *(int*)mValue;
|
||||
break;
|
||||
case 3:
|
||||
mPlayer->weapons[wpn].mode = *(int*)mValue;
|
||||
break;
|
||||
case 4:
|
||||
mPlayer->weapons[wpn].attach = *(int*)mValue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Client_ClipInfo(void* mValue)
|
||||
{
|
||||
int iValue = *(int*)mValue;
|
||||
mPlayer->weapons[mPlayer->current].clip = iValue;
|
||||
}
|
||||
|
||||
void Client_TSHealth_End(void* mValue)
|
||||
{
|
||||
edict_t *enemy = mPlayer->pEdict->v.dmg_inflictor;
|
||||
int damage = (int)mPlayer->pEdict->v.dmg_take;
|
||||
|
||||
if ( !damage || !enemy )
|
||||
return;
|
||||
|
||||
int aim = 0;
|
||||
int weapon = 0;
|
||||
mPlayer->pEdict->v.dmg_take = 0.0;
|
||||
|
||||
CPlayer* pAttacker = NULL;
|
||||
|
||||
if ( enemy->v.flags & (FL_CLIENT | FL_FAKECLIENT) )
|
||||
{
|
||||
pAttacker = GET_PLAYER_POINTER(enemy);
|
||||
weapon = pAttacker->current;
|
||||
aim = pAttacker->aiming;
|
||||
}
|
||||
else
|
||||
{
|
||||
char szCName[16];
|
||||
strcpy( szCName,STRING(enemy->v.classname) );
|
||||
|
||||
if ( szCName[0] == 'g' )
|
||||
{
|
||||
if ( enemy->v.owner && enemy->v.owner->v.flags & (FL_CLIENT | FL_FAKECLIENT) )
|
||||
{
|
||||
pAttacker = GET_PLAYER_POINTER(enemy->v.owner);
|
||||
weapon = 24; // grenade
|
||||
}
|
||||
}
|
||||
else if ( szCName[0] == 'k' )
|
||||
{
|
||||
int pOwner = *( (int*)enemy->pvPrivateData + gKnifeOffset );
|
||||
|
||||
if ( FNullEnt( (edict_t*)pOwner) )
|
||||
return;
|
||||
|
||||
pAttacker = GET_PLAYER_POINTER( (edict_t*)pOwner );
|
||||
|
||||
weapon = 37; // throwing knife
|
||||
aim = pAttacker->aiming;
|
||||
}
|
||||
}
|
||||
if ( !pAttacker ) pAttacker = mPlayer;
|
||||
|
||||
int TA = 0;
|
||||
if ( mPlayer->teamId )
|
||||
{
|
||||
if ( (mPlayer->teamId == pAttacker->teamId ) && (mPlayer != pAttacker) )
|
||||
TA = 1;
|
||||
}
|
||||
|
||||
if ( mPlayer->IsAlive() )
|
||||
return;
|
||||
|
||||
// death
|
||||
|
||||
if ( (int)pAttacker->pEdict->v.frags - pAttacker->frags == 0 )
|
||||
pAttacker = mPlayer;
|
||||
|
||||
int killFlags = 0;
|
||||
|
||||
if ( !TA && mPlayer!=pAttacker )
|
||||
{
|
||||
|
||||
int sflags = pAttacker->pEdict->v.iuser4;
|
||||
|
||||
int stuntKill = 0;
|
||||
int slpos = 0;
|
||||
|
||||
if ( weapon == 24 ) // dla granata nie liczy sie sflags
|
||||
; // nic nie rob..
|
||||
else if ( sflags == 20 || sflags == 1028 || sflags == 2052 )
|
||||
stuntKill = 1;
|
||||
else if ( sflags == 36)
|
||||
slpos = 1;
|
||||
|
||||
int doubleKill = 0;
|
||||
|
||||
if ( gpGlobals->time - pAttacker->lastKill < 1.0 )
|
||||
doubleKill = 1;
|
||||
|
||||
if ( stuntKill )
|
||||
killFlags |= TSKF_STUNTKILL;
|
||||
|
||||
pAttacker->lastKill = gpGlobals->time;
|
||||
|
||||
pAttacker->killingSpree++;
|
||||
|
||||
if ( pAttacker->killingSpree == 10 )
|
||||
pAttacker->is_specialist = 1;
|
||||
|
||||
pAttacker->lastFrag = weaponData[weapon].bonus + 2*stuntKill;
|
||||
|
||||
if ( doubleKill )
|
||||
{
|
||||
pAttacker->lastFrag *= 2;
|
||||
killFlags |= TSKF_DOUBLEKILL;
|
||||
}
|
||||
|
||||
if ( pAttacker->is_specialist )
|
||||
{
|
||||
pAttacker->lastFrag *= 2;
|
||||
killFlags |= TSKF_ISSPEC;
|
||||
}
|
||||
|
||||
if ( mPlayer->is_specialist )
|
||||
{
|
||||
pAttacker->lastFrag += 5;
|
||||
killFlags |= TSKF_KILLEDSPEC;
|
||||
}
|
||||
|
||||
pAttacker->frags += pAttacker->lastFrag;
|
||||
if ( pAttacker->frags != pAttacker->pEdict->v.frags )
|
||||
{
|
||||
|
||||
if ( slpos )
|
||||
killFlags |= TSKF_SLIDINGKILL;
|
||||
else
|
||||
weapon = 36;
|
||||
|
||||
pAttacker->lastFrag += (int)pAttacker->pEdict->v.frags - pAttacker->frags;
|
||||
pAttacker->frags = (int)pAttacker->pEdict->v.frags;
|
||||
}
|
||||
}
|
||||
|
||||
pAttacker->killFlags = killFlags;
|
||||
}
|
||||
|
||||
void Client_WStatus(void* mValue)
|
||||
{
|
||||
switch(mState++)
|
||||
{
|
||||
case 1:
|
||||
if ( !*(int*)mValue )
|
||||
{
|
||||
mPlayer->current = 36;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Client_TSSpace(void* mValue)
|
||||
{
|
||||
mPlayer->space = *(int*)mValue;
|
||||
}
|
||||
|
||||
void Client_PwUp(void* mValue)
|
||||
{
|
||||
static int iPwType;
|
||||
switch(mState++)
|
||||
{
|
||||
case 0:
|
||||
iPwType = *(int*)mValue;
|
||||
switch(iPwType)
|
||||
{
|
||||
case TSPWUP_KUNGFU :
|
||||
mPlayer->items |= TSITEM_KUNGFU;
|
||||
break;
|
||||
|
||||
case TSPWUP_SJUMP:
|
||||
mPlayer->items |= TSITEM_SUPERJUMP;
|
||||
break;
|
||||
|
||||
default: mPlayer->PwUp = iPwType;
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
|
||||
if ( iPwType != TSPWUP_KUNGFU && iPwType != TSPWUP_SJUMP )
|
||||
mPlayer->PwUpValue = *(int*)mValue;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
92
dlls/ts/tsfun/CMisc.cpp
Executable file
92
dlls/ts/tsfun/CMisc.cpp
Executable file
|
@ -0,0 +1,92 @@
|
|||
#include "tsfun.h"
|
||||
|
||||
funEventCall modMsgsEnd[MAX_REG_MSGS];
|
||||
funEventCall modMsgs[MAX_REG_MSGS];
|
||||
void (*function)(void*);
|
||||
void (*endfunction)(void*);
|
||||
CPlayer* mPlayer;
|
||||
int mPlayerIndex;
|
||||
int mState;
|
||||
CPlayer players[33];
|
||||
|
||||
int gKnifeOffset;
|
||||
|
||||
int gmsgResetHUD;
|
||||
int gmsgWeaponInfo;
|
||||
int gmsgClipInfo;
|
||||
int gmsgScoreInfo;
|
||||
int gmsgTSHealth;
|
||||
|
||||
int gmsgWStatus;
|
||||
int gmsgTSCash;
|
||||
int gmsgTSSpace;
|
||||
int gmsgPwUp;
|
||||
|
||||
struct sUserMsg {
|
||||
const char* name;
|
||||
int* id;
|
||||
funEventCall func;
|
||||
bool endmsg;
|
||||
} g_user_msg[] = {
|
||||
{ "ResetHUD",&gmsgResetHUD,Client_ResetHUD_End,true },
|
||||
{ "WeaponInfo",&gmsgWeaponInfo,Client_WeaponInfo,false },
|
||||
{ "ClipInfo",&gmsgClipInfo,Client_ClipInfo,false },
|
||||
{ "ScoreInfo",&gmsgScoreInfo,Client_ScoreInfo,false },
|
||||
{ "TSHealth",&gmsgTSHealth,Client_TSHealth_End,true },
|
||||
|
||||
{ "WStatus",&gmsgWStatus,Client_WStatus,false },
|
||||
{ "TSSpace",&gmsgTSSpace,Client_TSSpace,false },
|
||||
{ "PwUp",&gmsgPwUp,Client_PwUp,false},
|
||||
|
||||
{ 0,0,0,false }
|
||||
};
|
||||
|
||||
const char* get_localinfo( const char* name , const char* def = 0 )
|
||||
{
|
||||
const char* b = LOCALINFO( (char*)name );
|
||||
if (((b==0)||(*b==0)) && def )
|
||||
SET_LOCALINFO((char*)name,(char*)(b = def) );
|
||||
return b;
|
||||
}
|
||||
|
||||
weapon_t weaponData[] = {
|
||||
{ 1,"Kung Fu","kung_fu",3 }, // id 0 like in WeaponInfo , DeathMsg
|
||||
{ 0,"Glock-18","glock-18",1 },
|
||||
{ 0,"Unk1","Unk1",0 }, // bomb ?
|
||||
{ 0,"Mini-Uzi","mini-uzi",1 },
|
||||
{ 0,"BENELLI-M3","benelli_m3",1 },
|
||||
{ 0,"M4A1","m4a1",1 },
|
||||
{ 0,"MP5SD","mp5sd",1 },
|
||||
{ 0,"MP5K","mp5k",1 },
|
||||
{ 0,"Akimbo Berettas","akimbo_berettas",1 },
|
||||
{ 0,"SOCOM-MK23","socom-mk23",1 },
|
||||
{ 0,"Akimbo MK23","akimbo_mk23",1 },
|
||||
{ 0,"USAS-12","usas-12",1 },
|
||||
{ 0,"Desert Eagle","desert_eagle",1 },
|
||||
{ 0,"AK47","ak47",1 },
|
||||
{ 0,"Five-seveN","five-seven",1 },
|
||||
{ 0,"STEYR-AUG","steyr-aug",1 },
|
||||
{ 0,"Akimbo Mini-Uzi","akimbo_mini-uzi",1 },
|
||||
{ 0,"STEYR-TMP","steyr-tmp",1 },
|
||||
{ 0,"Barrett M82A1","barrett_m82a1",1 },
|
||||
{ 0,"MP7-PDW","mp7-pdw",1 },
|
||||
{ 0,"SPAS-12","spas-12",1 },
|
||||
{ 0,"Golden Colts","golden_colts",1 },
|
||||
{ 0,"Glock-20C","glock-20c",1 },
|
||||
{ 0,"UMP", "ump",1 },
|
||||
{ 0,"M61 Grenade","m61_grenade",1 },
|
||||
{ 1,"Combat Knife","combat_knife",1 },
|
||||
{ 0,"MOSSBERG 500","mossberg_500",1 },
|
||||
{ 0,"M16A4","m16a4",1 },
|
||||
{ 0,"Ruger-MK1","ruger-mk1",1 },
|
||||
{ 0,"C4","c4",0 },
|
||||
{ 0,"Akimbo Five-seveN","akimbo_five-seven",1 },
|
||||
{ 0,"Raging Bull","raging_bull",1 },
|
||||
{ 0,"M60E3","m60e3",1 },
|
||||
{ 0,"Sawed-off","sawed-off",1 }, // 33
|
||||
{ 1,"Katana", "katana",2 },
|
||||
{ 1,"Seal Knife","seal_knife",1 }, // 35
|
||||
{ 1,"Kung Fu","kung_fu",3 }, // Again new id 36
|
||||
{ 1,"Throwing Knife","throwing_knife",2 }, // new id 37
|
||||
{ 0,"breakable", "breakable", 1 },
|
||||
};
|
340
dlls/ts/tsfun/CNatives.h
Executable file
340
dlls/ts/tsfun/CNatives.h
Executable file
|
@ -0,0 +1,340 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2004 Lukasz Wlasinski
|
||||
*
|
||||
* This file is part of TS XMod.
|
||||
*
|
||||
* TS XMod is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* TS XMod is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with TS XMod; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* In addition, as a special exception, the author gives permission to
|
||||
* link the code of this program with the Half-Life Game Engine ("HL
|
||||
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||||
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||||
* respects for all of the code used other than the HL Engine and MODs
|
||||
* from Valve. If you modify this file, you may extend this exception
|
||||
* to your version of the file, but you are not obligated to do so. If
|
||||
* you do not wish to do so, delete this exception statement from your
|
||||
* version.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "amxxmodule.h"
|
||||
|
||||
#ifndef TSX_NATIVES
|
||||
#define TSX_NATIVES
|
||||
|
||||
#define TSPWUP_SLOWMO 1
|
||||
#define TSPWUP_INFAMMO 2
|
||||
#define TSPWUP_KUNGFU 4
|
||||
#define TSPWUP_SLOWPAUSE 8
|
||||
#define TSPWUP_DFIRERATE 16
|
||||
#define TSPWUP_GRENADE 32
|
||||
#define TSPWUP_HEALTH 64
|
||||
#define TSPWUP_ARMOR 128
|
||||
#define TSPWUP_SUPERJUMP 256
|
||||
|
||||
static cell AMX_NATIVE_CALL set_user_slots(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CHECK_PLAYER(id);
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
pPlayer->SetSlots(params[2]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL get_user_slots(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CHECK_PLAYER(id);
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
return pPlayer->GetSlots();
|
||||
}
|
||||
|
||||
// set_fuattack(Float:time,Float:damage)
|
||||
static cell AMX_NATIVE_CALL set_fuattack(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
pPlayer->SetOffsetFloat(454,amx_ctof(params[2]) );
|
||||
pPlayer->SetOffsetFloat(455,amx_ctof(params[3]) );
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL has_superjump(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
int val3 = pPlayer->GetOffsetInt(433);
|
||||
|
||||
if(val3 & 0x01000000) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL has_fupowerup(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
int val3 = pPlayer->GetOffsetInt(433);
|
||||
|
||||
if(val3 & 65536) return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL get_usertime(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
return pPlayer->GetCurrentTime();
|
||||
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_usertime(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
pPlayer->SetCurrentTime(amx_ctof(params[2]));
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL get_consecutive_frags(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
return pPlayer->GetOffsetInt(433);
|
||||
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_consecutive_frags(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
pPlayer->SetOffsetInt(433,params[2]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_user_message(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
int message = params[2];
|
||||
if(message < 1 || message > 16)
|
||||
{
|
||||
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid Message ID: %i",message );
|
||||
return 0;
|
||||
}
|
||||
|
||||
int val3 = pPlayer->GetOffsetInt(433);
|
||||
|
||||
pPlayer->SetOffsetInt(433, (val3 & ~15)^message);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL get_user_message(AMX *amx, cell *params)
|
||||
{
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
int val3 = pPlayer->GetOffsetInt(433);
|
||||
|
||||
return (val3 & 15);
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_bullettrail(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
long bullettrail = params[2] * 256;
|
||||
|
||||
pPlayer->SetOffsetInt(87,bullettrail);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_fake_slowmo(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
float time = amx_ctof(params[2]);
|
||||
|
||||
pPlayer->SetOffsetInt(423,TSPWUP_SLOWMO);
|
||||
|
||||
float prev = pPlayer->GetCurrentTime();
|
||||
|
||||
pPlayer->SetOffsetFloat(425,prev+time);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_fake_slowpause(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
float time = amx_ctof(params[2]);
|
||||
|
||||
pPlayer->SetOffsetInt(423,TSPWUP_SLOWPAUSE);
|
||||
|
||||
float prev = pPlayer->GetCurrentTime();
|
||||
|
||||
pPlayer->SetOffsetFloat(425,prev+time);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL is_in_slowmo(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
if(pPlayer->GetOffsetFloat(89) )
|
||||
return pPlayer->GetOffsetFloat(425);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_speed(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
pPlayer->SetOffsetFloat(89, amx_ctof(params[2]) );
|
||||
pPlayer->SetOffsetFloat(90, amx_ctof(params[3]) );
|
||||
pPlayer->SetOffsetFloat(85, amx_ctof(params[3]) );
|
||||
pPlayer->SetOffsetFloat(425,amx_ctof(params[4]) );
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL set_physics_speed(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
pPlayer->SetOffsetFloat(86,amx_ctof(params[2]));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL is_running_powerup(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
return pPlayer->GetOffsetInt(423);
|
||||
}
|
||||
|
||||
static cell AMX_NATIVE_CALL force_powerup_run(AMX *amx, cell *params)
|
||||
{
|
||||
|
||||
int id = params[1];
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(id);
|
||||
|
||||
CHECK_PLAYER(id);
|
||||
|
||||
pPlayer->SetOffsetInt(423,params[2]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
AMX_NATIVE_INFO base_Natives[] = {
|
||||
{ "ts_getuserslots", get_user_slots },
|
||||
{ "ts_setuserslots", set_user_slots },
|
||||
|
||||
{ "ts_getusertime",get_usertime },
|
||||
{ "ts_setusertime",set_usertime},
|
||||
|
||||
{ "ts_set_fuattack", set_fuattack },
|
||||
{ "ts_set_message", set_user_message },
|
||||
{ "ts_get_message", get_user_message },
|
||||
|
||||
{ "ts_has_superjump", has_superjump },
|
||||
{ "ts_has_fupowerup", has_fupowerup },
|
||||
|
||||
{ "ts_get_cons_frags", get_consecutive_frags },
|
||||
{ "ts_set_cons_frags", set_consecutive_frags },
|
||||
|
||||
//****************************************
|
||||
|
||||
{ "ts_set_bullettrail",set_bullettrail },
|
||||
{ "ts_set_fakeslowmo",set_fake_slowmo },
|
||||
{ "ts_set_fakeslowpause",set_fake_slowpause },
|
||||
{ "ts_is_in_slowmo",is_in_slowmo },
|
||||
{ "ts_set_speed",set_speed },
|
||||
{ "ts_set_physics_speed",set_physics_speed },
|
||||
|
||||
//****************************************
|
||||
|
||||
{ "ts_is_running_powerup",is_running_powerup},
|
||||
{ "ts_force_run_powerup",force_powerup_run},
|
||||
|
||||
//"*******************"
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
#endif
|
108
dlls/ts/tsfun/CPlayer.cpp
Executable file
108
dlls/ts/tsfun/CPlayer.cpp
Executable file
|
@ -0,0 +1,108 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2004 Lukasz Wlasinski
|
||||
*
|
||||
* This file is part of TS XMod.
|
||||
*
|
||||
* TS XMod is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* TS XMod is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with TS XMod; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* In addition, as a special exception, the author gives permission to
|
||||
* link the code of this program with the Half-Life Game Engine ("HL
|
||||
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||||
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||||
* respects for all of the code used other than the HL Engine and MODs
|
||||
* from Valve. If you modify this file, you may extend this exception
|
||||
* to your version of the file, but you are not obligated to do so. If
|
||||
* you do not wish to do so, delete this exception statement from your
|
||||
* version.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "CPlayer.h"
|
||||
#include "tsfun.h"
|
||||
|
||||
// *****************************************************
|
||||
// class CPlayer
|
||||
// *****************************************************
|
||||
|
||||
void CPlayer::Disconnect()
|
||||
{
|
||||
ingame = false;
|
||||
}
|
||||
void CPlayer::PutInServer()
|
||||
{
|
||||
ingame = true;
|
||||
|
||||
killingSpree = 0;
|
||||
items = 0;
|
||||
lastFrag = 0;
|
||||
lastKill = 0.0;
|
||||
is_specialist = 0;
|
||||
set_454 = -1.0;
|
||||
set_455 = -1.0;
|
||||
set_423 = -1;
|
||||
|
||||
//debug
|
||||
frags = 0;
|
||||
|
||||
}
|
||||
void CPlayer::Connect( const char* ippp )
|
||||
{
|
||||
strcpy(ip,ippp);
|
||||
}
|
||||
|
||||
void CPlayer::Init( int pi, edict_t* pe )
|
||||
{
|
||||
pEdict = pe;
|
||||
index = pi;
|
||||
current = 0;
|
||||
ingame = true;
|
||||
}
|
||||
|
||||
long CPlayer::GetOffsetInt(long off)
|
||||
{
|
||||
#ifdef __linux__
|
||||
off += 5;
|
||||
#endif
|
||||
|
||||
return *((int *)pEdict->pvPrivateData + off);
|
||||
}
|
||||
|
||||
float CPlayer::GetOffsetFloat(long off)
|
||||
{
|
||||
#ifdef __linux__
|
||||
off += 5;
|
||||
#endif
|
||||
|
||||
return *((float *)pEdict->pvPrivateData + off);
|
||||
}
|
||||
|
||||
|
||||
void CPlayer::SetOffsetInt(long off, long set)
|
||||
{
|
||||
#ifdef __linux__
|
||||
off += 5;
|
||||
#endif
|
||||
|
||||
*((int *)pEdict->pvPrivateData + off) = set;
|
||||
}
|
||||
|
||||
void CPlayer::SetOffsetFloat(long off, float set)
|
||||
{
|
||||
#ifdef __linux__
|
||||
off += 5;
|
||||
#endif
|
||||
|
||||
*((float *)pEdict->pvPrivateData + off) = set;
|
||||
}
|
161
dlls/ts/tsfun/CPlayer.h
Executable file
161
dlls/ts/tsfun/CPlayer.h
Executable file
|
@ -0,0 +1,161 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2004 Lukasz Wlasinski
|
||||
*
|
||||
* This file is part of TS XMod.
|
||||
*
|
||||
* TS XMod is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* TS XMod is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with TS XMod; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* In addition, as a special exception, the author gives permission to
|
||||
* link the code of this program with the Half-Life Game Engine ("HL
|
||||
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||||
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||||
* respects for all of the code used other than the HL Engine and MODs
|
||||
* from Valve. If you modify this file, you may extend this exception
|
||||
* to your version of the file, but you are not obligated to do so. If
|
||||
* you do not wish to do so, delete this exception statement from your
|
||||
* version.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef CMISC_H
|
||||
#define CMISC_H
|
||||
|
||||
#include "amxxmodule.h"
|
||||
|
||||
#define TSMAX_CUSTOMWPNS 5
|
||||
#define TSMAX_WEAPONS 39 + TSMAX_CUSTOMWPNS
|
||||
|
||||
|
||||
#ifndef __linux__
|
||||
#define TSKNIFE_OFFSET 31 // owner offset in knife entity
|
||||
#else
|
||||
#define TSKNIFE_OFFSET 36
|
||||
#endif
|
||||
|
||||
#define TSPWUP_SLOWMO 1
|
||||
#define TSPWUP_INFAMMO 2
|
||||
#define TSPWUP_KUNGFU 4
|
||||
#define TSPWUP_SLOWPAUSE 8
|
||||
#define TSPWUP_DFIRERATE 16
|
||||
#define TSPWUP_SJUMP 256
|
||||
|
||||
#define TSITEM_KUNGFU 1<<0
|
||||
#define TSITEM_SUPERJUMP 1<<1
|
||||
|
||||
#define TSKF_STUNTKILL 1<<0
|
||||
#define TSKF_SLIDINGKILL 1<<1
|
||||
#define TSKF_DOUBLEKILL 1<<2
|
||||
#define TSKF_ISSPEC 1<<3 // is specialist
|
||||
#define TSKF_KILLEDSPEC 1<<4 // killed specialist
|
||||
|
||||
// *****************************************************
|
||||
// class CPlayer
|
||||
// *****************************************************
|
||||
|
||||
struct CPlayer {
|
||||
|
||||
float set_454;
|
||||
float set_455;
|
||||
int set_423;
|
||||
|
||||
edict_t* pEdict;
|
||||
char ip[32];
|
||||
int index;
|
||||
int teamId;
|
||||
int aiming;
|
||||
int current;
|
||||
|
||||
int space;
|
||||
int PwUp;
|
||||
int PwUpValue;
|
||||
int items; // "stale" przedmioty , super jump i kung fu bonus
|
||||
|
||||
//
|
||||
int killingSpree;
|
||||
int is_specialist;
|
||||
int killFlags;
|
||||
int lastFrag; // oblicz ostatni frag, sprawdza czy poprawna jest detekcja broni i bonusow
|
||||
float lastKill; // kiedy ostatni , dla double kill
|
||||
//
|
||||
int frags; // suma dla kontroli ostatniego fraga, to - v.frags = lastfrag
|
||||
|
||||
bool ingame;
|
||||
|
||||
struct PlayerWeapon {
|
||||
char* name;
|
||||
int ammo;
|
||||
int clip;
|
||||
int mode; // burst , full auto ..
|
||||
int attach; // scope ,laser
|
||||
};
|
||||
|
||||
PlayerWeapon weapons[TSMAX_WEAPONS];
|
||||
PlayerWeapon attackers[33];
|
||||
PlayerWeapon victims[33];
|
||||
|
||||
void Init( int pi, edict_t* pe );
|
||||
void Connect( const char* ip );
|
||||
void PutInServer();
|
||||
void Disconnect();
|
||||
|
||||
long GetOffsetInt(long off);
|
||||
float GetOffsetFloat(long off);
|
||||
|
||||
void SetOffsetInt(long off,long set);
|
||||
void SetOffsetFloat(long off, float set);
|
||||
|
||||
inline long GetMoney()
|
||||
{
|
||||
return GetOffsetInt(301);
|
||||
}
|
||||
|
||||
inline void SetMoney(long money)
|
||||
{
|
||||
SetOffsetInt(301,money);
|
||||
}
|
||||
|
||||
inline float GetCurrentTime()
|
||||
{
|
||||
return GetOffsetFloat(444);
|
||||
}
|
||||
|
||||
inline void SetCurrentTime(float time)
|
||||
{
|
||||
SetOffsetFloat(444,time);
|
||||
}
|
||||
|
||||
inline long GetSlots()
|
||||
{
|
||||
return GetOffsetInt(304);
|
||||
}
|
||||
|
||||
inline void SetSlots(long slots)
|
||||
{
|
||||
SetOffsetInt(304,slots);
|
||||
}
|
||||
|
||||
inline bool IsBot()
|
||||
{
|
||||
const char* auth= (*g_engfuncs.pfnGetPlayerAuthId)(pEdict);
|
||||
return ( auth && !strcmp( auth , "BOT" ) );
|
||||
}
|
||||
inline bool IsAlive()
|
||||
{
|
||||
return ((pEdict->v.deadflag==DEAD_NO)&&(pEdict->v.health>0));
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CMISC_H
|
||||
|
3042
dlls/ts/tsfun/amxxmodule.cpp
Executable file
3042
dlls/ts/tsfun/amxxmodule.cpp
Executable file
File diff suppressed because it is too large
Load Diff
2197
dlls/ts/tsfun/amxxmodule.h
Executable file
2197
dlls/ts/tsfun/amxxmodule.h
Executable file
File diff suppressed because it is too large
Load Diff
463
dlls/ts/tsfun/moduleconfig.h
Executable file
463
dlls/ts/tsfun/moduleconfig.h
Executable file
|
@ -0,0 +1,463 @@
|
|||
// Configuration
|
||||
|
||||
#ifndef __MODULECONFIG_H__
|
||||
#define __MODULECONFIG_H__
|
||||
|
||||
// Module info
|
||||
#define MODULE_NAME "TSFUN"
|
||||
#define MODULE_VERSION "1.00"
|
||||
#define MODULE_AUTHOR "Twilight Suzuka"
|
||||
#define MODULE_URL "http://www.amxmodx.org"
|
||||
#define MODULE_LOGTAG "TSFUN"
|
||||
// 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 dettach
|
||||
//#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 dettach
|
||||
//#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__
|
||||
|
143
dlls/ts/tsfun/tsfun.cpp
Executable file
143
dlls/ts/tsfun/tsfun.cpp
Executable file
|
@ -0,0 +1,143 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2004 Lukasz Wlasinski
|
||||
*
|
||||
* This file is part of TS XMod.
|
||||
*
|
||||
* TS XMod is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* TS XMod is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with TS XMod; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* In addition, as a special exception, the author gives permission to
|
||||
* link the code of this program with the Half-Life Game Engine ("HL
|
||||
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||||
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||||
* respects for all of the code used other than the HL Engine and MODs
|
||||
* from Valve. If you modify this file, you may extend this exception
|
||||
* to your version of the file, but you are not obligated to do so. If
|
||||
* you do not wish to do so, delete this exception statement from your
|
||||
* version.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "tsfun.h"
|
||||
#include "CNatives.h"
|
||||
|
||||
int Powerup = -1;
|
||||
int KungFoo = -1; //-1 is an invalid forward so initiate this to that
|
||||
|
||||
void OnPluginsLoaded()
|
||||
{
|
||||
//mymodule_Touch - the forward name
|
||||
//ET_IGNORE - means PLUGIN_HANDLED will be ignored (other option is ET_STOP)
|
||||
//FP_CELL - first parameter is a normal cell
|
||||
//FP_CELL - second parameter is a normal cell
|
||||
//FP_DONE - that's the end of the parameter descriptions
|
||||
KungFoo = MF_RegisterForward("KungFoo_Attack", ET_STOP, FP_CELL, FP_FLOAT,FP_FLOAT, FP_DONE);
|
||||
Powerup = MF_RegisterForward("client_powerup", ET_IGNORE, FP_CELL, FP_CELL, FP_DONE);
|
||||
}
|
||||
|
||||
void check_powerup(edict_s *player)
|
||||
{
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER(player);
|
||||
int offset1 = 423;
|
||||
|
||||
#ifdef __linux__
|
||||
offset1 += 5;
|
||||
#endif
|
||||
|
||||
int id = ENTINDEX(player);
|
||||
int val3 = *((int *)player->pvPrivateData + offset1);
|
||||
|
||||
if(pPlayer->set_423 == -1)
|
||||
{
|
||||
pPlayer->set_423 = val3;
|
||||
return;
|
||||
}
|
||||
else if(pPlayer->set_423 != val3) MF_ExecuteForward(Powerup, id,val3);
|
||||
}
|
||||
|
||||
void check_kungfoo(edict_s *player)
|
||||
{
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER(player);
|
||||
int offset1 = 454;
|
||||
int offset2 = 455;
|
||||
|
||||
#ifdef __linux__
|
||||
offset1 += 5;
|
||||
offset2 += 5;
|
||||
#endif
|
||||
|
||||
int id = ENTINDEX(player);
|
||||
float val4 = *((float *)player->pvPrivateData + offset1);
|
||||
float val5 = *((float *)player->pvPrivateData + offset2);
|
||||
|
||||
if(pPlayer->set_454 == -1.0)
|
||||
{
|
||||
pPlayer->set_454 = val4;
|
||||
pPlayer->set_455 = val5;
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(pPlayer->set_454 != val4 || pPlayer->set_455 != val5)
|
||||
{
|
||||
int check = MF_ExecuteForward(KungFoo, id,val4,val5);
|
||||
if(check)
|
||||
{
|
||||
*((float *)player->pvPrivateData + offset1) = 0.0;
|
||||
*((float *)player->pvPrivateData + offset2) = 0.0;
|
||||
|
||||
pPlayer->set_454 = -1.0;
|
||||
pPlayer->set_455 = -1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void PlayerPreThink_Post(edict_s *player)
|
||||
{
|
||||
check_powerup(player);
|
||||
check_kungfoo(player);
|
||||
RETURN_META(MRES_IGNORED);
|
||||
}
|
||||
|
||||
void ServerActivate_Post( edict_t *pEdictList, int edictCount, int clientMax )
|
||||
{
|
||||
for( int i = 1; i <= gpGlobals->maxClients; ++i )
|
||||
GET_PLAYER_POINTER_I(i)->Init( i , pEdictList + i );
|
||||
|
||||
RETURN_META(MRES_IGNORED);
|
||||
}
|
||||
|
||||
void ServerDeactivate()
|
||||
{
|
||||
int i;
|
||||
for(i = 1;i<=gpGlobals->maxClients; ++i){
|
||||
CPlayer *pPlayer = GET_PLAYER_POINTER_I(i);
|
||||
pPlayer->Disconnect();
|
||||
}
|
||||
|
||||
// clear custom weapons info
|
||||
for ( i=TSMAX_WEAPONS-TSMAX_CUSTOMWPNS;i<TSMAX_WEAPONS;i++)
|
||||
weaponData[i].custom = false;
|
||||
|
||||
RETURN_META(MRES_IGNORED);
|
||||
}
|
||||
|
||||
void OnAmxxAttach()
|
||||
{
|
||||
|
||||
gKnifeOffset = TSKNIFE_OFFSET;
|
||||
MF_AddNatives( base_Natives );
|
||||
}
|
||||
|
29
dlls/ts/tsfun/tsfun.dsw
Executable file
29
dlls/ts/tsfun/tsfun.dsw
Executable file
|
@ -0,0 +1,29 @@
|
|||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "tsx"=".\tsx.dsp" - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
96
dlls/ts/tsfun/tsfun.h
Executable file
96
dlls/ts/tsfun/tsfun.h
Executable file
|
@ -0,0 +1,96 @@
|
|||
/*
|
||||
* Copyright (c) 2003-2004 Lukasz Wlasinski
|
||||
*
|
||||
* This file is part of TS XMod.
|
||||
*
|
||||
* TS XMod is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at
|
||||
* your option) any later version.
|
||||
*
|
||||
* TS XMod is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with TS XMod; if not, write to the Free Software Foundation,
|
||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* In addition, as a special exception, the author gives permission to
|
||||
* link the code of this program with the Half-Life Game Engine ("HL
|
||||
* Engine") and Modified Game Libraries ("MODs") developed by Valve,
|
||||
* L.L.C ("Valve"). You must obey the GNU General Public License in all
|
||||
* respects for all of the code used other than the HL Engine and MODs
|
||||
* from Valve. If you modify this file, you may extend this exception
|
||||
* to your version of the file, but you are not obligated to do so. If
|
||||
* you do not wish to do so, delete this exception statement from your
|
||||
* version.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#include "amxxmodule.h"
|
||||
#include "CPlayer.h"
|
||||
|
||||
#define GET_PLAYER_POINTER(e) (&players[ENTINDEX(e)])
|
||||
#define GET_PLAYER_POINTER_I(i) (&players[i])
|
||||
|
||||
#ifndef GETPLAYERAUTHID
|
||||
#define GETPLAYERAUTHID (*g_engfuncs.pfnGetPlayerAuthId)
|
||||
#endif
|
||||
|
||||
extern int gmsgResetHUD;
|
||||
extern int gmsgWeaponInfo;
|
||||
extern int gmsgClipInfo;
|
||||
extern int gmsgScoreInfo;
|
||||
extern int gmsgTSHealth;
|
||||
|
||||
extern int gmsgWStatus;
|
||||
extern int gmsgTSSpace;
|
||||
extern int gmsgPwUp;
|
||||
|
||||
void Client_ResetHUD_End(void*);
|
||||
void Client_WeaponInfo(void*);
|
||||
void Client_ClipInfo(void*);
|
||||
void Client_ScoreInfo(void*);
|
||||
void Client_TSHealth_End(void*);
|
||||
|
||||
void Client_WStatus(void* mValue);
|
||||
void Client_TSCash(void* mValue);
|
||||
void Client_TSSpace(void* mValue);
|
||||
void Client_PwUp(void* mValue);
|
||||
|
||||
typedef void (*funEventCall)(void*);
|
||||
extern funEventCall modMsgsEnd[MAX_REG_MSGS];
|
||||
extern funEventCall modMsgs[MAX_REG_MSGS];
|
||||
extern void (*function)(void*);
|
||||
extern void (*endfunction)(void*);
|
||||
|
||||
extern CPlayer players[33];
|
||||
extern CPlayer* mPlayer;
|
||||
extern int mPlayerIndex;
|
||||
extern int mState;
|
||||
|
||||
struct weapon_t {
|
||||
bool melee; //
|
||||
char name[24];
|
||||
char logname[24];
|
||||
int bonus;
|
||||
bool custom;
|
||||
};
|
||||
|
||||
extern int gKnifeOffset;
|
||||
|
||||
extern weapon_t weaponData[TSMAX_WEAPONS];
|
||||
|
||||
#define CHECK_PLAYER(x) \
|
||||
if (x < 1 || x > gpGlobals->maxClients) { \
|
||||
MF_LogError(amx, AMX_ERR_NATIVE, "Player out of range (%d)", x); \
|
||||
return 0; \
|
||||
} else { \
|
||||
if (!MF_IsPlayerIngame(x) || FNullEnt(MF_GetPlayerEdict(x))) { \
|
||||
MF_LogError(amx, AMX_ERR_NATIVE, "Invalid player %d", x); \
|
||||
return 0; \
|
||||
} \
|
||||
}
|
21
dlls/ts/tsfun/tsfun.sln
Executable file
21
dlls/ts/tsfun/tsfun.sln
Executable file
|
@ -0,0 +1,21 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 8.00
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "tsx", "tsfun.vcproj", "{9036672C-71DB-4DC9-90CC-B14C02465497}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfiguration) = preSolution
|
||||
Debug = Debug
|
||||
Release = Release
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfiguration) = postSolution
|
||||
{9036672C-71DB-4DC9-90CC-B14C02465497}.Debug.ActiveCfg = Debug|Win32
|
||||
{9036672C-71DB-4DC9-90CC-B14C02465497}.Debug.Build.0 = Debug|Win32
|
||||
{9036672C-71DB-4DC9-90CC-B14C02465497}.Release.ActiveCfg = Release|Win32
|
||||
{9036672C-71DB-4DC9-90CC-B14C02465497}.Release.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityAddIns) = postSolution
|
||||
EndGlobalSection
|
||||
EndGlobal
|
258
dlls/ts/tsfun/tsfun.vcproj
Executable file
258
dlls/ts/tsfun/tsfun.vcproj
Executable file
|
@ -0,0 +1,258 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="tsfun"
|
||||
ProjectGUID="{9036672C-71DB-4DC9-90CC-B14C02465497}">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory=".\Debug"
|
||||
IntermediateDirectory=".\Debug"
|
||||
ConfigurationType="2"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;TSFUN_EXPORTS"
|
||||
MinimalRebuild="TRUE"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="1"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderFile=".\Debug/tsfun.pch"
|
||||
AssemblerListingLocation=".\Debug/"
|
||||
ObjectFile=".\Debug/"
|
||||
ProgramDataBaseFileName=".\Debug/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="4"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib"
|
||||
OutputFile=".\Debug/tsfun.dll"
|
||||
LinkIncremental="2"
|
||||
SuppressStartupBanner="TRUE"
|
||||
GenerateDebugInformation="TRUE"
|
||||
ProgramDatabaseFile=".\Debug/tsfun.pdb"
|
||||
ImportLibrary=".\Debug/tsfun.lib"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Debug/tsfun.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="_DEBUG"
|
||||
Culture="1033"/>
|
||||
<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"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||
CharacterSet="2">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;TSFUN_EXPORTS"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="0"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderFile=".\Release/tsfun.pch"
|
||||
AssemblerListingLocation=".\Release/"
|
||||
ObjectFile=".\Release/"
|
||||
ProgramDataBaseFileName=".\Release/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
AdditionalDependencies="odbc32.lib odbccp32.lib"
|
||||
OutputFile=".\Release/tsfun_amxx.dll"
|
||||
LinkIncremental="1"
|
||||
SuppressStartupBanner="TRUE"
|
||||
ProgramDatabaseFile=".\Release/tsfun.pdb"
|
||||
ImportLibrary=".\Release/tsfun.lib"
|
||||
TargetMachine="1"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
MkTypLibCompatible="TRUE"
|
||||
SuppressStartupBanner="TRUE"
|
||||
TargetEnvironment="1"
|
||||
TypeLibraryName=".\Release/tsfun.tlb"
|
||||
HeaderFileName=""/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
PreprocessorDefinitions="NDEBUG"
|
||||
Culture="1033"/>
|
||||
<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;rc;def;r;odl;idl;hpj;bat">
|
||||
<File
|
||||
RelativePath="amxxmodule.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="CMessage.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="CMisc.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="CPlayer.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="tsfun.cpp">
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_MBCS;_USRDLL;TSFUN_EXPORTS;$(NoInherit)"
|
||||
UsePrecompiledHeader="0"/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Header Files"
|
||||
Filter="h;hpp;hxx;hm;inl">
|
||||
<File
|
||||
RelativePath="amxxmodule.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="CNatives.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="CPlayer.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="moduleconfig.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="tsfun.h">
|
||||
</File>
|
||||
</Filter>
|
||||
<Filter
|
||||
Name="Resource Files"
|
||||
Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
Loading…
Reference in New Issue
Block a user