I want to create quite a specific ice rink.
- The player has no control over his movements on the ice.
- The player mustn't move diagonally across the ice, only straight.
- The player loses no momentum crossing the ice even if he hits a wall - he should simply be bounced back.
- The ice has no friction at all so the player's initial momentum isn't slowed after he steps onto it.
I've got Sector_SetFriction(tag,255) making the ice lose all friction, and I've made it so the player gets Prop_TotallyFrozen set while he's on the ice, but this isn't ideal. I'm also fairly sure that with some GetPlayerInput tomfoolery, I can make it so he can't go on the ice if he's moving diagonally. But the thing I'm having the most problems with is the rebounding off the walls. Typically, a low-friction surface causes the player to bounce off it anyway, but when there's no friction at all and if the player's moving diagonally (which I should alleviate at some point) the player simply hits the wall and slides down it. The fact that he can't control his movement while over the ice makes him get stuck sliding inexorably down the nearest wall.
Help would be greatly appreciated.