Added cvar fun_version 0.1

This commit is contained in:
Johnny Bergström 2004-02-17 11:45:14 +00:00
parent 4276d63cf7
commit c0f785455a
2 changed files with 7 additions and 6 deletions

View File

@ -34,8 +34,6 @@
} }
*/ */
static cell AMX_NATIVE_CALL get_client_listening(AMX *amx, cell *params) // get_client_listening(receiver, sender); = 2 params static cell AMX_NATIVE_CALL get_client_listening(AMX *amx, cell *params) // get_client_listening(receiver, sender); = 2 params
{ {
// Gets who can listen to who. // Gets who can listen to who.
@ -699,8 +697,9 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m
gpGamedllFuncs = pGamedllFuncs; gpGamedllFuncs = pGamedllFuncs;
// JGHG added stuff below // JGHG added stuff below (initing stuff here)
g_body = (1<<HITGROUP_GENERIC) | (1<<HITGROUP_HEAD) | (1<<HITGROUP_CHEST) | (1<<HITGROUP_STOMACH) | (1<<HITGROUP_LEFTARM) | (1<<HITGROUP_RIGHTARM)| (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_RIGHTLEG); // init hs_body g_body = (1<<HITGROUP_GENERIC) | (1<<HITGROUP_HEAD) | (1<<HITGROUP_CHEST) | (1<<HITGROUP_STOMACH) | (1<<HITGROUP_LEFTARM) | (1<<HITGROUP_RIGHTARM)| (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_RIGHTLEG); // init hs_body
CVAR_REGISTER(&fun_version);
// generic is needed or bots go crazy... don't know what its for otherwise. You can still kill people. // generic is needed or bots go crazy... don't know what its for otherwise. You can still kill people.
// these hitzones never affect CS knife? ie you can always hit with knife no matter what you set here // these hitzones never affect CS knife? ie you can always hit with knife no matter what you set here
//hs_body = (1<<HITGROUP_GENERIC) | (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_LEFTARM); // init hs_body //hs_body = (1<<HITGROUP_GENERIC) | (1<<HITGROUP_LEFTLEG) | (1<<HITGROUP_LEFTARM); // init hs_body

View File

@ -26,14 +26,15 @@ static META_FUNCTIONS gMetaFunctionTable = {
pfnamx_engine_g* g_engAmxFunc; // These seem to be meta/amxmod related pfnamx_engine_g* g_engAmxFunc; // These seem to be meta/amxmod related
pfnmodule_engine_g* g_engModuleFunc; // These seem to be meta/amxmod related pfnmodule_engine_g* g_engModuleFunc; // These seem to be meta/amxmod related
#define NAME "fun" #define NAME "Fun"
#define AUTHOR "JGHG" #define AUTHOR "JGHG"
#define VERSION "0.3" #define VERSION "0.1"
#define URL "http://?" #define URL "http://?"
#define LOGTAG "fun" #define LOGTAG "fun"
#define DATE __DATE__ #define DATE __DATE__
// Fun-specific defines below // Fun-specific defines below
#define CVAR_FUN_VERSION "fun_version"
#define GETCLIENTLISTENING (*g_engfuncs.pfnVoice_GetClientListening) #define GETCLIENTLISTENING (*g_engfuncs.pfnVoice_GetClientListening)
#define SETCLIENTLISTENING (*g_engfuncs.pfnVoice_SetClientListening) #define SETCLIENTLISTENING (*g_engfuncs.pfnVoice_SetClientListening)
#define SF_NORESPAWN ( 1 << 30 )// !!!set this bit on guns and stuff that should never respawn. #define SF_NORESPAWN ( 1 << 30 )// !!!set this bit on guns and stuff that should never respawn.
@ -44,7 +45,7 @@ pfnmodule_engine_g* g_engModuleFunc; // These seem to be meta/amxmod related
#else #else
#define CSMONEYOFFSET 115 // Note that linux offsets need to be 5 higher (120 in this case) #define CSMONEYOFFSET 115 // Note that linux offsets need to be 5 higher (120 in this case)
#define CSDEATHSOFFSET 449 #define CSDEATHSOFFSET 449
#endif // defined LINUX #endif // defined __linux__
#define HITGROUP_GENERIC 0 // none #define HITGROUP_GENERIC 0 // none
#define HITGROUP_HEAD 1 #define HITGROUP_HEAD 1
@ -76,4 +77,5 @@ module_info_s module_info = {
RELOAD_MODULE, RELOAD_MODULE,
}; };
int g_body = 0; // bits of parts of body to hit int g_body = 0; // bits of parts of body to hit
cvar_t fun_version = {"fun_version", "0.1", FCVAR_EXTDLL};
// Globals above // Globals above