Removed money natives, cs set deaths native.

This commit is contained in:
Johnny Bergström 2004-02-27 13:59:00 +00:00
parent 79912dea1b
commit 3a00c4e3b0
3 changed files with 20 additions and 37 deletions

View File

@ -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[ENTINDEX(pEntity)]) {
if (silent[index]) {
pEntity->v.flTimeStepSound = 999; pEntity->v.flTimeStepSound = 999;
RETURN_META(MRES_HANDLED); RETURN_META(MRES_HANDLED);
} }

View File

@ -87,7 +87,6 @@ pfnmodule_engine_g* g_engModuleFunc; // These seem to be meta/amxmod related
#define HITGROUP_RIGHTARM 5 #define HITGROUP_RIGHTARM 5
#define HITGROUP_LEFTLEG 6 #define HITGROUP_LEFTLEG 6
#define HITGROUP_RIGHTLEG 7 #define HITGROUP_RIGHTLEG 7
// Fun-specific defines above // Fun-specific defines above
// Globals below // Globals below

View File

@ -1,14 +1,9 @@
/* Fun functions /* Fun functions
* *
* by the AMX Mod X Development Team * (c) 2004, the AMX Mod X Development Team
* *
* This file is provided as is (no warranties). * This file is provided as is (no warranties).
*/ */
#if defined _fun_included
#endinput
#endif
#define _fun_included
/* (untested) Returns 1 if receiver hears sender via voice communication. */ /* (untested) Returns 1 if receiver hears sender via voice communication. */
native get_client_listen(receiver, sender); 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); 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 /* Gives item to player, name of item can start
* with weapon_, ammo_ and item_. This event * with weapon_, ammo_ and item_. This event
* is announced with proper message to all players. */ * is announced with proper message to all players. */
native give_item(index, const item[]); native give_item(index, const item[]);
/* (not yet implemented, don't know how to use native) /* (not yet implemented, don't know how to use native)
* Sets hit zones for player. This event is announced * Sets hit zones for player. This event is announced
* with proper message to all players. * with proper message to all players.
* Parts of body are as bits: * Parts of body are as bits:
* 2 - head * 2 - head
* 4 - chest * 4 - chest
* 8 - stomach * 8 - stomach
* 16 - left arm * 16 - left arm
* 32 - right arm * 32 - right arm
* 64 - left leg * 64 - left leg
* 128 - right leg */ * 128 - right leg */
native set_hitzones(body = 255); native set_hitzones(body = 255);
/* backwards compatibility */ /* backwards compatibility */
@ -78,12 +73,6 @@ native set_user_gravity(index, Float:gravity = 1.0);
/* Returns users gravity. */ /* Returns users gravity. */
native get_user_gravity(index); 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. */ /* Spawns entity. */
native spawn(index); native spawn(index);
@ -91,9 +80,6 @@ native spawn(index);
stock user_spawn(index) stock user_spawn(index)
return 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. */ /* Sets player noclip. If you want to disable noclip set only first parameter. */
native set_user_noclip(index, noclip = 0); native set_user_noclip(index, noclip = 0);
@ -102,4 +88,4 @@ native get_user_noclip(index);
/* Gives player silent footsteps. /* Gives player silent footsteps.
* if set = 0 it will return footsteps to normal */ * if set = 0 it will return footsteps to normal */
native set_user_footsteps(id, set = 1); native set_user_footsteps(id, set = 1);