Raised This Month: $ Target: $400
 0% 

[HELP] Dont see the ball model when i throw


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 10-02-2015 , 17:35   [HELP] Dont see the ball model when i throw
Reply With Quote #1

It never happened to me must have i touched something.

I throw the ball I do not see W_ - Defining the model
I see only the hegrenade

Code:
new const g_szDodgeballWorldModel[] = "models/Days/w_dodgeball.mdl";
new const g_szSnowballWorld[ ] = "models/Days/w_snowball.mdl";
Code:
register_forward( FM_SetModel, "FwdSetModel_Pre"); // i dont know if have to set 0 after "FwdSetModel_Pre", 0
Code:
precache_model( g_szDodgeballWorldModel );
precache_model( g_szSnowballWorld );
Code:
public FwdSetModel_Pre( id, iEnt, szModel[] )
{
    if ( g_iCurrentDay == DODGEBALL_DAY )
    {    
        if(equali(szModel,"models/w_hegrenade.mdl")) 
        {
            entity_set_model( iEnt, g_szDodgeballWorldModel ); // better to use engfunc or entity_set_model
            return FMRES_SUPERCEDE
        }
        return FMRES_IGNORED
    }
    
    else if ( g_iCurrentDay == SNOWBALL_DAY )
    {    
        if(equali(szModel,"models/w_hegrenade.mdl")) 
        {
             engfunc(EngFunc_SetModel, iEnt, g_szSnowballWorld ); // better to use engfunc or entity_set_model
             return FMRES_SUPERCEDE
        }
        return FMRES_IGNORED
    }
    
    return 0;
}

Last edited by Fuck For Fun; 10-02-2015 at 17:35.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 10-02-2015 , 22:56   Re: [HELP] Dont see the ball model when i throw
Reply With Quote #2

use post forward(1), I don't think you should use pre
__________________
Shiina.Mashiro is offline
Old 10-03-2015, 10:12
HamletEagle
This message has been deleted by HamletEagle.
Reply



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 22:10.


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