skin

skin

Re: skin Posted by Samoflan on Thu Dec 9th 2004 at 1:03am
Samoflan
9 posts
Posted 2004-12-09 1:03am
Samoflan
member
9 posts 1 snarkmarks Registered: Dec 5th 2004
I am trying to make a button that when you press it the skin will change.

So far I have made a block that doesn't render, (func_button) it activates my door.

I then have a prop keypad placed in front of it (func_dynamic). This is where I have my problem. The keypad has 3 skins. I am trying to figure out how I change the skin from being blank to saying "access" when I press the button.

Note I cannot make the prop a func_button. I have to use a block and not render it and place behind my keypad. If you know a better way please let me know.

So basicly I am trying to make a prop button animate when I press it.
Re: skin Posted by parakeet on Thu Dec 9th 2004 at 1:17am
parakeet
544 posts
Posted 2004-12-09 1:17am
parakeet
member
544 posts 81 snarkmarks Registered: Apr 30th 2004 Occupation: n/a Location: Eastern US
Sorry to be too technical but the proper term for this is "texture" and animated textures (in halflife one) had a + before it so just put in the texture filter a + and the type you need should pop up . apply the texture to the button and last time i tried that was it = P
Re: skin Posted by Samoflan on Thu Dec 9th 2004 at 1:43am
Samoflan
9 posts
Posted 2004-12-09 1:43am
Samoflan
member
9 posts 1 snarkmarks Registered: Dec 5th 2004
I am using a prop props_lab/keypad.mdl it has 3 skins. Being a prop I cannot use it as a func_button. So I havea block enity linked beind it to it as a func_button. I want to know how when I press that block that i have as my button it will change the skin on my keypad temporarly saying access for 2-3 secs then revert back to default skin.

A example of this is the keypads in blackmesa east.

props_lab/keypad.mdl has three skins - no text/acess/error

I cannot texture a prop.

Sorry if I wasn't clear enough the 1st time.
Re: skin Posted by ReNo on Thu Dec 9th 2004 at 1:48am
ReNo
5457 posts
Posted 2004-12-09 1:48am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
I think you would need to place the keypad prop in your map with the
prop_dynamic entity, as this way you can give it a name. Once you have
done this, make your button have an output that targets this prop, and
gives it the "skin" command with whatever skin value you'd like to use.
Re: skin Posted by Samoflan on Thu Dec 9th 2004 at 1:58am
Samoflan
9 posts
Posted 2004-12-09 1:58am
Samoflan
member
9 posts 1 snarkmarks Registered: Dec 5th 2004
<DIV class=quote>
<DIV class=quotetitle>? quoting ReNo</DIV>
<DIV class=quotetext>I think you would need to place the keypad prop in your map with the prop_dynamic entity, as this way you can give it a name. Once you have done this, make your button have an output that targets this prop, and gives it the "skin" command with whatever skin value you'd like to use.
</DIV></DIV>
This is where I am stuck. I give my button the skin output command to my keypad, but how do I choose which skin for it to change to via output?
Re: skin Posted by ReNo on Thu Dec 9th 2004 at 2:09am
ReNo
5457 posts
Posted 2004-12-09 2:09am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Use the parameter override box to give a value - 0 for the default
skin, or other numbers for successive skins. Look at the prop's
properties and set its skin to different values to find the right
number (most are ranged from 0-3 or something, of they have any other
skins at all) to enter.
Re: skin Posted by Samoflan on Thu Dec 9th 2004 at 2:22am
Samoflan
9 posts
Posted 2004-12-09 2:22am
Samoflan
member
9 posts 1 snarkmarks Registered: Dec 5th 2004
<DIV class=quote>
<DIV class=quotetitle>? quoting ReNo</DIV>
<DIV class=quotetext>Use the parameter override box to give a value - 0 for the default skin, or other numbers for successive skins. Look at the prop's properties and set its skin to different values to find the right number (most are ranged from 0-3 or something, of they have any other skins at all) to enter.
</DIV></DIV>
Perfect that was the one thing I was missing the parameter override value. Everything works and makes sense now !