Set skin in code: m_nSkin = Skin#; // Skin# is an integer // model viewer should provide this info for you.
--- On Wed, 3/18/09, Ryan Sheffer <[email protected]> wrote: From: Ryan Sheffer <[email protected]> Subject: Re: [hlcoders] First-Person Arms Model To: "Discussion of Half-Life Programming" <[email protected]> Date: Wednesday, March 18, 2009, 11:35 PM You don't, you can override the materials of a model but I think that is about it. You will have to make either modifications to the current texture or recompile the model with multiple skins. On Wed, Mar 18, 2009 at 6:22 PM, Idrox Gedrono <[email protected]> wrote: > > Very well. The arms model must not change, then, but instead the skin on > the arms. Half-Life 2 Deathmatch has skins for both rebels and combine. > The question is, then, how (and where) do you change the skin of the > player's weapon in code? > > Ben Mears wrote: > > Good point. But you would still have to compile the new skin into the > > model, right? I think you would still need to decompile the model and > > apply the new texture/skin to the model in a 3D program and then export > > the new reference SMD for the model with the new texture/skin. You would > > also need to reference the new texture in the .QC file and designate it > > as a skin that can be used. > > > > botman wrote: > >> Models can have multiple skins. You can switch between the skin for > >> different materials on the model. > >> > > > > _________________________________________________________________ > Express your personality in color! Preview and select themes for Hotmail®. > > http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- ~Ryan ( skidz ) _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

