欢迎光临散文网 会员登陆 & 注册

Superglide练习工具V1.1

2023-02-23 03:07 作者:SprayQuaza_  | 我要投稿

上一个动态的工具有一些地方有错误,可能导致即使你按对了也会有错误。

JayTheYggdrasil做了一个更完整的,我就搬过来给很闲的人用一下

首先你需要在开始菜单搜索界面打开Windows PowerShell


长这样

然后直接复制粘贴以下代码内容:

  1. $loop = "true"

  2. $currenttime = Get-Date

  3. $secondtime = Get-Date

  4. $presscount = 0

  5. $evenodd = $presscount % 2

  6.  

  7. "!! Use CTRL+C to quit !!"

  8. "-- Setup --"

  9. "Press the key you use for jump."

  10. $jumpkey = $Host.UI.RawUI.ReadKey()

  11. ""

  12. "Press the key you use for crouch."

  13. $duckkey = $Host.UI.RawUI.ReadKey()

  14. ""

  15.  

  16. write-host -nonewline "Enter your framrate: "

  17.   $inputString = read-host

  18.   $targetfps = $inputString -as [Double]

  19.  

  20. write-host -nonewline "Jump + crouch must be exactly 1 frame apart for the highest chance at superglide success."

  21.  

  22. $frametime = 1 / $targetfps

  23.  

  24. " "

  25. "--------------------------------------------------"

  26.  

  27. while ($loop -eq "true") {

  28.  

  29.    if ($evenodd -eq 0) {

  30.       "Press Jump..."

  31.       $key = $Host.UI.RawUI.ReadKey()

  32.      

  33.       if($key -eq $jumpkey) {

  34.          $currenttime = Get-Date

  35.  

  36.          " (Jump) Key Pressed"

  37.          $presscount = $presscount + 1

  38.          $evenodd = $presscount % 2

  39.       } else {

  40.          " that's not jump..."

  41.       }

  42.    }

  43.  

  44.    if ($evenodd -eq 1) {

  45.       "Press Crouch..."

  46.       $key = $Host.UI.RawUI.ReadKey()

  47.  

  48.       if($key -eq $duckkey) {

  49.          " (Crouch) Key Pressed"

  50.  

  51.          $secondtime = Get-Date

  52.          $calculated = $secondtime - $currenttime

  53.          $elapsedFrames = $calculated.TotalSeconds / $frametime

  54.      $differenceSeconds = $frametime - $calculated.TotalSeconds

  55.  

  56.          if($elapsedFrames -lt 1) {

  57.             $chance = $elapsedFrames * 100

  58.             $message = "Crouch slightly *later* by {0:n5} seconds" -f $differenceSeconds + " to improve."

  59.          } elseif ($elapsedFrames -lt 2) {

  60.             $chance = ( 2 - $elapsedFrames ) * 100

  61.             $message = "Crouch slightly *sooner* by {0:n5} seconds" -f ($differenceSeconds * -1) + " to improve."

  62.          } else {

  63.             $message = "Crouched too late by " + $elapsedFrames.ToString("###") + " frames."

  64.             $chance = 1 - ($elapsedFrames/$elapsedFrames)

  65.          }

  66.  

  67.      ("{0:n3} frames have passed." -f $elapsedFrames.ToString()) | Write-Host

  68.      

  69.          ( "{0:n4} % chance to hit." -f $chance.ToString() ) | Write-Host

  70.  

  71.          $message | Write-Host

  72.  

  73.          $presscount = $presscount + 1

  74.          $evenodd = $presscount % 2

  75.          "--------------------------------------------------"

  76.       } else {

  77.          " that's not crouch..."

  78.       }

  79.    }

  80. }

然后回车即可

接下来你的界面应该是这样:

用不着管ctrl+c

在输入前切记关闭中文输入法

首先第一排——Press the key you use for jump,你按一下你的跳跃键

第二排——Press the key you use for crouch,你按一下你的蹲键(这里如果你说话按出了中文的c然后你按shift输入进去是没有用的,一定要用英文输入法的c输入进去)

(手搓基本都是空格+C)

第三排——Enter your framrate,输入你的屏幕刷新率

这几排都不需要按回车

跳(前)+蹲(后)需要在1帧内完成

有概率成功的界面

该界面会显示你的成功概率,以及你的蹲是过早了还是过晚了,如图就是需要你按蹲按得再晚点。

失败的界面

该界面会显示你的跳+蹲花费了多少帧(图示5.008344),成功的概率,已经你晚了多少帧。


好了又一个没用的工具完成了,上班用这个摸鱼记得用薄膜键盘。



如果内容复制不上可以点开该网址复制:https://pastebin.com/bcCXRn8k#google_vignette

原帖网址:https://www.reddit.com/r/Apexrollouts/comments/1192u4e/improved_superglide_practice_tool_original_tool/



Superglide练习工具V1.1的评论 (共 条)

分享到微博请遵守国家法律