Fix for the physics of Arrow projectiles

This commit is contained in:
epigramx 2018-02-14 17:44:48 +02:00 committed by Michael
parent 9aa515b4c5
commit b4bcaaf478
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,8 @@
<?php <?php
$targetfps = $argv[1]; $targetfps = $argv[1];
$divisor = 30/$targetfps $divisor = 30/$targetfps;
$derivative1 = 30*$divisor;
$derivative2 = 0.5/$divisor;
?> ?>
[BotwFPSV208] #i.e. v1.5.0 [BotwFPSV208] #i.e. v1.5.0
moduleMatches = 0x6267BFD0 moduleMatches = 0x6267BFD0
@ -13,6 +15,10 @@ _divisor = 0x0 # edit the next line to change the divisor
_targetfps = 0x18 # edit the next line to change the target fps _targetfps = 0x18 # edit the next line to change the target fps
0x18 = .float <?=$targetfps?> 0x18 = .float <?=$targetfps?>
#Arrows by Epigramx
0x1001CCAC = .float <?=$derivative1?> # = 30 * divisor
0x1001CB18 = .float <?=$derivative2?> # = 0.5 / divisor
#"Best fence" by Rajkosto #"Best fence" by Rajkosto
_fenceNeg1 = 0x00000004 _fenceNeg1 = 0x00000004
0x00000004 = add r6, r12, r0 #orig instruction we are replacing 0x00000004 = add r6, r12, r0 #orig instruction we are replacing
@ -68,6 +74,10 @@ _divisor = 0x0 # edit the next line to change the divisor
_targetfps = 0x18 # edit the next line to change the target fps _targetfps = 0x18 # edit the next line to change the target fps
0x18 = .float <?=$targetfps?> 0x18 = .float <?=$targetfps?>
#Arrows by Epigramx
0x1001CCAC = .float <?=$derivative1?> # = 30 * divisor
0x1001CB18 = .float <?=$derivative2?> # = 0.5 / divisor
#"Best fence" by Rajkosto #"Best fence" by Rajkosto
_fenceNeg1 = 0x00000004 _fenceNeg1 = 0x00000004
0x00000004 = add r6, r12, r0 #orig instruction we are replacing 0x00000004 = add r6, r12, r0 #orig instruction we are replacing

View File

@ -5,7 +5,8 @@ when Link paraglides; the caveat is that the user must pick a target FPS that
they can maintain. they can maintain.
It improves over previous static mods in that it allows ANY value as a It improves over previous static mods in that it allows ANY value as a
static fps target and it includes the stamina fix. static fps target and it includes the stamina fix. Now it also features a fix
for the physics of arrow projectiles.
To use it simply grab one of the provided versions or edit one with these To use it simply grab one of the provided versions or edit one with these
changes: a) rules.txt frequency and name b) divide 30 by the target FPS c) use changes: a) rules.txt frequency and name b) divide 30 by the target FPS c) use