Rotating my map
chickenmobile wrote:
This is probably a very bad idea, and most likely result in crashing. Why did you want to rotate your map in the first place? There probably is an alternative to parenting everything in your map to rotate 90deg.
I'd actually prefer 180 degrees.
chickenmobile wrote:
That still didn't answer any questions I asked 0,0
Sorry, this is just for a concept I had in mind.
SpcAgentOrange wrote:
Actually, I wouldn't mind knowing how to do this, either. A hallway that's in a constant tumble, or a room that flips upside-down, either to simulate gravity effects, or to disorient the player.
You could probably have this affect by using world portals instead of rotating your map.
1) When you first come into the room, it's a nicely lit and playable straight room.
2) When the button to turn the room is pressed, the player is teleported into an exact copy of the room (albeit with worse lighting as it has to be able to be parented) and it turns.
3) When the turning is finished, the player is teleported into yet another copy of the room which is the turned version, nicely lit and able to be played in.
You could attempt something like this, though it might become complicated.
Gravedigging a little here, but I've written a .nut script that does prettymuch what you want:
Sort of like the whole parenting thing, but with a bit more control, and less fuss.
There are a few wee hurdles to get over, like:
-Moving panels must re-parent themselves (i.e. with a FireUser4)
-Your container must be a func_brush inside a regular brush.
-Your container must have Solidity set to Always, but children set to "Toggle"
-You'll probably have to teleport the player to point_teleports to avoid getting stuck.
-The entire rotation must take place over about a quarter of a second to allow parenting to work
-The player must be unparented or the camera will be on its side.
-Prop-static will have to be switched to prop_dynamic
-Doesn't work on coop.
-Some prop_physics might have to be constrained to another object.
And a ton of bugs..
But it's certainly possible.