Resource icon

[Reusable] sloperollangle: Character Rotation on Slopes

Code:
[10:56 PM] Jimita: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
[10:58 PM] Tatsuru: Do you wanna play god? Is that what you want?
[11:04 PM] Kitoko: golden this is illegal
The name is pretty self-explanatory. This Lua rotates the sprites of players against the angle of the slope they're on. Note that sloperollangle only rotates characters using their in-game roll angle; this doesn't require new sprites to be drawn by spriters to support it.

View attachment 13308

This is also 100% compatible with multiplayer!

View attachment 12809

Download today!

Commands:
Code:
cameraroll <on/off>: Whether the camera rolling feature is enabled or not.
(Exclusive to 2.2.2 and above). Default OFF.

cam_rollspeed <decimal>: How quickly the camera fully rolls to the slope you stand on. Default 0.1.
  • srb20117.gif
    srb20117.gif
    3.1 MB · Views: 1,015
  • srb20236.gif
    srb20236.gif
    3.2 MB · Views: 864
  • srb20405.gif
    srb20405.gif
    5.3 MB · Views: 1,077
Author
Golden
Views
4,412
First release
Last update
Rating
5.00 star(s) 4 ratings

More resources from Golden

Share this resource

Latest reviews

Really nice modification for srb2! but i haven't been able to find a way to make it work with models, it works when you're standing on a slope ramp facing the ramps sides, but just stays normal when going up a slant, is there anyway to fix this?
Upvote 0
Damn, this is awesome (mainly with camera roll on)
but will this work with models any day ?
Upvote 0
A cute tweak. I keep it in my "always load during modified games" folder.
Upvote 0
This is kind of cursed, but this is still super good. Honestly, it can add a lot of neat touches in stuff like map packs and whatnot. (It also saves a lot of hassle for those that get bothered for characters not standing right on slopes.)
I'd definitely use it in my 2D maps.
Upvote 0
Top