Raised This Month: $51 Target: $400
 12% 

[solved] Setting a submodel/skin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Old 10-15-2008 , 19:39   [solved] Setting a submodel/skin
Reply With Quote #1

Is there a way to set a specific submodel or skin when setting a model with say SetModelEntity or perhaps some other function or combination there of?

[IMG]http://img122.**************/img122/3994/submodeletcyj0.png[/IMG]

Cheers in advance...
__________________
Live and learn or die and teach by example.
Plugins Mine | Hidden:SourceMod

Last edited by paegus; 10-15-2008 at 19:52. Reason: i'm a blind twit....
paegus is offline
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Old 10-15-2008 , 19:51   Re: Setting a submodel/skin
Reply With Quote #2

gah nvm, i'm a blind twit... m_nSkin & m_nBody
paegus is offline
NatalyaAF
Senior Member
Join Date: Dec 2008
Old 01-02-2011 , 03:43   Re: [solved] Setting a submodel/skin
Reply With Quote #3

How do I do this for a model with multiple body groups and submodels? Like I want to activate a player model's visor and vest, but not the face mask or ear piece. It's one of S-low's models. See here:
http://s-low.info/forum/viewtopic.php?f=7&t=859


I can do it in HLMV but how would I do it in SM?

This is what I'm going for:

__________________
Talk to me on Steam: natalyaaf
See my website for downloads: www.lady-natalya.info

Natalya: killing someone while they make a plugin
Natalya: perfect analogy
Natalya: for the mayan apocalypse

Last edited by NatalyaAF; 01-02-2011 at 15:37.
NatalyaAF is offline
paegus
Senior Member
Join Date: Nov 2004
Location: Extreme low earth orbit
Old 01-11-2011 , 06:22   Re: [solved] Setting a submodel/skin
Reply With Quote #4

i haven't coded for SM in ages so... umm... take a look at the get/set prop functions?

look for the player class offsets m_nSkin & m_nBody and adjust them accordingly.

HLMV will probably give you a good idea of what numbers to use.
__________________
Live and learn or die and teach by example.
Plugins Mine | Hidden:SourceMod
paegus 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 21:33.


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