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

[Solved] Setting other color to a model


Post New Thread Reply   
 
Thread Tools Display Modes
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 02-03-2011 , 01:49   Re: Setting other color to a model
Reply With Quote #11

In half life models, the skins are stored one after another. By default, the skin is set to the first skin. If you now call the pev(id, pev_skin), then you will get a number of 0. If you want to set a different skin, simply use something, like set_pev(id, pev_skin, 1) or set_pev(id, pev_skin, 2), or whatever.
Lulu the hero is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 02-03-2011 , 01:59   Re: Setting other color to a model
Reply With Quote #12

Quote:
Originally Posted by Lulu the hero View Post
In half life models, the skins are stored one after another. By default, the skin is set to the first skin. If you now call the pev(id, pev_skin), then you will get a number of 0. If you want to set a different skin, simply use something, like set_pev(id, pev_skin, 1) or set_pev(id, pev_skin, 2), or whatever.
Oh okay,thanks u ...Now I understand.Lulu my hero (?

Last edited by #8 SickneSS; 02-03-2011 at 02:11.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
SeriousSam
Senior Member
Join Date: Aug 2009
Location: Bulgaria
Old 02-03-2011 , 02:01   Re: Setting other color to a model
Reply With Quote #13

can this be made so that only one player can see the new color, for example players that use night vision kit to see everyone rendered full white?
__________________
SeriousSam is offline
Send a message via Skype™ to SeriousSam
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 02-03-2011 , 02:10   Re: Setting other color to a model
Reply With Quote #14

I think not.

@#8 SickneSS : Try out hlmv( half life model viewer ), to see the skins of a model. For example if a half life creature blinks, then it is simply a skin change. There is only one scientist model in half life, with at least 5 skins, so you see 5 different faces, when you play.

By the way! In older halflife models, you could set the color of the model in the multiplayer options. Is that a client side thingy, so that we cannot set it with amx?

Last edited by Lulu the hero; 02-03-2011 at 02:33.
Lulu the hero is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-03-2011 , 02:42   Re: Setting other color to a model
Reply With Quote #15

Quote:
Originally Posted by SeriousSam View Post
can this be made so that only one player can see the new color, for example players that use night vision kit to see everyone rendered full white?
Maybe. Try using the ES_Skin member of the EntityState handle from FM_AddToFullPack.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 02-03-2011 , 02:47   Re: [Solved] Setting other color to a model
Reply With Quote #16

Can a half transparent entity be only visible to one player? Like when you build in Natural Selection(NS)?
Lulu the hero is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-03-2011 , 02:53   Re: [Solved] Setting other color to a model
Reply With Quote #17

Quote:
Originally Posted by Lulu the hero View Post
Can a half transparent entity be only visible to one player? Like when you build in Natural Selection(NS)?
You can make all entities have different renderings for different player views.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
SeriousSam
Senior Member
Join Date: Aug 2009
Location: Bulgaria
Old 02-03-2011 , 02:59   Re: [Solved] Setting other color to a model
Reply With Quote #18

Nice, then It might be possible to make something similar to thermal vision like some scopes in modern warfare 2 are
__________________
SeriousSam is offline
Send a message via Skype™ to SeriousSam
Lulu the hero
Senior Member
Join Date: Oct 2009
Location: Budapest, Hungary
Old 02-03-2011 , 03:12   Re: [Solved] Setting other color to a model
Reply With Quote #19

OMG, thats great!( Isn't the quake engine great? ) This would be great for my houndeyes. I don't want everyone to see, where I am planning to put my creature. Half transparent for me, and for everyone else, fully transparent. Can you give me a small example code on how this is working?

Last edited by Lulu the hero; 02-03-2011 at 03:14.
Lulu the hero is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 02-03-2011 , 03:17   Re: [Solved] Setting other color to a model
Reply With Quote #20

Ok,Lulu,thanks.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
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 14:45.


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