Help - Search - Members - Calendar
Full Version: Prefab request
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Mapping Forum
Spawn_of_Chaos97
Can someone make me a func_rot_button prefab that is of the texture with the rotating white handle in the middle only make that handle rotate?

I think it could be done with a func_rot_button inside of a carved out func_button with that texture stretched to fit over both, then the rot_button would activate the func_button and the player would activate the rot_button?...I don't even know if this is possible...

You were right, the screenshots thread was not the right place for this post. - Mouse
BigD
Creating a prefab for this, while I'm not one to shun such a request, is pretty trivial.

I'm assuming you're talking about nos_button.

There are two ways a person could go about doing this. We'll branch in the second step though.

1)
-Create the square block that will be the body of the switch. (I'm working with the texture dimensions for simplicity. Scale it down as needed.)
-Create a 32x32 12 sided cylinder (Again, scale as needed. More sides to the cylinder makes it smoother but at higher r_speed costs.)
-place the the cylinder over the the round part of the switch so they line up
-Ensure the textures are aligned. I do this by clicking on the block's texture that was fitted to the block and right clicking on the buttons face. Just make sure it's lined up.

IPB Image

2) Branch 1: If you have to have the rotating switch flush with the button.
-Don't use carve.
-First make two cuts using the clipping tool to define the area within the button.
-make one cut across the newly formed square
IPB Image

-make a series of cuts to the points of the cylinder. Note: You may want to use vertex manipulation to ensure that the corners of the cylinder land on points in the grid.
IPB Image

-Now take each little strip within that square and it's a good time to practice vertex manipulation. Move each corner to a point on the cylinder. (Or you can keep using the clip too for each strip. Whichever you're more comfortable with.)
IPB Image

2) Branch 2: If you don't mind the rotating switch sticking out a bit from the whole block. EASIER.
-Instead of cutting all this out, just stick your cylinder out of the brush 1 unit. You don't need to cut anything this way. It'll look just as good, and use less wpolies as well.
IPB Image

3) Make the button a func_rot_button, ty it to a momentary_door adjusting values as needed and voila.

So there ya go.
bERt0r
I could be wrong but doesn't this button have a + and a - texture. Therefor if you make it a normal func_button it should change from the normal state to a 90 degree rotated state once you activate it.
Moconnor
yes it does. While you don't get to see it rotating I think its much better than having a button rotate.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.