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

tf2 Set player skin family?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BrutalGoerge
AlliedModders Donor
Join Date: Jul 2007
Old 05-18-2009 , 20:02   tf2 Set player skin family?
Reply With Quote #1

All the tf2 player models have 4 skin families.
red, blu, red uber, blu uber.

Is it possible to set it with a plugin?

http://img527.**************/img527/4...icskinfams.jpg
__________________
My Pluggies If you like, consider to me.
BrutalGoerge is offline
NeoDement
Member
Join Date: Mar 2009
Old 05-18-2009 , 20:35   Re: tf2 Set player skin family?
Reply With Quote #2

You can set a sentry guns colour with this snippet, maybe you could adapt it to your needs:

Code:
    SetEntData(iSentry, FindSendPropOffs("CObjectSentrygun","m_nSkin"),                     iNewSkinNumber, 1, true);
__________________
I'm not being funny but guys, I'm a bit fit, y'know?
NeoDement is offline
BrutalGoerge
AlliedModders Donor
Join Date: Jul 2007
Old 05-18-2009 , 20:40   Re: tf2 Set player skin family?
Reply With Quote #3

i found that, and tried... failed... guess i am too stupid to figure it out. :[
__________________
My Pluggies If you like, consider to me.

Last edited by BrutalGoerge; 05-18-2009 at 20:50.
BrutalGoerge is offline
NeoDement
Member
Join Date: Mar 2009
Old 05-19-2009 , 14:36   Re: tf2 Set player skin family?
Reply With Quote #4

SetEntData(client, FindSendPropOffs("CTFPlayer","m_nSkin"), iNewSkinNumber, 1, true);
???
__________________
I'm not being funny but guys, I'm a bit fit, y'know?
NeoDement is offline
BrutalGoerge
AlliedModders Donor
Join Date: Jul 2007
Old 05-19-2009 , 19:33   Re: tf2 Set player skin family?
Reply With Quote #5

that's what I tried, no error, but no skin =\

Honestly, if it was this easy, I think someone would have done it by now. I know a few authors who have been trying to get this to work off and on for a while now. I was kinda just making sure everyone didnt miss something obvious
__________________
My Pluggies If you like, consider to me.

Last edited by BrutalGoerge; 05-19-2009 at 19:43.
BrutalGoerge is offline
NeoDement
Member
Join Date: Mar 2009
Old 05-19-2009 , 21:30   Re: tf2 Set player skin family?
Reply With Quote #6

Well, m_nSkin isn't on http://wiki.alliedmods.net/CTFPlayer...eam_Fortress_2)

So I guess I should have checked that first, sorry for that
__________________
I'm not being funny but guys, I'm a bit fit, y'know?
NeoDement is offline
pRED*
Join Date: Dec 2006
Old 05-20-2009 , 04:56   Re: tf2 Set player skin family?
Reply With Quote #7

NeoDement: That's the virtual function list, entity props are at http://wiki.alliedmods.net/Category:Game_Resources

BrutalGoerge: I think the m_nSkin value actually used to render players is calculated locally (on the client) as a combination of m_iTeam and m_nPlayerCond (the ubercharge flag in particular).
pRED* is offline
BrutalGoerge
AlliedModders Donor
Join Date: Jul 2007
Old 05-20-2009 , 05:23   Re: tf2 Set player skin family?
Reply With Quote #8

and I dont think its possible to set the uber cond with sm.

meh. i really have no idea what i'm doing. thanks anyway.

//gives up
__________________
My Pluggies If you like, consider to me.

Last edited by BrutalGoerge; 05-20-2009 at 05:27.
BrutalGoerge is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 05-20-2009 , 10:08   Re: tf2 Set player skin family?
Reply With Quote #9

You need an extension to do this. To do it you have to update the m_nPlayerCond netprop with the PLAYERCOND_UBERED flag through a proxy. It's a bit confusing, but once Crimson finishes up TF2:RA, I'll be releasing a simple extension to do it.
bl4nk is offline
NeoDement
Member
Join Date: Mar 2009
Old 05-20-2009 , 13:16   Re: tf2 Set player skin family?
Reply With Quote #10

Quote:
Originally Posted by pRED* View Post
NeoDement: That's the virtual function list, entity props are at http://wiki.alliedmods.net/Category:Game_Resources
I don't even know how I didn't spot that.
__________________
I'm not being funny but guys, I'm a bit fit, y'know?
NeoDement is offline
Reply


Thread Tools
Display Modes

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 08:28.


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