AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Giving T's a thighpack (https://forums.alliedmods.net/showthread.php?t=113462)

Doc-Holiday 12-27-2009 03:22

Giving T's a thighpack
 
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.


All times are GMT -4. The time now is 04:14.

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