SimShaker for DCS UH-60 Blackhawk
If you want to use SimShaker for Aviators with the free UH-60L Black Hawk mod for Digital Combar Simulator you need to modify the file "C:\Program Files (x86)\SimShaker\SimShaker for Aviators Beta\Data\SimShaker.lua" as follows:Search for
elseif obj.Name == "UH-1H" thenand modify it to
elseif obj.Name == "UH-60L" thenand it will work.
dataTable.name = "Mi-8MT"
dataTable.rpm = string.format("%.2f", get_param_handle("RRPM"):get() * 2 / 3)
elseif obj.Name == "UH-1H" then
Have fun! :)
Comments
Can you possiblly link an imgur with what the lua should look like after editing please? With the Apache about to release, I imagine we will have to do this for both the blackhawk and the apache.
What do you mean? Mine looks like this:
[...]
dataTable.rpm = string.format("%.2f", mainRotorRPM)
dataTable.panelShake = PanelShake
elseif obj.Name == "Hercules" then
elseif obj.Name == "UH-60L" then
dataTable.name = "Mi-8MT"
dataTable.rpm = string.format("%.2f", get_param_handle("RRPM"):get() * 2 / 3)
elseif obj.Name == "AH-6" then
dataTable.name = "Mi-8MT"
elseif obj.Name == "UH-1H" then
-------------------------------------------------------------------------------------------------------------------------------------------------------
local mainRotorRPM = MainPanel:get_argument_value(123) * 100
[...]
That is exactly what I needed, just wanted a clearer image of what everything should look like after adding the lines, thank you :)
This is currently what I have and the sim shaker isnt working for the uh-60l.
dataTable.rpm = string.format("%.2f", mainRotorRPM)
dataTable.panelShake = PanelShake
elseif obj.Name == "UH-60L" then --http://tech.blog.dg4sfw.de/single.php?date=1640509860
dataTable.name = "Mi-8MT"
dataTable.rpm = string.format("%.2f", get_param_handle("RRPM"):get() * 2 / 3)
--local rightDoor = 1.0 - MainPanel:get_argument_value(471) -- inverted
--local leftDoor = 1.0 - MainPanel:get_argument_value(471) -- inverted
local cockpitParamContainer = getCockpitParam() -- see getCockpitParam() function at bottom
local shakeValue = cockpitParamContainer.SND_ALWS_COCKPIT_RATTLE/100
--local shakeValue = 1
local PanelShake =
string.format(
"%.2f~%.2f~%.2f",
shakeValue,
shakeValue,
shakeValue
)
dataTable.panelShake = PanelShake
--dataTable.rightDoor = rightDoor
--dataTable.leftDoor = leftDoor
elseif obj.Name == "UH-1H" then
Yes, because I'm afraid you mixed it up quite badly.
Please start over! You can delete the file and start SimShaker, it will then create a new SimShaker.lua file.
Just look for the line mentioned in the article and add said three lines and you're good to go.