From 7d9e8a419be97026fe5eea522659dcae41c1f601 Mon Sep 17 00:00:00 2001 From: "C.S. Melis" Date: Mon, 26 Jul 2021 12:43:11 +0200 Subject: [PATCH] Add TurretZoom plugin with custom config --- EXE/TurretZoom.dll | Bin 0 -> 24576 bytes EXE/TurretZoom_readme.txt | 70 ++++++++++++++++++++++++++++++++++++++ EXE/dacom.ini | 5 +-- 3 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 EXE/TurretZoom.dll create mode 100644 EXE/TurretZoom_readme.txt diff --git a/EXE/TurretZoom.dll b/EXE/TurretZoom.dll new file mode 100644 index 0000000000000000000000000000000000000000..4e80077aaa8d7ff4fa660886bea17e369ce35412 GIT binary patch literal 24576 zcmeHPe{@sT9sj1yg91&HBAw`=Tk2Y5L%a9#@{%C5M4=vF{HPRC5ut=OZPJsbn7n{` zK&;8!-_jA8_@RB@M-PQ^D0HDXJX#hu1QgO2O%bOvbF8apNB6w!n z$+9E5l_$&Ad3_=CwqScp(A{QkbO!?Ms(Gu&91I7{zJPh@nmTh^dy}WqV3=M$YI?ov zA0x%~ANOQyXx{FgD{y@O{2%t1P~J0de@_XMKk1pta1Zv(L3wTQem4JS=`fRPeT`nS zaVd{$YXDa21lYA`cvTiN2t{QxbW;FKsBvbr^|MjZ*v!Tz*2gjNLnSL=3l0c}C6Bc@ zVB@SDn`X04Gr%J1IRSPP;gd@(K&@`F^1m3H0jysFt5iLAsyIJVfDQSVtvPGV09z`9 zO>WhV?vW3uU^tRF#fj6E85mq3oQRd|k<2MhfMjJb6l_Etixm|NM>3~4$zIUoZ%5#6 zvR8|h?2*hVPJo+ohP=xe;0$mEI0Kvk&H!hCGr$?(3~&ZG1DC--T6j$YQ>vn=vjtLy zPHI<{>r(=a)1|Bx{=^X8NeCLJOQ}7sht6!drGBVK)3gm<@v&Q=x3jaW<9G`!i+py) zj=SalJ-a_G29s94?-Yu(FiQl}@YmDAY?5C~3v);or3Ev|DQTe`Wx}u&+q8ZkbFJTQEEf|2w)X+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 zP&zFQNgqmQB*{``Sz)QQcq}_Cot8%|Pg{;zUb4JmdCT&ir9du{&GKAXlo!dXf%r~HuosQje-tbAPly?k1JU;b1swr;X+wR){>){yls>%G>v^#SWa>qFK@tv|EA zVjZxitV33vGDEpiDN`(pL#a|$DK4d1X;&gjT-mSuRQb8`w9==XRNheDS3XwGD>H1x zwySK{+hp59+Zx+?+a}u`wjH*6Z4cNE+PZANv^{U@wWVx>ws&nG+4AjI+RgSy?2p@@ zwI8#eu>Zk+%6{5@)_&f8!LD-@I<9hj)8TL|b*yms9rrl?>Nw~4Y7dKB=L~QLI0Kvk Y&H!hCGr$?(3~&ZG1DpZQz~wRUZ&VQE^Z)<= literal 0 HcmV?d00001 diff --git a/EXE/TurretZoom_readme.txt b/EXE/TurretZoom_readme.txt new file mode 100644 index 0000000..f6c5003 --- /dev/null +++ b/EXE/TurretZoom_readme.txt @@ -0,0 +1,70 @@ + Turret Zoom + by Jason Hood + + Version 1.41 + + +Turret Zoom is a plugin that lets you adjust the Turret View camera using the +mouse wheel. To install it, copy TURRETZOOM.DLL to Freelancer's EXE directory +and add it to the [Libraries] section of EXE\dacom.ini. + +The default behavior is to adjust the "z" position of the camera, providing a +zoom in (wheel down) and out (wheel up) feature. It will scale the current +value, by 1.5 up to 5K, then by 1.1. Use the modifiers for additional control: + + Shift move by 10K + Ctrl move by 1K + Alt move by 100 + Shift+Ctrl move by 10 + Ctrl+Alt move by 1 + +Zooming in causes the camera to become quite sensitive. The speed is halved +every 10K, but can be fine-tuned by holding Shift+Ctrl+Alt and moving the wheel +down (halve the speed) or up (double it). + +Holding Shift+Alt and moving the wheel down will switch to "y" mode (moving the +wheel up will go back to "z"). In "y" mode, the camera will move up and down +with the wheel. + +The current values are saved when you enter Turret View and restored on exit. +However, this means if there is a situation where the view is reset without +actually exiting Turret View, those values will become default. Should that +occur, a new launch/load/select will restore the original values. + + +======= +Options +======= + +Strings can be added after the DLL in dacom.ini to customize the values (shown +with their default): + + fast immediate movement (like previous versions) + inverse reverse wheel direction (movement only) + max=200000 maximum distance to move + shift=10000 Shift movement + ctrl=1000 Ctrl movement + alt=100 Alt movement + s+c=10 Shift+Ctrl movement + c+a=1 Ctrl+Alt movement + small=1.1 small move factor + large=1.5 large move factor + switch=5000 distance to switch from large to small + adjust=0.5 zoom in camera speed adjust factor + interval=10000 interval to adjust camera speed + +For example: + + TurretZoom.dll inverse max=20000 switch=0 + +will cause wheel up to zoom in; move the camera no further than 20K; and always +use the small factor. There is a chance this may not work on your system, in +which case the options can be patched directly into the DLL (which will also +override the dacom.ini options). Open TurretZoom.dll in your hex editor and go +to hex offset 30C0, then just write in the options you want. However, this +method requires adding a space before the equal sign ("max = 20000"). + + +================================ +Jason Hood, 5 June, 2011. +http://freelancer.adoxa.cjb.net/ diff --git a/EXE/dacom.ini b/EXE/dacom.ini index 07f5fde..04875aa 100644 --- a/EXE/dacom.ini +++ b/EXE/dacom.ini @@ -22,10 +22,11 @@ ximage.dll flmaterials.dll jflp.dll ; Jason's Freelancer Patch HudShift.dll -Zone.dll -WheelScroll.dll MPRep.dll numeric.dll +TurretZoom.dll max=1000 shift=100 ctrl=10 alt=2 s+c=0.2 c+a=0.1 switch=50 interval=250 adjust=0.8 +WheelScroll.dll +Zone.dll ;;EMAURER now include any DLLs used only in development. @include FL_DevOnlyLibs.ini