mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
Removed CS offset defines from h + modified set_user_maxspeed
This commit is contained in:
parent
dbde71ac3d
commit
35470c1ecb
@ -407,7 +407,8 @@ static cell AMX_NATIVE_CALL set_user_maxspeed(AMX *amx, cell *params) // set_use
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
pPlayer->v.maxspeed = *(float *)((void *)¶ms[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 *)¶ms[2]));
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -68,17 +68,10 @@ pfnmodule_engine_g* g_engModuleFunc; // These seem to be meta/amxmod related
|
|||||||
#define CVAR_FUN_VERSION "fun_version"
|
#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 SETCLIENTMAXSPEED (*g_engfuncs.pfnSetClientMaxspeed)
|
||||||
#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.
|
||||||
#define STANDARDTIMESTEPSOUND 400
|
#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_GENERIC 0 // none
|
||||||
#define HITGROUP_HEAD 1
|
#define HITGROUP_HEAD 1
|
||||||
#define HITGROUP_CHEST 2
|
#define HITGROUP_CHEST 2
|
||||||
|
Loading…
Reference in New Issue
Block a user