SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Releases > Lua

Reply
 
Thread Tools
Vertical Aim Auto-Recenter, automatically recenter your vertical aim while moving! Details »»
Vertical Aim Auto-Recenter, automatically recenter your vertical aim while moving!
Version: 1.2, by Nero1024 Nero1024 is offline
Developer Last Online: Jan 2021

Version: SRB2 Rating: (1 votes - 3.00 average)
Released: 11-16-2020 Last Update: Never Favourites: 0
Scripts Re-Useable Content


It's kinda hard to notice with a simple .gif but that camera really wants to not look up or down.


This script makes is so that the vertical aiming will automatically recenter while you're moving. Useful for Simple controls and gamepad users (like me) that want to fully use the camera without having to babysit it. The script will only work in third-person/chasecam view.

NOTES/ISSUES:
  • Not intended for splitscreen, first-person checks are performed on player one in splitscreen mode.
  • May cause sync issues in netgames, though I've yet to notice any from my brief testing. Report resync issues if you experience any.


Console Variables:
Spoiler:
camaimrecenter: "On"(1) or "Off"(0), enables or disables vertical aim re-centering.

camaimrecenterfactor: Any decimal number between -1.0 and 1.0 (positive values recommended). Determines how slow/fast the re-centering is. A value of 1 makes the re-centering negligible, 0 is instantaneous, negative values makes the camera have a bounce to it's re-centering.

camaimrecenterthreshold: Any integer number. Determines the movement speed threshold for when the re-centering happens. Negative values makes the re-centering constant.

camaimrecentermode: "Active"(1) or "Passive"(0). Determines the camera mode and how active the re-centering is.

camaimrecenterdelay: Any decimal number above 0. Determines the time delay in seconds for when the vertical aim starts re-centering while in Passive mode.


Changelog:
Spoiler:

  • v1.0
    • Initial release
  • v1.1
    • Re-centering will now activate when the player uses the movement controls and when they're moving fast enough.
  • v1.2
    • Active/Passive camera modes. Active mode recenters the vertical aim as soon as the player starts moving. Passive mode recenters the vertical aim after a time delay while moving, the delay can be configured with console commands. Default is Active mode.
    • New input checks; now checks if the player is gliding, spinning, or otherwise thokked.

Download Now

File Type: lua L_AimRecenter-v1.lua (2.0 KB, 38 views)
File Type: lua L_AimRecenter-v1.1.lua (2.0 KB, 79 views)
File Type: lua L_AimRecenter-v1.2.lua (2.9 KB, 56 views)

Screenshots

Click image for larger version

Name:	srb20015.gif
Views:	640
Size:	4.48 MB
ID:	42148  

Show Your Support

  • The author of this addon has given explicit permission for its content to be re-used and/or reproduced.

Comments
Old 11-16-2020   #2
Lach
he/him
Moderator
 
Lach's Avatar
Default

Welcome to Releases!
Lach is offline   Reply With Quote
Old 11-16-2020   #3
Nero1024
 
Nero1024's Avatar
Default

Day one update. Re-centering now requires player input.

Link:
https://mb.srb2.org/attachment.php?a...2&d=1605565436
Nero1024 is offline   Reply With Quote
Old 3 Weeks Ago   #4
Nero1024
 
Nero1024's Avatar
Default

Updated to v1.2. New input checks and a new Active/Passive system.

Link:
https://mb.srb2.org/attachment.php?a...3&d=1609597711
Nero1024 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:57 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.