Removed CS offset defines from h + modified set_user_maxspeed

This commit is contained in:
Johnny Bergström 2004-03-05 14:39:18 +00:00
parent dbde71ac3d
commit 35470c1ecb
2 changed files with 3 additions and 9 deletions

View File

@ -407,7 +407,8 @@ static cell AMX_NATIVE_CALL set_user_maxspeed(AMX *amx, cell *params) // set_use
return 0;
}
pPlayer->v.maxspeed = *(float *)((void *)&params[2]); // JGHG: Gotta love the way to get floats from parameters :-P
//pPlayer->v.maxspeed = ; // JGHG: Gotta love the way to get floats from parameters :-P
SETCLIENTMAXSPEED(pPlayer, *(float *)((void *)&params[2]));
return 1;
}

View File

@ -68,17 +68,10 @@ pfnmodule_engine_g* g_engModuleFunc; // These seem to be meta/amxmod related
#define CVAR_FUN_VERSION "fun_version"
#define GETCLIENTLISTENING (*g_engfuncs.pfnVoice_GetClientListening)
#define SETCLIENTLISTENING (*g_engfuncs.pfnVoice_SetClientListening)
#define SETCLIENTMAXSPEED (*g_engfuncs.pfnSetClientMaxspeed)
#define SF_NORESPAWN (1 << 30)// !!!set this bit on guns and stuff that should never respawn.
#define STANDARDTIMESTEPSOUND 400
#if defined __linux__
#define OFFSET_CSMONEY 115 + 5
#define OFFSET_CSDEATHS 449 + 5
#else
#define OFFSET_CSMONEY 115 // Note that linux offsets need to be 5 higher (120 in this case)
#define OFFSET_CSDEATHS 449
#endif // defined __linux__
#define HITGROUP_GENERIC 0 // none
#define HITGROUP_HEAD 1
#define HITGROUP_CHEST 2