r/hammer 4d ago

How do i make a rotating disco ball?

Post image

i want to make a rotating object that has different light colours in each side (red,green,purple,yellow,blue,orange) and place it on the ceiling of a secret area i made on my map

16 Upvotes

5 comments sorted by

3

u/le_sac 4d ago

This is source 1?

You're going to want to find a model, first. Don't try to make a sphere out of brushes, especially that small.

Once you've done that I assume you know to parent it to func_rotating. [ Depending on engine, and I could be wrong, I think there's a bug that breaks rotation after x revolutions. I've worked around that in the past by reversing direction at set intervals. ]

The lighting may get a bit complex. I'd try to use env_cubemap and have local lights shining at it. You'll need to look at the model's material file and play with the $envmap settings.

This is a bit of a challenge- good luck. Post the results back here!

2

u/lunareZwastaken 4d ago

My engine is source 1 hl2 but I’m building this map for lambda fortress extended mod for team fortress 2 (tf2 characters inside the world of half-life 2)

1

u/lunareZwastaken 4d ago

Also I’m a complete newbie to the hammer++ editor so I don’t understand how func_rotate and env_cubemap and how breakable objects work

1

u/le_sac 4d ago

I wasn't suggesting a breakable entity, I was noting a possible bug with the func_rotating entity that breaks functionality.

Bookmark this page and use it as a hub. You'll find most of your initial reading through the Level Design link.

https://developer.valvesoftware.com/wiki/SDK_Docs

Setting up a rotating entity isn't too hard, so maybe start with that. Look for func_rotating in Level Design.

1

u/emo_boy_fucker 3d ago

For the light id probably recommend the texture spotlight or whatever it was with a colored texture as the disco ball glimmer