Thread: [API Scripting Help] Flare + Hert Bomb
View Single Post
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 10-09-2011 , 07:32   Re: Flare + Hert Bomb
Reply With Quote #6

PHP Code:
first from all make a new const. new const flare_model_v[] = "models/v_heart.mdl" 
then precache
PHP Code:
public plugin_precache()
{
precache_model(flare_model_v)

then make the pev v_ and p_ model ...
PHP Code:
public EventCurWeapon(id)
{
    if(
g_hasbomb[id])
    {
        if(
get_user_weapon(id) == CSW_SMOKEGRENADE)
        {
            
set_pev(idpev_viewmodel2flare_model_v)
            
set_pev(idpev_weaponmodel2flare_model_p)
        }
    }

make sure you include fakemeta , fakemeta and hamsandwich FTW
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.

Last edited by JoKeR LauGh; 10-09-2011 at 07:38.
JoKeR LauGh is offline