Raised This Month: $ Target: $400
 0% 

Problem with c4 model


Post New Thread Reply   
 
Thread Tools Display Modes
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
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-17-2013 , 20:12   Re: Problem with c4 model
Reply With Quote #2

Did you precache them?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Skull3D
Junior Member
Join Date: Dec 2012
Old 02-18-2013 , 04:33   Re: Problem with c4 model
Reply With Quote #3

Code:
precache_model ( "models/ofBM/v_medkit.mdl" );
precache_model ( "models/ofBM/p_medkit.mdl" );
precache_model ( "models/ofBM/w_medkit.mdl" );
Skull3D is offline
Old 02-19-2013, 06:10
Skull3D
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Old 02-25-2013, 11:19
Skull3D
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Skull3D
Junior Member
Join Date: Dec 2012
Old 02-28-2013 , 12:39   Re: Problem with c4 model
Reply With Quote #4

Refresh!
Skull3D is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-28-2013 , 13:51   Re: Problem with c4 model
Reply With Quote #5

I had the solution for you, but you need to read rules.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Skull3D
Junior Member
Join Date: Dec 2012
Old 03-01-2013 , 08:54   Re: Problem with c4 model
Reply With Quote #6

General Rules read and I did not see that one can renew every 14 days.
Skull3D is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-01-2013 , 10:29   Re: Problem with c4 model
Reply With Quote #7

Quote:
Originally Posted by Skull3D View Post
General Rules read and I did not see that one can renew every 14 days.
Look at the reason why your messages were removed...
Unkolix is offline
Skull3D
Junior Member
Join Date: Dec 2012
Old 03-01-2013 , 11:58   Re: Problem with c4 model
Reply With Quote #8

Look at the message up.
I wrote that i Have not seen this in the regulations.
Skull3D is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 03-01-2013 , 12:09   Re: Problem with c4 model
Reply With Quote #9

Quote:
Originally Posted by Skull3D View Post
Look at the message up.
I wrote that i Have not seen this in the regulations.
You have been warned 2 times "wait 14 days before you bump" but you still don't obey it...
Unkolix is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-01-2013 , 12:37   Re: Problem with c4 model
Reply With Quote #10

pev_viewmodel

->

pev_viewmodel2
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 21:37.


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