Quote:
Originally Posted by MeliMeli
So, but isn't it bad to have those 2 in the code? unfortunately I couldn't remove the curweapon because the moment the player picks up the weapon the model is the default CS, you would need to change it hands and go back for the model of it to appear
So I no longer have any idea what else to do
|
I feel like you did something wrong which cause I have never encounter any problem with Ham_Item_Deploy
PHP Code:
public fw_Item_Deploy_Post(Ent)
{
if(pev_valid(Ent) != 2)
return
static Id; Id = get_pdata_cbase(Ent, 41, 4)
if(get_pdata_cbase(Id, 373) != Ent)
return
if(!Get_BitVar(g_Had_Weapon, Id))
return
set_pev(Id, pev_viewmodel2, szWeaponModel[MODEL_V])
set_pev(Id, pev_weaponmodel2, szWeaponModel[MODEL_P])
Set_WeaponAnim(Id, ANIM_DRAW)
}
__________________