Raised This Month: $ Target: $400
 0% 

CurrentWeapon X Ham_Item_Deploy [HELP]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 04-27-2023 , 13:44   Re: CurrentWeapon X Ham_Item_Deploy [HELP]
Reply With Quote #1

Quote:
Originally Posted by MeliMeli View Post
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 
IdId get_pdata_cbase(Ent414)
    if(
get_pdata_cbase(Id373) != Ent)
        return
    if(!
Get_BitVar(g_Had_WeaponId))
        return
    
    
set_pev(Idpev_viewmodel2szWeaponModel[MODEL_V])
    
set_pev(Idpev_weaponmodel2szWeaponModel[MODEL_P])
    
Set_WeaponAnim(IdANIM_DRAW)

__________________
My plugin:
Celena Luna is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode