Raised This Month: $ Target: $400
 0% 

Player Costumes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SaBBa
Member
Join Date: Dec 2012
Old 01-17-2021 , 08:01   Player Costumes
Reply With Quote #1

Instead of being on head, head costume is inside chest, visible only on death, what am I doing wrong
P.S. I am using player models on sever, should I consider them too while applying costumes on them ?

PHP Code:
new costumes[][] = {
    
"models/cso/devil_head.mdl",
    
"models/cso/devil_pelvis.mdl"
}

public 
plugin_precache()
{
    for(new 
0sizeof costumesi++) {
        
engfunc(EngFunc_PrecacheModelcostumes[i])
    }
}

public 
client_putinserver(id)
{
    
set_task(0.1"set_costume"id)
}

public 
set_costume(id)
{
    for(new 
0sizeof costumesi++) {
        new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"))
        
set_pev(entpev_movetypeMOVETYPE_FOLLOW)
        
set_pev(entpev_aimentid)
        
set_pev(entpev_rendermodekRenderNormal)
        
engfunc(EngFunc_SetModelentcostumes[i])
        
set_pev(entpev_body0)
        
set_pev(entpev_sequence0)
        
set_pev(entpev_animtimeget_gametime())
        
set_pev(entpev_framerate1.0)
    }
    return 
PLUGIN_HANDLED


Well, everything is misplaced and acting wrong on left/right rotation and duck, here's how it looks now


__________________

Last edited by SaBBa; 01-17-2021 at 08:51. Reason: add images
SaBBa 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 14:10.


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