p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
MIT License
89 stars 27 forks source link

feat: add easing types for setang tas tool #153

Closed Krzyhau closed 1 year ago

Krzyhau commented 1 year ago

Adds three additional easing types when interpolating to the desired angle using setang TAS automation tool: sine/sin, cubic and exponential/exp. A type should be given as a fourth parameter to setang. By default, it's still using linear interpolation, meaning this change should be backwards-compatible and doesn't require new script version.

All interpolation type went through very basic tests (me running a single setang for each type), but it would be nice for someone to make some further testing:

mlugg commented 1 year ago

i cant be fucked to read this imma trust you don't break the tools