Raised This Month: $ Target: $400
 0% 

Problem with c4 model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Skull3D
Junior Member
Join Date: Dec 2012
Old 02-17-2013 , 14:06   Problem with c4 model
Reply With Quote #1

Hi, I have a problem with this log:

Code:
FATAL ERROR (shutting down): SV_ModelIndex: model 0 not precached
//home//s747/hlds_run: 403: gdb: not found
The problem occurs when I lift c4 because it has to turn into a other model

Code:
Code:
public EventCurWeapon ( id ) {
    new wid = read_data ( 2 );

    if ( wid == CSW_C4 && gHasMedkit [ id ] ){
        set_pev(id, pev_viewmodel, "models/ofBM/v_medkit.mdl" );
        set_pev(id, pev_weaponmodel2, "models/ofBM/p_medkit.mdl");
    }
}
and:


Code:
public client_PreThink ( id ) {
    new wid = read_data ( 2 );

    if ( pev ( id, pev_button ) & IN_ATTACK  && wid == CSW_C4 && gHasMedkit [ id ] ) {
        if( pev ( id, pev_oldbuttons ) & IN_ATTACK ){  
            gHasMedkit [ id ] = false;
            fm_set_user_maxspeed ( id, 1.0 );
            new Float: fOrigin [ 3 ];
            pev ( id, pev_origin, fOrigin );
            engfunc ( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0);
            write_byte ( TE_SPRITE);
            engfunc ( EngFunc_WriteCoord, fOrigin [ 0 ] + random_float ( -5.0, 5.0 ) );
            engfunc ( EngFunc_WriteCoord, fOrigin [ 1 ] + random_float ( -5.0, 5.0 ) );
            engfunc ( EngFunc_WriteCoord, fOrigin [ 2 ] + random_float ( -10.0, 10.0 ) );
            write_short ( g_healspr );
            write_byte ( 7 );
            write_byte ( 200 );
            message_end ( );
            
            set_task ( 2.0, "heal", id );
            
            emit_sound ( id, CHAN_ITEM, "medkit/healing.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
        }
    }
}
Skull3D is offline
 


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 21:37.


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