mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Removed money natives, cs set deaths native.
This commit is contained in:
parent
79912dea1b
commit
3a00c4e3b0
@ -616,11 +616,9 @@ AMX_NATIVE_INFO fun_Exports[] = {
|
||||
};
|
||||
|
||||
/******************************************************************************************/
|
||||
void PlayerPreThink( edict_t *pEntity)
|
||||
void PlayerPreThink(edict_t *pEntity)
|
||||
{
|
||||
int index = ENTINDEX(pEntity);
|
||||
|
||||
if (silent[index]) {
|
||||
if (silent[ENTINDEX(pEntity)]) {
|
||||
pEntity->v.flTimeStepSound = 999;
|
||||
RETURN_META(MRES_HANDLED);
|
||||
}
|
||||
|
@ -87,7 +87,6 @@ pfnmodule_engine_g* g_engModuleFunc; // These seem to be meta/amxmod related
|
||||
#define HITGROUP_RIGHTARM 5
|
||||
#define HITGROUP_LEFTLEG 6
|
||||
#define HITGROUP_RIGHTLEG 7
|
||||
|
||||
// Fun-specific defines above
|
||||
|
||||
// Globals below
|
||||
|
@ -1,14 +1,9 @@
|
||||
/* Fun functions
|
||||
*
|
||||
* by the AMX Mod X Development Team
|
||||
*
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
|
||||
#if defined _fun_included
|
||||
#endinput
|
||||
#endif
|
||||
#define _fun_included
|
||||
*
|
||||
* (c) 2004, the AMX Mod X Development Team
|
||||
*
|
||||
* This file is provided as is (no warranties).
|
||||
*/
|
||||
|
||||
/* (untested) Returns 1 if receiver hears sender via voice communication. */
|
||||
native get_client_listen(receiver, sender);
|
||||
@ -38,21 +33,21 @@ native set_user_origin(index, origin[3]);
|
||||
native set_user_rendering(index, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16);
|
||||
|
||||
/* Gives item to player, name of item can start
|
||||
* with weapon_, ammo_ and item_. This event
|
||||
* is announced with proper message to all players. */
|
||||
* with weapon_, ammo_ and item_. This event
|
||||
* is announced with proper message to all players. */
|
||||
native give_item(index, const item[]);
|
||||
|
||||
/* (not yet implemented, don't know how to use native)
|
||||
* Sets hit zones for player. This event is announced
|
||||
* with proper message to all players.
|
||||
* Parts of body are as bits:
|
||||
* 2 - head
|
||||
* 4 - chest
|
||||
* 8 - stomach
|
||||
* 16 - left arm
|
||||
* 32 - right arm
|
||||
* 64 - left leg
|
||||
* 128 - right leg */
|
||||
* Sets hit zones for player. This event is announced
|
||||
* with proper message to all players.
|
||||
* Parts of body are as bits:
|
||||
* 2 - head
|
||||
* 4 - chest
|
||||
* 8 - stomach
|
||||
* 16 - left arm
|
||||
* 32 - right arm
|
||||
* 64 - left leg
|
||||
* 128 - right leg */
|
||||
native set_hitzones(body = 255);
|
||||
|
||||
/* backwards compatibility */
|
||||
@ -78,12 +73,6 @@ native set_user_gravity(index, Float:gravity = 1.0);
|
||||
/* Returns users gravity. */
|
||||
native get_user_gravity(index);
|
||||
|
||||
/* Gives money to user. */
|
||||
native set_user_money(index, money, flash = 1);
|
||||
|
||||
/* Returns users money. */
|
||||
native get_user_money(index);
|
||||
|
||||
/* Spawns entity. */
|
||||
native spawn(index);
|
||||
|
||||
@ -91,9 +80,6 @@ native spawn(index);
|
||||
stock user_spawn(index)
|
||||
return spawn(index)
|
||||
|
||||
/* CS: Set deaths(should be removed to CS module later) (doesn't update info right away? fix later?) */
|
||||
native set_user_deaths_cs(index, newdeaths);
|
||||
|
||||
/* Sets player noclip. If you want to disable noclip set only first parameter. */
|
||||
native set_user_noclip(index, noclip = 0);
|
||||
|
||||
@ -102,4 +88,4 @@ native get_user_noclip(index);
|
||||
|
||||
/* Gives player silent footsteps.
|
||||
* if set = 0 it will return footsteps to normal */
|
||||
native set_user_footsteps(id, set = 1);
|
||||
native set_user_footsteps(id, set = 1);
|
||||
|
Loading…
Reference in New Issue
Block a user