Raised This Month: $32 Target: $400
 8% 

Player Costumes


Post New Thread Reply   
 
Thread Tools Display Modes
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
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-18-2021 , 08:37   Re: Player Costumes
Reply With Quote #2

I think it's a problem with the model itself instead of the code. Have you tested that model in the Hats plugin?
__________________








CrazY. is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 01-18-2021 , 10:01   Re: Player Costumes
Reply With Quote #3

why don't you use cs_set_user_model ?
lexzor is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-18-2021 , 10:05   Re: Player Costumes
Reply With Quote #4

Quote:
Originally Posted by lexzor View Post
why don't you use cs_set_user_model ?
Probably because that will change the player model itself?
__________________

Last edited by OciXCrom; 01-18-2021 at 10:05.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SaBBa
Member
Join Date: Dec 2012
Old 01-18-2021 , 12:30   Re: Player Costumes
Reply With Quote #5

Quote:
Originally Posted by CrazY. View Post
I think it's a problem with the model itself instead of the code. Have you tested that model in the Hats plugin?
not really, all of them where disapproved, so I decided to make it on my own
__________________
SaBBa is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 01-18-2021 , 12:49   Re: Player Costumes
Reply With Quote #6

I meant just for testing, to check whether it's working or not.
__________________









Last edited by CrazY.; 01-18-2021 at 12:50.
CrazY. 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 16:22.


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