p2sr / SourceAutoRecord

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

feat: velocity check tool for tas #217

Closed Ewan1165 closed 1 week ago

Ewan1165 commented 4 months ago

Adds an option to the tas check tool to check for velocity on all 3 axis. Syntax is 200>>check vel z > 200. This would reset if velocity is not over 200. Cant test Linux but I would assume that it works.

ThisAMJ commented 1 week ago

I've just changed it to use an epsilon like pos and ang, and support multiple vel dimensions (e.g. xy = horizontal speed). So the syntax is now >>check vel <xyz> <vel> velepsilon <epsilon>. e.g. >>check vel xy 269.45 velepsilon 0.01 checks if your horizontal speed is within 0.01ups of 269.45ups (default epsilon is 1)