Raised This Month: $ Target: $400
 0% 

Giving T's a thighpack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 12-27-2009 , 03:22   Giving T's a thighpack
Reply With Quote #1

Ok so My CT medic's have a backpack and my T's should have a thighpack how ever when i use the following code it places it between their legs.... yeah.

So umm any ideas on how to attatch it in the right spot?

PHP Code:
public SetModel(taskid)
{
    new 
id taskid;
    new 
team get_user_team(id);
    
    switch(
team)
    {
        case 
1:
        {
            new 
ent create_entity("info_target");
        
            if ( 
pev_valid(ent) )
            {
                
engfunc(EngFunc_SetModelentg_T_medic);
                
                
set_pev(entpev_movetypeMOVETYPE_FOLLOW);
                
set_pev(entpev_aimentid);
                
                
g_entT[id] = ent;
            }
        }
        
        case 
2:
        {
            new 
ent create_entity("info_target");
            
            if ( 
pev_valid(ent) )
            {
                
engfunc(EngFunc_SetModelentg_CT_medic);
                
                
set_pev(entpev_movetypeMOVETYPE_FOLLOW);
                
set_pev(entpev_aimentid);
                
                
g_entCT[id] = ent;
            }
        }
    }

Update: I think i know the issue it need to find a model that is like the defuse kits on the players not the w_defuse but the v_ or p_ which ever is on the player models.

Last edited by Doc-Holiday; 12-28-2009 at 00:08.
Doc-Holiday is offline
 



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 04:14.


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