mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 23:08:03 +03:00
fixed a forward bug that made this module a surprise box
This commit is contained in:
parent
1e5c9b5ed7
commit
16f402ae49
@ -55,8 +55,8 @@ int gmsgAmmoPickup;
|
|||||||
int mState;
|
int mState;
|
||||||
int mPlayerIndex;
|
int mPlayerIndex;
|
||||||
|
|
||||||
int g_death_info;
|
int g_death_info = -1;
|
||||||
int g_damage_info;
|
int g_damage_info = -1;
|
||||||
|
|
||||||
RankSystem g_rank;
|
RankSystem g_rank;
|
||||||
Grenades g_grenades;
|
Grenades g_grenades;
|
||||||
@ -165,6 +165,8 @@ void ServerDeactivate() {
|
|||||||
for ( i=TFCMAX_WEAPONS-TFCMAX_CUSTOMWPNS;i<TFCMAX_WEAPONS;i++)
|
for ( i=TFCMAX_WEAPONS-TFCMAX_CUSTOMWPNS;i<TFCMAX_WEAPONS;i++)
|
||||||
weaponData[i].ammoSlot = false;
|
weaponData[i].ammoSlot = false;
|
||||||
|
|
||||||
|
g_grenades.clear();
|
||||||
|
|
||||||
RETURN_META(MRES_IGNORED);
|
RETURN_META(MRES_IGNORED);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -352,5 +354,5 @@ void OnAmxxAttach() {
|
|||||||
void OnPluginsLoaded()
|
void OnPluginsLoaded()
|
||||||
{
|
{
|
||||||
g_damage_info = MF_RegisterForward("client_damage", ET_IGNORE, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
|
g_damage_info = MF_RegisterForward("client_damage", ET_IGNORE, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
|
||||||
g_damage_info = MF_RegisterForward("client_death", ET_IGNORE, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
|
g_death_info = MF_RegisterForward("client_death", ET_IGNORE, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_CELL, FP_DONE);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user