Skip to content

Commit

Permalink
update custom weapons api
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedgefog committed Dec 29, 2022
1 parent 3cf7e63 commit 73bdc7c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/scripts/api/api_custom_weapons.sma
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <api_custom_weapons>

#define PLUGIN "[API] Custom Weapons"
#define VERSION "0.7.5"
#define VERSION "0.7.6"
#define AUTHOR "Hedgehog Fog"

#define WALL_PUFF_SPRITE "sprites/wall_puff1.spr"
Expand Down Expand Up @@ -738,9 +738,11 @@ public OnSetModel_Post(this, const szModel[]) {
ExecuteBindedFunction(CWB_WeaponBoxModelUpdate, pItem, this);
g_pNewWeaponboxEnt = 0;

if (!ExecuteHamB(Ham_CS_Item_CanDrop, pItem)) {
set_pev(this, pev_flags, pev(this, pev_flags) | FL_KILLME);
dllfunc(DLLFunc_Think, this);
if (!g_bPrecache) {
if (!ExecuteHamB(Ham_CS_Item_CanDrop, pItem)) {
set_pev(this, pev_flags, pev(this, pev_flags) | FL_KILLME);
dllfunc(DLLFunc_Think, this);
}
}

return FMRES_HANDLED;
Expand Down

0 comments on commit 73bdc7c

Please sign in to comment.